Homec4science

* Fixed display of empty indicators in TEXT-MARC mode - they are now replaced…

Authored by Nicholas Robinson <nicholas.robinson@cern.ch> on Mar 15 2007, 15:11.

Description

  • Fixed display of empty indicators in TEXT-MARC mode - they are now replaced by an underscore instead of a space; * Fixed Display of empty ind1 when ind2 is not empty in ALEPH-MARC mode. Previously, ind1 would be a space - now it is an underscore; * Fixed handling of empty indicators in MARC XML fields - now handles either spaces or empty strings (e.g.: ind1=\" \" or ind1=\"\"); * Fixed issue concerning the order of datafields and subfields in the record: previously both datafields and subfields were orderd alpha- numerically in the resulting MARC record - now the order in which they occurred in the XML MARC record is respected; * Added config variable 'CFG_ORGANIZATION_IDENTIFIER' that should contain the identifer of the organization to which the 001 field value belongs (set as SzGeCERN for CERN sites - other sites should configure their own value for this). The 003 field is now added to ALEPH-MARC 'insert' and 'replace' records, and dropped from all other ALEPH-MARC records. Its value from the XML MARC record is preserved in TEXT-MARC mode; * Fixed a bug in ALEPH-MARC 'insert' mode. Previously the SYS (970__a) that was present in the XML MARC record was taken as the SYS for the record and put into the 001 field of the resulting ALEPH record. This was wrong. Now, when creating an ALEPH insert record, 970 is dropped from the XML record, and a random sysno is generated for the new ALEPH record. No 001 is added to the record - ALEPH will choose its own SYS and add a 001 automatically. * Changed the "m" (modify) option of --aleph-mode to be "c" (correct); * Other refactoring and code-cleaning after pylint;

Event Timeline

Nicholas Robinson <nicholas.robinson@cern.ch> committed R3600:0970b26c661a: * Fixed display of empty indicators in TEXT-MARC mode - they are now replaced… (authored by Nicholas Robinson <nicholas.robinson@cern.ch>).Mar 15 2007, 15:11