Diff of /marc-tools/trunk/updateMarcForKoha.pl [r530] .. [r531] Maximize Restore

  Switch to side-by-side view

--- a/marc-tools/trunk/updateMarcForKoha.pl
+++ b/marc-tools/trunk/updateMarcForKoha.pl
@@ -319,6 +319,32 @@
     if ( $callnumber =~ /^ADULT PERIODICAL|PERIODICAL|MAGAZINE/i) { return 'MAG'; }
     return '1';
     print("Cannot match callnumber $callnumber to any known item type.") && die();
+  } elsif ( $branchcode eq 'STON' ) {
+    if ( $callnumber eq 'Default' ) { return '1'; }
+    if ( $callnumber =~ /^PER|MAG|JUV PER/i) { return 'MAG'; }
+    if ( $callnumber =~ /^F |FIC |FICTION |\[F /i) { return 'FIC'; }    
+    if ( $callnumber =~ /^REF |REFERENCE |\[R /i) { return 'REF'; }
+    if ( $callnumber =~ /^92|092|B | BIO|\[B /i) { return 'BIO'; }
+    if ( $callnumber =~ /^E |EAS |\[E /i) { return 'EASY'; }            
+    if ( $callnumber =~ /^808|SC |STORY COLLECTION |\[SC /i) { return 'SC'; }
+    if ( $callnumber =~ /^[0-9][0-9][0-9]+/) { return 'NF'; }        
+    if ( $callnumber =~ /^J [0-9][0-9][0-9]+/) { return 'JNF'; }
+    if ( $callnumber =~ /^J|\[J /i) { return 'JUV'; }                
+    return '1';
+    print("Cannot match callnumber $callnumber to any known item type.") && die();
+  } elsif ( $branchcode eq 'LINE' ) {
+    if ( $callnumber eq 'Default' ) { return '1'; }
+    if ( $callnumber =~ /^PER|MAG/i) { return 'MAG'; }
+    if ( $callnumber =~ /^F |FIC |FICTION |\[F /i) { return 'FIC'; }    
+    if ( $callnumber =~ /^REF |REFERENCE |\[R /i) { return 'REF'; }
+    if ( $callnumber =~ /^92|B | BIO|\[B /i) { return 'BIO'; }
+    if ( $callnumber =~ /^E |EAS |\[E /i) { return 'EASY'; }            
+    if ( $callnumber =~ /^808|SC |STORY COLLECTION |\[SC /i) { return 'SC'; }    
+    if ( $callnumber =~ /^[0-9][0-9][0-9]+/) { return 'NF'; }        
+    if ( $callnumber =~ /^J [0-9][0-9][0-9]+/) { return 'JNF'; }    
+    if ( $callnumber =~ /^J|\[J /i) { return 'JUV'; }                    
+    return '1';
+    print("Cannot match callnumber $callnumber to any known item type.") && die();
   }
 }