koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] koha/acqui.simple addbiblio.pl [rel_2_2]


From: paul poulain
Subject: [Koha-cvs] koha/acqui.simple addbiblio.pl [rel_2_2]
Date: Wed, 13 Sep 2006 14:28:56 +0000

CVSROOT:        /cvsroot/koha
Module name:    koha
Branch:         rel_2_2
Changes by:     paul poulain <tipaul>   06/09/13 14:28:56

Modified files:
        acqui.simple   : addbiblio.pl 

Log message:
        reintroducing indicators for UNIMARC libraries.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/acqui.simple/addbiblio.pl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.52.2.53&r2=1.52.2.54

Patches:
Index: addbiblio.pl
===================================================================
RCS file: /cvsroot/koha/koha/acqui.simple/Attic/addbiblio.pl,v
retrieving revision 1.52.2.53
retrieving revision 1.52.2.54
diff -u -b -r1.52.2.53 -r1.52.2.54
--- addbiblio.pl        31 Aug 2006 15:51:53 -0000      1.52.2.53
+++ addbiblio.pl        13 Sep 2006 14:28:56 -0000      1.52.2.54
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 
-# $Id: addbiblio.pl,v 1.52.2.53 2006/08/31 15:51:53 tipaul Exp $
+# $Id: addbiblio.pl,v 1.52.2.54 2006/09/13 14:28:56 tipaul Exp $
 
 # Copyright 2000-2002 Katipo Communications
 #
@@ -136,6 +136,7 @@
                                }
                                $record->insert_fields_ordered($field);
                        }
+#                      warn $record->as_formatted."";
                        return $record,$encoding;
                }
        }
@@ -500,7 +501,12 @@
        my @ind_tag = $input->param('ind_tag');
        my @indicator = $input->param('indicator');
        if (C4::Context->preference('TemplateEncoding') eq "iso-8859-1") {
-               $record = 
MARChtml2marc($dbh,address@hidden,address@hidden,address@hidden,address@hidden,address@hidden);
+        my %indicators;
+        for (my $i=0;$i<=$#ind_tag;$i++) {
+            $indicators{$ind_tag[$i]} = $indicator[$i];
+        }
+               $record = 
MARChtml2marc($dbh,address@hidden,address@hidden,address@hidden,%indicators);
+#              warn "RECORD : ".$record->as_formatted;
        } else {
                my $xml = 
MARChtml2xml(address@hidden,address@hidden,address@hidden,address@hidden,address@hidden);
                
$record=MARC::Record->new_from_xml($xml,C4::Context->preference('TemplateEncoding'),C4::Context->preference('marcflavour'));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]