[open-ils-commits] r18708 - branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Cat (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Nov 11 12:01:35 EST 2010
Author: dbs
Date: 2010-11-11 12:01:32 -0500 (Thu, 11 Nov 2010)
New Revision: 18708
Modified:
branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Cat/Authority.pm
Log:
Do not supply a default value for 003 in new authority records
With cat.maintain_control_numbers enabled by default, we can trust
the database trigger to create the appropriate 003 for us - and by
not supplying a 003 in the new record, we won't create a spurious
035 for a brand new record.
Modified: branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Cat/Authority.pm
===================================================================
--- branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Cat/Authority.pm 2010-11-11 16:55:52 UTC (rev 18707)
+++ branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Cat/Authority.pm 2010-11-11 17:01:32 UTC (rev 18708)
@@ -86,7 +86,7 @@
my $arn = 'AUTOGEN-' . time();
# Placeholder MARCXML;
- # 001/003 can be filled in via database triggers
+ # 001/003 can be be properly filled in via database triggers
# 005 will be filled in automatically at creation time
# 008 needs to be set by a cataloguer (could be some OU settings, I suppose)
# 040 should come from OU settings / OU shortname
@@ -94,7 +94,6 @@
my $marc_xml = <<MARCXML;
<record xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns="http://www.loc.gov/MARC21/slim"><leader> nz a22 o 4500</leader>
<controlfield tag="001">$arn</controlfield>
-<controlfield tag="003">CONS</controlfield>
<controlfield tag="008"> ||||||||||||||||||||||||||||||||||</controlfield>
<datafield tag="040" ind1=" " ind2=" "><subfield code="a">CONS</subfield><subfield code="c">CONS</subfield></datafield>
$control
More information about the open-ils-commits
mailing list