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: Joshua Ferraro
Subject: [Koha-cvs] koha/acqui.simple addbiblio.pl [rel_2_2]
Date: Sat, 25 Feb 2006 02:06:01 +0000

CVSROOT:        /sources/koha
Module name:    koha
Branch:         rel_2_2
Changes by:     Joshua Ferraro <address@hidden> 06/02/25 02:05:59

Modified files:
        acqui.simple   : addbiblio.pl 

Log message:
        MAJOR BUGFIX: previously, when adding a tag, subfield order always 
started
        with 'a' because that was hardcoded into the script. Now, order is 
governed
        by the first defined subfield in the framework.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha/acqui.simple/addbiblio.pl.diff?only_with_tag=rel_2_2&tr1=1.52.2.18&tr2=1.52.2.19&r1=text&r2=text

Patches:
Index: koha/acqui.simple/addbiblio.pl
diff -u koha/acqui.simple/addbiblio.pl:1.52.2.18 
koha/acqui.simple/addbiblio.pl:1.52.2.19
--- koha/acqui.simple/addbiblio.pl:1.52.2.18    Sun Feb  5 21:59:21 2006
+++ koha/acqui.simple/addbiblio.pl      Sat Feb 25 02:05:59 2006
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 
-# $Id: addbiblio.pl,v 1.52.2.18 2006/02/05 21:59:21 kados Exp $
+# $Id: addbiblio.pl,v 1.52.2.19 2006/02/25 02:05:59 kados Exp $
 
 # Copyright 2000-2002 Katipo Communications
 #
@@ -305,6 +305,7 @@
                                        $tag_data{repeatable} = 
$tagslib->{$tag}->{repeatable};
                                        $tag_data{indicator} = $indicator;
                                        $tag_data{subfield_loop} = 
address@hidden;
+                                       $tag_data{tagfirstsubfield} = 
$tag_data{subfield_loop}[0];
                                        push (@loop_data, \%tag_data);
                                }
                        }
@@ -469,6 +470,7 @@
 } elsif ($op eq "addfield") {
 
#------------------------------------------------------------------------------------------------------------------------------
        my $addedfield = $input->param('addfield_field');
+       my $tagaddfield_subfield = $input->param('addfield_subfield');
        my @tags = $input->param('tag');
        my @subfields = $input->param('subfield');
        my @values = $input->param('field_value');
@@ -481,7 +483,8 @@
        }
        my $record = 
MARChtml2marc($dbh,address@hidden,address@hidden,address@hidden,%indicators);
        # adding an empty field
-       my $field = MARC::Field->new("$addedfield",'','','a'=> "");
+       my $tagslib = &MARCgettagslib($dbh,1,$frameworkcode);
+       my $field = 
MARC::Field->new("$addedfield",'','','$tagaddfield_subfield' => "");
        $record->append_fields($field);
        build_tabs ($template, $record, $dbh,$encoding);
        build_hidden_data;




reply via email to

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