Bugzilla – Attachment 97807 Details for
Bug 7611
Show the NOT_LOAN authorised values for item status in XSLT OPAC search results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7611: (follow-up) Fix display of undefined statuses and add a class
Bug-7611-follow-up-Fix-display-of-undefined-status.patch (text/plain), 2.40 KB, created by
Nick Clemens (kidclamp)
on 2020-01-23 11:56:54 UTC
(
hide
)
Description:
Bug 7611: (follow-up) Fix display of undefined statuses and add a class
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2020-01-23 11:56:54 UTC
Size:
2.40 KB
patch
obsolete
>From b3f0a4bdc8410466024fb4ffcb0630f2f52222ef Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 5 Nov 2019 16:32:45 +0000 >Subject: [PATCH] Bug 7611: (follow-up) Fix display of undefined statuses and > add a class > >--- > C4/XSLT.pm | 3 +-- > koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 6 +++++- > 2 files changed, 6 insertions(+), 3 deletions(-) > >diff --git a/C4/XSLT.pm b/C4/XSLT.pm >index a4fcfcf5cf..2f116a717f 100644 >--- a/C4/XSLT.pm >+++ b/C4/XSLT.pm >@@ -339,8 +339,7 @@ sub buildKohaItemsNamespace { > } > elsif ( $item->notforloan ) { > $status = "reallynotforloan"; >- $substatus = $descs{$item->{notforloan}} || ''; >- $substatus = $substatus->{opac_description} if $substatus; >+ $substatus = exists $descs{$item->{notforloan}} ? $descs{$item->{notforloan}}->{opac_description} : "Not for loan_$item->{notforloan}"; > } > elsif ( exists $itemtypes->{ $item->effective_itemtype } > && $itemtypes->{ $item->effective_itemtype }->{notforloan} == 1 ) >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >index c403a4675c..edff548f2d 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -1343,7 +1343,11 @@ > <br /> > <xsl:variable name="reference_items" select="key('item-by-status', 'reallynotforloan')"/> > <xsl:for-each select="$reference_items[generate-id() = generate-id(key('item-by-substatus-and-branch', concat(items:substatus, ' ', items:homebranch))[1])]"> >- <span class="ItemSummary"> >+ <span> >+ <xsl:attribute name="class"> >+ ItemSummary >+ <xsl:value-of select="translate(items:substatus,' ','_')"/> >+ </xsl:attribute> > <xsl:if test="$singleBranchMode=0"> > <span class="ItemBranch"><xsl:value-of select="items:homebranch"/><xsl:text> </xsl:text></span> > </xsl:if> >-- >2.11.0
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 7611
:
7905
|
7906
|
7907
|
60816
|
62930
|
62931
|
85115
|
92495
|
92496
|
94026
|
94212
|
95060
|
95061
|
95235
|
95236
|
95237
|
95238
|
95239
|
95240
|
97804
|
97805
|
97806
|
97807
|
97808
|
99074
|
99075
|
99076
|
99077
|
99078
|
99163