Bug 36552: Update record 'date entered on file' when duplicating a record
authorJanusz Kaczmarek <januszop@gmail.com>
Wed, 26 Apr 2023 23:04:48 +0000 (01:04 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 23 May 2024 12:57:05 +0000 (14:57 +0200)
commit0cd9d2f1842a93beb4dfb5cba26c64602bdf2d68
treeb7de587b7991741a98ea4806d7ad41ea2d780477
parentaabe54000ae8292fa4cc7003491bb9c3a041a704
Bug 36552: Update record 'date entered on file' when duplicating a record

The 'date entered on file' (MARC21: 008/0-5, UNIMARC: 100a/0=7) of a record created
by duplication of an existing record should be set to the current date instead of
having the value of the original record.

Test plan
=========
1. Check the 'date entered on file' of an existing biblio / authotiry record
   (MARC21: 008/0-5, UNIMARC: 100a/0=7).
2. Duplicate the record by Edit > Edit as new (duplicate)
3. Control the 'date entered on file' value - it will equal to that of the
   original record.
4. Apply the patch (restart plack).
5. Repeat step 2.
6. Check the date - it should be the current date.

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit dd8f9e1266f2b93b0d57f1f1289d49f61129391e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
authorities/authorities.pl
cataloguing/addbiblio.pl