Adds the ability to reference itemcallnumber within XSLT
authorJoshua Ferraro <jmf@liblime.com>
Tue, 23 Dec 2008 22:17:58 +0000 (16:17 -0600)
committerGalen Charlton <galen.charlton@liblime.com>
Wed, 31 Dec 2008 16:19:55 +0000 (10:19 -0600)
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/XSLT.pm

index 3c781d2..eeb2ec7 100644 (file)
@@ -160,7 +160,10 @@ sub buildKohaItemsNamespace {
         } else {
             $status = "available";
         }
-        $xml.="<item><homebranch>".$branches->{$item->{homebranch}}->{'branchname'}."</homebranch>"."<status>$status</status></item>";
+        $xml.="<item><homebranch>".$branches->{$item->{homebranch}}->{'branchname'}."</homebranch>".
+               "<status>$status</status>".
+               "<itemcallnumber>".$item->{'itemcallnumber'}."</itemcallnumber></item>";
+
     }
     return "<items xmlns='http://www.koha.org/items'>".$xml."</items>";
 }