LP#1609556: (follow-up) restore previous 852$d output
authorGalen Charlton <gmc@esilibrary.com>
Wed, 10 Aug 2016 14:26:06 +0000 (10:26 -0400)
committerMike Rylander <mrylander@gmail.com>
Wed, 10 Aug 2016 14:32:27 +0000 (10:32 -0400)
The previous patch had a side-effect of changing the 852$d
value from the circ library's shortname to its long name. This
patch restores the previous behavior.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm

index 400d0f0..a338ebe 100644 (file)
@@ -2031,7 +2031,7 @@ sub sru_search {
                                 a => $copy->getChildrenByTagName('location')->[0]->textContent,
                                 b => $owning_lib,
                                 c => $cn,
-                                d => $copy->getChildrenByTagName('circlib')->[0]->textContent,
+                                d => $copy->getChildrenByTagName('circ_lib')->[0]->getAttribute('shortname'),
                                 g => $copy->getAttribute('barcode'),
                                 n => $copy->getChildrenByTagName('status')->[0]->textContent
                             };