koha-cvs
[Top][All Lists]
Advanced

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

[Koha-cvs] koha/C4 AuthoritiesMarc.pm [rel_2_2]


From: paul poulain
Subject: [Koha-cvs] koha/C4 AuthoritiesMarc.pm [rel_2_2]
Date: Mon, 03 Apr 2006 12:52:50 +0000

CVSROOT:        /cvsroot/koha
Module name:    koha
Branch:         rel_2_2
Changes by:     paul poulain <address@hidden>   06/04/03 12:52:50

Modified files:
        C4             : AuthoritiesMarc.pm 

Log message:
        oups, sorry kados, I had removed something you wrote for MARC21 
authorities...

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha/C4/AuthoritiesMarc.pm.diff?only_with_tag=rel_2_2&tr1=1.9.2.15&tr2=1.9.2.16&r1=text&r2=text

Patches:
Index: koha/C4/AuthoritiesMarc.pm
diff -u koha/C4/AuthoritiesMarc.pm:1.9.2.15 koha/C4/AuthoritiesMarc.pm:1.9.2.16
--- koha/C4/AuthoritiesMarc.pm:1.9.2.15 Thu Mar 30 14:20:03 2006
+++ koha/C4/AuthoritiesMarc.pm  Mon Apr  3 12:52:50 2006
@@ -212,7 +212,33 @@
                        } else {
                        # construct MARC21 summary
                                foreach my $field ($record->field('1..')) {
-                                       $heading.= $field->as_string();
+                                       if ($record->field('100')) {
+                                               $heading.= 
$field->as_string('abcdefghjklmnopqrstvxyz68');
+                                       } elsif ($record->field('110')) {
+                                               $heading.= 
$field->as_string('abcdefghklmnoprstvxyz68');
+                                       } elsif ($record->field('111')) {
+                                               $heading.= 
$field->as_string('acdefghklnpqstvxyz68');
+                                       } elsif ($record->field('130')) {
+                                               $heading.= 
$field->as_string('adfghklmnoprstvxyz68');
+                                       } elsif ($record->field('148')) {
+                                               $heading.= 
$field->as_string('abvxyz68');
+                                       } elsif ($record->field('150')) {
+                                               $heading.= 
$field->as_string('abvxyz68');       
+                                       } elsif ($record->field('151')) {
+                                               $heading.= 
$field->as_string('avxyz68');
+                                       } elsif ($record->field('155')) {
+                                               $heading.= 
$field->as_string('abvxyz68');
+                                       } elsif ($record->field('180')) {
+                                               $heading.= 
$field->as_string('vxyz68');
+                                       } elsif ($record->field('181')) {
+                                               $heading.= 
$field->as_string('vxyz68');
+                                       } elsif ($record->field('182')) {
+                                               $heading.= 
$field->as_string('vxyz68');
+                                       } elsif ($record->field('185')) {
+                                               $heading.= 
$field->as_string('vxyz68');
+                                       } else {
+                                               $heading.= $field->as_string();
+                                       }
                                }
                                foreach my $field ($record->field('4..')) {
                                        $summary.= 
"&nbsp;&nbsp;&nbsp;".$field->as_string()."<br />";
@@ -1043,8 +1069,11 @@
 
 =cut
 
-# $Id: AuthoritiesMarc.pm,v 1.9.2.15 2006/03/30 14:20:03 tipaul Exp $
+# $Id: AuthoritiesMarc.pm,v 1.9.2.16 2006/04/03 12:52:50 tipaul Exp $
 # $Log: AuthoritiesMarc.pm,v $
+# Revision 1.9.2.16  2006/04/03 12:52:50  tipaul
+# oups, sorry kados, I had removed something you wrote for MARC21 
authorities...
+#
 # Revision 1.9.2.15  2006/03/30 14:20:03  tipaul
 # don't use + on a numeric value when you want to do a concat !!!
 #




reply via email to

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