Bugzilla – Attachment 42487 Details for
Bug 11881
Small improvements in OPAC results list
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Small improvements for the availability informations in the search results list on the OPAC
Small-improvements-for-the-availability-informatio.patch (text/plain), 5.05 KB, created by
Genevieve Plantin
on 2015-09-11 18:58:41 UTC
(
hide
)
Description:
Small improvements for the availability informations in the search results list on the OPAC
Filename:
MIME Type:
Creator:
Genevieve Plantin
Created:
2015-09-11 18:58:41 UTC
Size:
5.05 KB
patch
obsolete
>From f998a6f0b370414ba37acc9e1889e952f2ebbd0c Mon Sep 17 00:00:00 2001 >From: simith <simith@inlibro.com> >Date: Wed, 4 Mar 2015 14:09:56 -0500 >Subject: [PATCH] Small improvements for the availability informations in the > search results list on the OPAC > >This patch contains small modifications to the template of OPAC search results. >Theses modifications affect the "Availability" line : >* Add a linebreak after each location. >* Add the text "Call Number:" before call numbers. > >To test: > >I) Apply the patch > >II) Include the following test in the OPACUserCSS preference: > >.searchresults .CommasWithLinebreaks { > display: block; # block - line breaks, inline - all one line >} > >.searchresults .LabelCallNumber { > display: inline; # inline - display, none - don't display >} > >III) Do a search on the OPAC > >IV) Validate : check the format of availability informations for each search result (Breakline or "Call Number:" text). > >Sponsored-by: CCSR ( http://www.ccsr.qc.ca ) > >http://bugs.koha-community.org/show_bug.cgi?id=11881 >--- > .../bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 34 +++++++++++++------- > 1 file changed, 22 insertions(+), 12 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >index 4623dff..3b5e7f3 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -1114,23 +1114,33 @@ > select="key('item-by-status', 'available')"/> > <xsl:choose> > <xsl:when test="$singleBranchMode=1"> >- <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]"> >- <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<xsl:value-of select="items:itemcallnumber"/>]</xsl:if> >- <xsl:text> (</xsl:text> >+ <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]"> >+ <span class="CommasWithLinebreaks"> >+ <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<span class="LabelCallNumber">Call number: </span><xsl:value-of select="items:itemcallnumber"/>]</xsl:if> >+ <xsl:text> (</xsl:text> > <xsl:value-of select="count(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch)))"/> >- <xsl:text>)</xsl:text> >- <xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose> >- </xsl:for-each> >+ <xsl:text>)</xsl:text> >+ <xsl:choose> >+ <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when> >+ <xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise> >+ </xsl:choose> >+ </span> >+ </xsl:for-each> > </xsl:when> > <xsl:otherwise> > <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]"> >- <xsl:value-of select="items:homebranch"/> >- <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'"> [<xsl:value-of select="items:itemcallnumber"/>]</xsl:if> >- <xsl:text> (</xsl:text> >+ <span class="CommasWithLinebreaks"> >+ <xsl:value-of select="items:homebranch"/> >+ <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'"> [<span class="LabelCallNumber">Call number: </span><xsl:value-of select="items:itemcallnumber"/>]</xsl:if> >+ <xsl:text> (</xsl:text> > <xsl:value-of select="count(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch)))"/> >- <xsl:text>)</xsl:text> >- <xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose> >- </xsl:for-each> >+ <xsl:text>)</xsl:text> >+ <xsl:choose> >+ <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when> >+ <xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise> >+ </xsl:choose> >+ </span> >+ </xsl:for-each> > </xsl:otherwise> > </xsl:choose> > >-- >1.7.9.5
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 11881
:
25747
|
25921
|
29681
|
29682
|
29873
|
29874
|
29875
|
34004
|
36470
|
36496
|
36510
|
42487
|
42488
|
42489
|
42490
|
42807
|
42808
|
43946
|
43947
|
43948
|
43949
|
43950