Bugzilla – Attachment 124690 Details for
Bug 28831
OPAC XSLT Results: Allow unavailable item grouping on status only for large consortia
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28831: Add the new group by substatus-block
Bug-28831-Add-the-new-group-by-substatus-block.patch (text/plain), 3.01 KB, created by
Marcel de Rooy
on 2021-09-09 09:52:06 UTC
(
hide
)
Description:
Bug 28831: Add the new group by substatus-block
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2021-09-09 09:52:06 UTC
Size:
3.01 KB
patch
obsolete
>From 6c2ef3bed8be97b63fb21202f4cc5616c0b12831 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 9 Sep 2021 09:18:01 +0000 >Subject: [PATCH] Bug 28831: Add the new group by substatus-block >Content-Type: text/plain; charset=utf-8 > >Test plan: >Change OPACResultsUnavailableGroupingBy to substatus. >Verify the result on opac results. (You need a few unavailable items >with different statuses on a few branches.) > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../en/xslt/MARC21slim2OPACResults.xsl | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >index c48ae56143..786152c891 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -1365,6 +1365,25 @@ > </xsl:for-each> > </xsl:when> > <xsl:when test="$OPACResultsUnavailableGroupingBy='substatus'"> >+ <!-- Only group by substatus, do not list branch names and individual call numbers. Meant for large consortia --> >+ <xsl:for-each select="$unavailable_items[not(items:substatus=preceding-sibling::*[items:status='reallynotforloan' or items:status='other']/items:substatus)]"> >+ <xsl:sort select="items:substatus"/> >+ <xsl:variable name="current_substatus" select="items:substatus"/> >+ <xsl:call-template name="listCallNumbers"> >+ <xsl:with-param name="items" select="$unavailable_items[items:substatus=$current_substatus]"/> >+ <xsl:with-param name="max" select="0"/> >+ <xsl:with-param name="status_text"> >+ <xsl:if test="items:status='other'"> >+ <xsl:value-of select="exsl:node-set($other_status_list)/status[@english=$current_substatus]"/> >+ </xsl:if> >+ <xsl:if test="items:status='reallynotforloan'"> >+ <xsl:value-of select="$current_substatus"/> >+ </xsl:if> >+ </xsl:with-param> >+ <xsl:with-param name="class_block" select="concat('unavailable_',$current_substatus)"/> >+ <xsl:with-param name="class_status" select="UnavailableSubstatus"/> >+ </xsl:call-template> >+ </xsl:for-each> > </xsl:when> > </xsl:choose> > </span></xsl:if> >-- >2.20.1
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 28831
:
124688
|
124689
|
124690
|
124706
|
124707
|
124708
|
124804
|
124805
|
124806
|
125894
|
125895
|
125896
|
126031
|
126032
|
126033