Bugzilla – Attachment 126033 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.11 KB, created by
Marcel de Rooy
on 2021-10-11 09:04:46 UTC
(
hide
)
Description:
Bug 28831: Add the new group by substatus-block
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2021-10-11 09:04:46 UTC
Size:
3.11 KB
patch
obsolete
>From 6b443219b1908f50e1eed37684ea42de681305bf 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> > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > .../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 8d0d010184..40e73b4f22 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -1366,6 +1366,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