Bugzilla – Attachment 17289 Details for
Bug 6886
Single branch mode should disable showing the branch name in front of all callnumbers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6886 - Single branch mode should disable showing the branch name in front of all callnumbers
Bug-6886---Single-branch-mode-should-disable-showi.patch (text/plain), 6.43 KB, created by
Kyle M Hall (khall)
on 2013-04-08 13:14:27 UTC
(
hide
)
Description:
Bug 6886 - Single branch mode should disable showing the branch name in front of all callnumbers
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2013-04-08 13:14:27 UTC
Size:
6.43 KB
patch
obsolete
>From 4d3f1bf0b2dbbea8dfc490c6fe5855b1a2ae21d5 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 4 Jan 2013 13:40:33 -0500 >Subject: [PATCH] Bug 6886 - Single branch mode should disable showing the branch name in front of all callnumbers > >Followup - Copies available for reference > >Test plan: Enable singleBranchMode and OPACXSLTResultsDisplay. Perform >a search in the OPAC which returns results containing not-for-loan >items. Before the patch these items will show their library in search >results loan items. After the patch there will be not be a library >listed, matching other items in results. > >Signed-off-by jmbroust <jean-manuel.broust@univ-lyon2.fr> >--- > .../prog/en/xslt/MARC21slim2OPACResults.xsl | 22 +++++++++++++------ > .../prog/en/xslt/NORMARCslim2OPACResults.xsl | 6 ++++- > .../prog/en/xslt/UNIMARCslim2OPACResults.xsl | 6 ++++- > 3 files changed, 25 insertions(+), 9 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >index c1364eb..641bece 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >@@ -1062,7 +1062,11 @@ > </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:choose> >+ <xsl:when test="$singleBranchMode=0"> >+ <xsl:value-of select="items:homebranch"/> >+ </xsl:when> >+ </xsl:choose> > <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'"> [<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)))"/> >@@ -1082,12 +1086,16 @@ > <b><xsl:text>Copies available for reference: </xsl:text></b> > <xsl:variable name="reference_items" select="key('item-by-status', 'reference')"/> > <xsl:for-each select="$reference_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"> [<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:choose> >+ <xsl:when test="$singleBranchMode=0"> >+ <xsl:value-of select="items:homebranch"/> >+ </xsl:when> >+ </xsl:choose> >+ <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<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> > </span> > </xsl:when> >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl >index 7206c7f..cb9e383 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl >@@ -814,7 +814,11 @@ > <xsl:variable name="reference_items" > select="key('item-by-status', 'reference')"/> > <xsl:for-each select="$reference_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]"> >- <xsl:value-of select="items:homebranch"/> >+ <xsl:choose> >+ <xsl:when test="$singleBranchMode=0"> >+ <xsl:value-of select="items:homebranch"/> >+ </xsl:when> >+ </xsl:choose> > > <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<xsl:value-of select="items:itemcallnumber"/>]</xsl:if> > <xsl:text> (</xsl:text> >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl >index a086d31..bb15ff2 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl >@@ -171,7 +171,11 @@ > <xsl:variable name="reference_items" > select="key('item-by-status', 'reference')"/> > <xsl:for-each select="$reference_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]"> >- <xsl:value-of select="items:homebranch"/> >+ <xsl:choose> >+ <xsl:when test="$singleBranchMode=0"> >+ <xsl:value-of select="items:homebranch"/> >+ </xsl:when> >+ </xsl:choose> > <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber">[<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)))"/> >-- >1.7.2.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 6886
:
11367
|
11369
|
11370
|
11501
|
11502
|
11504
|
14434
|
15065
|
16028
|
16385
|
16391
|
17289
|
23304
|
23745
|
23746