Bugzilla – Attachment 17592 Details for
Bug 10006
holding branch is not available to XSLT display
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10006 - holding branch is not available to XSLT display
Bug-10006---holding-branch-is-not-available-to-XSL.patch (text/plain), 1.85 KB, created by
Marcel de Rooy
on 2013-04-22 12:55:58 UTC
(
hide
)
Description:
Bug 10006 - holding branch is not available to XSLT display
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2013-04-22 12:55:58 UTC
Size:
1.85 KB
patch
obsolete
>From 26c922b377ec5e24a43d12cf9c11faccd849e043 Mon Sep 17 00:00:00 2001 >From: Liz Rea <liz@catalyst.net.nz> >Date: Tue, 9 Apr 2013 13:20:09 +1200 >Subject: [PATCH] Bug 10006 - holding branch is not available to XSLT display >Content-Type: text/plain; charset=utf-8 > >To test: > >Use attached XSLT stylesheet for OPAC Results > * set your OPACXSLTResultsDisplay to use the attached stylesheet. The path is the FULL PATH, from /, to the file. > * be sure to copy MARC21slimUtils.xsl to the same folder, or change the path in the attached one to point to the correct path on your filesystem. > >Verify that the OPAC results now show the holding branch instead of the home branch. > >Possible fail states: > >* no branch is shown (only call numbers, if given) >* the wrong branch is shown > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > C4/XSLT.pm | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > >diff --git a/C4/XSLT.pm b/C4/XSLT.pm >index dd1967a..19ce2ab 100644 >--- a/C4/XSLT.pm >+++ b/C4/XSLT.pm >@@ -280,10 +280,12 @@ sub buildKohaItemsNamespace { > $status = "available"; > } > my $homebranch = $item->{homebranch}? xml_escape($branches->{$item->{homebranch}}->{'branchname'}):''; >+ my $holdingbranch = $item->{holdingbranch}? xml_escape($branches->{$item->{holdingbranch}}->{'branchname'}):''; > $location = $item->{location}? xml_escape($shelflocations->{$item->{location}}):''; > $ccode = $item->{ccode}? xml_escape($ccodes->{$item->{ccode}}):''; > my $itemcallnumber = xml_escape($item->{itemcallnumber}); > $xml.= "<item><homebranch>$homebranch</homebranch>". >+ "<holdingbranch>$holdingbranch</holdingbranch>". > "<location>$location</location>". > "<ccode>$ccode</ccode>". > "<status>$status</status>". >-- >1.7.7.6
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 10006
:
17300
|
17301
|
17383
| 17592