[Koha-bugs] [Bug 27981] Add option to automatically set the 001 control number to the biblionumber

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 17 08:47:29 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27981

Marcel de Rooy <m.de.rooy at rijksmuseum.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Signed Off                  |Failed QA

--- Comment #14 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
+        unless($record->field('001')){
+            $record->insert_fields_ordered(MARC::Field->new('001',
$biblionumber));
+        }elsif($record->field('001')->data() eq 'biblionumber'){
+            $record->field('001')->update($biblionumber);
+        }

Please explain.
Why do you test eq 'biblionumber' ??
Why not always overwrite 001 with $biblionumber if the pref is set ?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list