Corrected code for auto-incrementation on backend side and for the SpecimensForm only + tests
Begin of code auto-increment by trigger rewrite
Intermediate non functionnal code
A bit further with code auto generation once activated at collections level

refs #1521
Brought encoding of these new codes fields in collections functional

refs #1521

- Brought new fields in collectionsCodes components
- Brought new fields in template responsible of the codes fields editing in collections
- Corrected a few things to make trg_insert_auto_code after insert instead of before insert (we wish to autoincrement the code in collections only if codes were safely saved) and in fct_after_save_add_code that will be responsible to add code after successfully saving a specimen (and only if all the conditions are met)
- Added the two new fields in createtable.sql
- Comments added to describe the two new fields

... now the tests :)
Label corrections to be more explicit

refs #1521
Reset changes number and commented out a few lines of codes that were problematic for the moment

refs #1521

Have to deal now with a hidden problem due to recall of addCodes when saving /o\ -> produced the recall of one update of collections last val !
Corrected the mistake of reincrementation when saving embeded codes

- Was due to recall of addCodes function of SpecimensForm when bind occured

refs #1521
Add new fields corresponding to Container Widget + Add ABCD RecordBasis concept + Add possibility to import more than one picture/external link per specimen
Tiny amelioration in url composition for embedded _refCodes component in specimenwidgets
Code functional now for adding automatically code on new specimen

- Still need a lot of tests for the different cases, but no more bugging... except one discovered when deleting the whole specimen, a trigger clear_referenced_record fails...
  Will have to deal with it later on
- Lot of automated tests to be written
- Still have to insert the fct_after_save_add_code call in import and test it.

refs #1521
Added the function fct_afetr_save_add_code in the createfunctions.sql also
Merge branch 'stable' into codes_autocomplete
Merge branch 'stable' into codes_autocomplete
Stable state for code autofill and autoincremented in encoding interface

- Removed the unecessary and confusing code_auto_increment_even_if_existing_numeric column

- Specimen changing of collection foreseen
- Code category changing foreseen
- Interface testing of concurrent code add

Still need to do three kinds of testing:
* db unit testing
* symfony unit testing
* symfony functional testing

refs #1521
Removed the STRICT option from SELECT INTO

... to avoid getting problem when no rows for selection of collection was returned.
This has been replaced by a FOUND test.

refs #1521
DB Unit tests done for code auto insertion + corrections that it implied

- New functions have been added to Makefile and install.sh to ease the process of creating unit test environnement on DB
- Removed the no more necessary field in collections table from the createtable.sql
- Wrote the DB unit tests on codes auto insertion and on update of code last value in collections
- Adapted the functions (and added a new one) in consequence of these unit testing - Thanks to them !

refs #1521
Added forgotten function in dropfunction.sql
Should be ok for code insertion or correction once importing

- Code in import function (fct_importer_abcd) adapted so once no main code is there, it will be added and once ther's one it will eventually be corrected with prefix and suffix defined in collection
- Correction of list of possible code categories and translations for their display

refs #1521
Merge branch 'stable' into codes_autocomplete