[Koha-patches] [PATCH] [SIGNED-OFF] [3.4.X] 5684: Remove all items fields from a Z39.50 record imported for acquisition.

Marcel de Rooy M.de.Rooy at rijksmuseum.nl
Fri May 13 13:46:52 CEST 2011


From: Frédérick Capovilla <frederick.capovilla at sys-tech.net>

Signed-off-by: Marcel de Rooy m.de.rooy at rijksmuseum.nl
May 13: Patch applies to 3.4.X as well.
---
 acqui/neworderempty.pl |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/acqui/neworderempty.pl b/acqui/neworderempty.pl
index 386dda7..bd06b0c 100755
--- a/acqui/neworderempty.pl
+++ b/acqui/neworderempty.pl
@@ -132,6 +132,11 @@ if ( $ordernumber eq '' and defined $params->{'breedingid'}){
     my ($marcrecord, $encoding) = MARCfindbreeding($params->{'breedingid'});
     die("Could not find the selected record in the reservoir, bailing") unless $marcrecord;

+    # Remove all the items (952) from the imported record
+    foreach my $item ($marcrecord->field('952')) {
+        $marcrecord->delete_field($item);
+    }
+
     my $duplicatetitle;
 #look for duplicates
     ($biblionumber,$duplicatetitle) = FindDuplicate($marcrecord);
--
1.6.0.6
_______________________________________________
Koha-patches mailing list
Koha-patches at lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


More information about the Koha-patches mailing list