Giter VIP home page Giter VIP logo

com.cividesk.normalize's People

Contributors

jmcclelland avatar megaphonejon avatar mlutfy avatar nganivet avatar pfigel avatar sunilpawar avatar twomice avatar yashodha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

com.cividesk.normalize's Issues

add exceptions for street address directionals (NW, E, S, SW, etc)

TwoMice and I will be adding a PR soon for NW, E, S, SW, etc and other 'compass directions' in the street address. If anyone can think of any other common exceptions for street address please chime in.

Seems like we'd need to add a list of standard all-caps directionals
like N, S, E, W, NE, etc., similar to what's done for other
exceptions around here:
https://github.com/cividesk/com.cividesk.normalize/blob/master/CRM/Utils/Normalize.php#L90

Fatal error re libphonenumber/PhoneNumberUtil.php upon enabling on 5.2.x

Just reporting that I got this when testing this extension on 5.2.x

Fatal error: require_once(): Failed opening required 'libphonenumber/PhoneNumberUtil.php' (include_path='/srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/extensions/com.cividesk.normalize/:/srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/extensions/nz.co.fuzion.civitoken/:/srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/extensions/uk.co.vedaconsulting.mosaico/:/srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/extensions/org.civicrm.flexmailer/:/srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/extensions/org.civicrm.shoreditch/:/srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/extensions/nz.co.fuzion.civixero/:/srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/extensions/nz.co.fuzion.accountsync/:/srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/extensions/nz.co.fuzion.fmcmembership/:/srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/extensions/nz.co.fuzion.transactional/:/srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/extensions/nz.co.fuzion.omnipaymultiprocessor/vendor/phpunit/phpunit-mock-objects:/srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/ext in /srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/extensions/com.cividesk.normalize/CRM/Utils/Normalize.php on line 25

Delimiters (e.g. O', Mc, -) don't work as expected

The code to handle delimiters when capitalizing names in CRM_Utils_Normalize::normalize_contact is cribbed from here: http://php.net/manual/en/function.ucwords.php#112795

However, this code is fundamentally broken. The foreach loop ensures that only the last delimiter in the $delimiters array matters.

I've tried thinking of ways to fix this code without changing the general approach - but I think the only real fix is to employ a clever preg_replace.

PHP warnings when saving the configuration form

Notice: Undefined property: CRM_Admin_Form_Setting_Normalize::$_values in CRM_Admin_Form_Setting_Normalize->buildQuickForm() (line 92 of /var/www/powerbase/sites/all/extensions/normalize/CRM/Admin/Form/Setting/Normalize.php).
Strict warning: Only variables should be passed by reference in CRM_Admin_Form_Setting_Normalize->postProcess() (line 175 of /var/www/powerbase/sites/all/extensions/normalize/CRM/Admin/Form/Setting/Normalize.php).
Strict warning: Only variables should be passed by reference in CRM_Admin_Form_Setting_Normalize->postProcess() (line 175 of /var/www/powerbase/sites/all/extensions/normalize/CRM/Admin/Form/Setting/Normalize.php).
Strict warning: Only variables should be passed by reference in CRM_Admin_Form_Setting_Normalize->postProcess() (line 175 of /var/www/powerbase/sites/all/extensions/normalize/CRM/Admin/Form/Setting/Normalize.php).
Strict warning: Only variables should be passed by reference in CRM_Admin_Form_Setting_Normalize->postProcess() (line 175 of /var/www/powerbase/sites/all/extensions/normalize/CRM/Admin/Form/Setting/Normalize.php).
Strict warning: Only variables should be passed by reference in CRM_Admin_Form_Setting_Normalize->postProcess() (line 175 of /var/www/powerbase/sites/all/extensions/normalize/CRM/Admin/Form/Setting/Normalize.php).
Strict warning: Only variables should be passed by reference in CRM_Admin_Form_Setting_Normalize->postProcess() (line 175 of /var/www/powerbase/sites/all/extensions/normalize/CRM/Admin/Form/Setting/Normalize.php).
Strict warning: Only variables should be passed by reference in CRM_Admin_Form_Setting_Normalize->postProcess() (line 175 of /var/www/powerbase/sites/all/extensions/normalize/CRM/Admin/Form/Setting/Normalize.php).
Strict warning: Only variables should be passed by reference in CRM_Admin_Form_Setting_Normalize->postProcess() (line 175 of /var/www/powerbase/sites/all/extensions/normalize/CRM/Admin/Form/Setting/Normalize.php).
Strict warning: Only variables should be passed by reference in CRM_Admin_Form_Setting_Normalize->postProcess() (line 175 of /var/www/powerbase/sites/all/extensions/normalize/CRM/Admin/Form/Setting/Normalize.php).
Strict warning: Only variables should be passed by reference in CRM_Admin_Form_Setting_Normalize->postProcess() (line 175 of /var/www/powerbase/sites/all/extensions/normalize/CRM/Admin/Form/Setting/Normalize.php).
Strict warning: Only variables should be passed by reference in CRM_Admin_Form_Setting_Normalize->postProcess() (line 175 of /var/www/powerbase/sites/all/extensions/normalize/CRM/Admin/Form/Setting/Normalize.php).
Strict warning: Only variables should be passed by reference in CRM_Admin_Form_Setting_Normalize->postProcess() (line 175 of /var/www/powerbase/sites/all/extensions/normalize/CRM/Admin/Form/Setting/Normalize.php).
Strict warning: Only variables should be passed by reference in CRM_Admin_Form_Setting_Normalize->postProcess() (line 175 of /var/www/powerbase/sites/all/extensions/normalize/CRM/Admin/Form/Setting/Normalize.php).
Strict warning: Only variables should be passed by reference in CRM_Admin_Form_Setting_Normalize->postProcess() (line 175 of /var/www/powerbase/sites/all/extensions/normalize/CRM/Admin/Form/Setting/Normalize.php).
Strict warning: Only variables should be passed by reference in CRM_Admin_Form_Setting_Normalize->postProcess() (line 175 of /var/www/powerbase/sites/all/extensions/normalize/CRM/Admin/Form/Setting/Normalize.php).
Strict warning: Only variables should be passed by reference in CRM_Admin_Form_Setting_Normalize->postProcess() (line 175 of /var/www/powerbase/sites/all/extensions/normalize/CRM/Admin/Form/Setting/Normalize.php).

4.6 version?

I have a client who would like to upgrade from 4.4 to 4.6 and is using this extension.

What tasks would be needed to do a 4.6 version off the top of your head? Is it likely to be quite simple? Do you have a timeframe when you are intending to release a 4.6 compatible version?

Normalising all uppercase to capitalised

At the moment we format our contacts as follows:
Individuals: First name capitalised, last name uppercase
Organisations: All in uppercase

But so far we have been doing this formatting manually, which takes quite a lot of time, and want to change to a new formatting system where we capitalise the first letter of each word of all names. We thought the Civinormalise extension might help us do this but it doesn't seem to work to revert all uppercase names to sentence case.

Screen Shot 2019-07-08 at 15 57 05
Screen Shot 2019-07-08 at 15 57 26

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.