Bugzilla – Attachment 56744 Details for
Bug 17435
Gives ability to display stocknumber in the search results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 17435: Gives ability to display stocknumber in search results
PASSED-QA-Bug-17435-Gives-ability-to-display-stock.patch (text/plain), 2.15 KB, created by
Katrin Fischer
on 2016-10-24 11:50:22 UTC
(
hide
)
Description:
[PASSED QA] Bug 17435: Gives ability to display stocknumber in search results
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2016-10-24 11:50:22 UTC
Size:
2.15 KB
patch
obsolete
>From 62c356dae635dc0d4a8b264a9f19942a93ab84af Mon Sep 17 00:00:00 2001 >From: kohamaster <preprod@kohaVM> >Date: Wed, 12 Oct 2016 16:17:04 +0200 >Subject: [PATCH] [PASSED QA] Bug 17435: Gives ability to display stocknumber > in search results > >Adds stocknumber to data provided for xslt transformation > >Test plan : >1) go to Administration module, MARC default frameworks and add, if not already done, a stocknumber subfield (a priori under the 995 tag). It will be linked to items.stocknumber in the koha.link zone of Advanced constraints section. >2) edit an item in staff interface and add a number in the stocknumber field. >3) Edit the xslt opac Results file that you are using and customize it. For a basic test, you can just replace "itemcallnumber" occurrences by "stocknumber". >4) make a search in a way to get several results including the title from which you modified an item. >5) You will see the added stocknumber displayed (between square brackets in the default xslt). > >Same can be done through staff interface and staff xslt files. > >Olivier Crouzet > >Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> > >Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> >--- > C4/XSLT.pm | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/C4/XSLT.pm b/C4/XSLT.pm >index 518f59d..50ab8e6 100644 >--- a/C4/XSLT.pm >+++ b/C4/XSLT.pm >@@ -325,6 +325,7 @@ sub buildKohaItemsNamespace { > $location = $item->{location}? xml_escape($shelflocations->{$item->{location}}||$item->{location}):''; > $ccode = $item->{ccode}? xml_escape($ccodes->{$item->{ccode}}||$item->{ccode}):''; > my $itemcallnumber = xml_escape($item->{itemcallnumber}); >+ my $stocknumber = $item->{stocknumber}? xml_escape($item->{stocknumber}):''; > $xml .= > "<item>" > . "<homebranch>$homebranch</homebranch>" >@@ -333,6 +334,7 @@ sub buildKohaItemsNamespace { > . "<ccode>$ccode</ccode>" > . "<status>$status</status>" > . "<itemcallnumber>$itemcallnumber</itemcallnumber>" >+ . "<stocknumber>$stocknumber</stocknumber>" > . "</item>"; > } > $xml = "<items xmlns=\"http://www.koha-community.org/items\">".$xml."</items>"; >-- >2.7.4
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 17435
:
56294
|
56565
| 56744