Placeholders <<MM>> and <<DD>> used for default values in cataloguing frameworks should be replaced by a 2 digit number. This is mandatory for fixed length fields.
Created attachment 59151 [details] [review] Bug 17922: Use correct number of digits when replacing date placeholders This patch also fixes a typo ("<<MM><" should be "<<MM>>")
Test plan: 1. In your MARC framework, set a default value of "<<YYYY>><<MM>><<DD>>" for a biblio subfield and an item subfield. 2. Create a new biblio record then check that the value of subfield is 20170118 and not 2017118 (value can change obviously) 3. Create a new item record then check that the default value is ok.
Increasing severity as this can cause software errors for fixed length fields: Unsupported UNIMARC character encoding [05] for XML output for UNIMARC; 100$a -> 2017118d u||y0frey5050 ba at /usr/share/perl5/MARC/File/XML.pm line 568.
Created attachment 59373 [details] [review] [SIGNED-OFF] Bug 17922: Use correct number of digits when replacing date placeholders This patch also fixes a typo ("<<MM><" should be "<<MM>>") Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Created attachment 59577 [details] [review] Bug 17922: Use correct number of digits when replacing date placeholders This patch also fixes a typo ("<<MM><" should be "<<MM>>") Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Ouch, my bad. Would be great to get this stuff moved to a module and provide tests. But this patch definitely fixes issues and should be pushed and backported ASAP.
Pushed to master for 17.05, thanks Julian!
This patch has been pushed to 16.11.x and will be in 16.11.04.
Pushed to 3.22.x for 3.22.17
Pushed to 16.05.x, for 16.05.10 release
*** Bug 18272 has been marked as a duplicate of this bug. ***