CAT-46 Bib Call Number Also Uses 99a; Avoid Undefined
authorkhuckins <khuckins@catalystdevworks.com>
Fri, 5 Feb 2016 17:30:33 +0000 (12:30 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Add option for Bib Call Numbers to be populated from the 099a
subfield, rather than just the 092a subfield.

Avoid returning an 'undef' value fro the bib call number, which results
in 'undefined' labels in Javascript.  Default to empty string.

Signed-off-by: khuckins <khuckins@catalystdevworks.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm

index 131e512..8d18aa9 100644 (file)
@@ -3473,7 +3473,7 @@ sub uber_hold_impl {
             $logger->error(
                 "Error processing MARC record for bib ".$bre->id." $@"); 
         } else {
-            $bibcn = $marc->subfield('092',"a"); 
+            $bibcn = $marc->subfield('092',"a") || $marc->subfield('099', "a") || " "
         }
     }
     # --------------------