[Koha-cvs] koha/C4 Labels.pm [dev_week]

Mason James szrj1m at yahoo.com
Tue Jan 29 21:58:10 CET 2008


CVSROOT:	/sources/koha
Module name:	koha
Branch:		dev_week
Changes by:	Mason James <sushi>	08/01/29 20:58:10

Modified files:
	C4             : Labels.pm 

Log message:
	better regex for LOC-class in split_lccn().

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Labels.pm?cvsroot=koha&only_with_tag=dev_week&r1=1.3.4.57&r2=1.3.4.58

Patches:
Index: Labels.pm
===================================================================
RCS file: /sources/koha/koha/C4/Labels.pm,v
retrieving revision 1.3.4.57
retrieving revision 1.3.4.58
diff -u -b -r1.3.4.57 -r1.3.4.58
--- Labels.pm	29 Jan 2008 05:08:09 -0000	1.3.4.57
+++ Labels.pm	29 Jan 2008 20:58:09 -0000	1.3.4.58
@@ -117,7 +117,7 @@
 
 # lccn example 'HE8700.7 .P6T44 1983';
     my @splits   = m/
-        (^[a-zA-Z]{2})             # 'HE' 
+        ([a-zA-Z]+)      
         ([0-9]+\.*[0-9]+\s*)    # 8700.7 or 8700 without '.', 
                                 # handles trailing space too
         (\.[a-zA-Z0-9]+\s*)        #.P6T44





More information about the Koha-cvs mailing list