koha-cvs
[Top][All Lists]
Advanced

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

[Koha-cvs] koha/value_builder barcode.pl [rel_2_2]


From: Joshua Ferraro
Subject: [Koha-cvs] koha/value_builder barcode.pl [rel_2_2]
Date: Wed, 20 Sep 2006 02:24:42 +0000

CVSROOT:        /sources/koha
Module name:    koha
Branch:         rel_2_2
Changes by:     Joshua Ferraro <kados>  06/09/20 02:24:42

Modified files:
        value_builder  : barcode.pl 

Log message:
        barcode should only be incremented for new items, old itms retain their
        existing barcode.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/value_builder/barcode.pl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.1.2.1&r2=1.1.2.2

Patches:
Index: barcode.pl
===================================================================
RCS file: /sources/koha/koha/value_builder/Attic/barcode.pl,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -b -r1.1.2.1 -r1.1.2.2
--- barcode.pl  10 Sep 2006 23:55:20 -0000      1.1.2.1
+++ barcode.pl  20 Sep 2006 02:24:42 -0000      1.1.2.2
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 
-# $Id: barcode.pl,v 1.1.2.1 2006/09/10 23:55:20 kados Exp $
+# $Id: barcode.pl,v 1.1.2.2 2006/09/20 02:24:42 kados Exp $
 
 # Copyright 2000-2002 Katipo Communications
 #
@@ -92,9 +92,11 @@
 function Focus$function_name(subfield_managed) {
                for (i=0 ; i<document.f.field_value.length ; i++) {
                        if (document.f.tag[i].value == '952' && 
document.f.subfield[i].value == 'p') {
+                               if (document.f.field_value[i].value == '') {
                                document.f.field_value[i].value = '$nextnum';
                        }
                }
+               }
 return 0;
 }
 




reply via email to

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