From 153056ded542fce4939147f9468afd203d0e1aaf Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Mon, 13 Jun 2011 14:36:06 -0400 Subject: [PATCH] Bail if 035a already present in record. Return from maintain_control_numbers if the record already has a 035 subfield a. This combination is not repeatable per MARC: http://www.loc.gov/marc/bibliographic/concise/bd035.html Signed-off-by: Jason Stephenson --- Open-ILS/src/sql/Pg/002.functions.config.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Open-ILS/src/sql/Pg/002.functions.config.sql b/Open-ILS/src/sql/Pg/002.functions.config.sql index 56a3df86c2..1be7dd84f4 100644 --- a/Open-ILS/src/sql/Pg/002.functions.config.sql +++ b/Open-ILS/src/sql/Pg/002.functions.config.sql @@ -532,6 +532,10 @@ if ($ous_rv->{processed}) { my ($create, $munge) = (0, 0); +# 035a is not repeatable per MARC standard, so bail if we already got +# one. +return if ($record->field('035', 'a'); + my @scns = $record->field('035'); foreach my $id_field ('001', '003') { -- 2.11.0