From: Chris Cormack <[email protected]>

To test, you should get similar but better results when clicking a
volume or set title from a record that is part of a set, (or a single
volume)

Signed-off-by: Katrin Fischer <[email protected]>
Note: if you are using $w for record linking you have to turn system
preference UseControlnumber off to test this patch.
---
 .../prog/en/xslt/MARC21slim2intranetDetail.xsl     |    8 ++++----
 .../prog/en/xslt/MARC21slim2OPACDetail.xsl         |    8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl 
b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
index 4af47bd..e71685d 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
@@ -242,7 +242,7 @@
                 <xsl:attribute 
name="href">/cgi-bin/koha/catalogue/search.pl?q=rcn:<xsl:value-of 
select="marc:controlfield[@tag=001]"/></xsl:attribute>
             </xsl:when>
             <xsl:otherwise>
-                <xsl:attribute 
name="href">/cgi-bin/koha/catalogue/search.pl?q=Title:<xsl:value-of 
select="translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', 
'')"/></xsl:attribute>
+                <xsl:attribute 
name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of 
select="translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', 
'')"/></xsl:attribute>
             </xsl:otherwise>
             </xsl:choose>
             <xsl:text>Show volumes</xsl:text>
@@ -260,7 +260,7 @@
                 <xsl:attribute 
name="href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:<xsl:call-template
 name="extractControlNumber"><xsl:with-param name="subfieldW" 
select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
             </xsl:when>
             <xsl:otherwise>
-                <xsl:attribute 
name="href">/cgi-bin/koha/catalogue/search.pl?q=Title:<xsl:value-of 
select="translate(//marc:datafield[@tag=245]/marc:subfield[@code='a'], '.', 
'')"/></xsl:attribute>
+                <xsl:attribute 
name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of 
select="translate(//marc:datafield[@tag=245]/marc:subfield[@code='a'], '.', 
'')"/></xsl:attribute>
             </xsl:otherwise>
             </xsl:choose>
             <xsl:value-of 
select="translate(//marc:datafield[@tag=245]/marc:subfield[@code='a'], '.', 
'')" />
@@ -565,7 +565,7 @@
                     <xsl:if test="marc:subfield[@code='g']"><xsl:text> 
</xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
                 </xsl:when>
                 <xsl:otherwise>
-                    <a><xsl:attribute 
name="href">/cgi-bin/koha/catalogue/search.pl?q=Title:<xsl:value-of 
select="translate($f773, '()', '')"/></xsl:attribute>
+                    <a><xsl:attribute 
name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of 
select="translate($f773, '()', '')"/></xsl:attribute>
                         <xsl:value-of select="$f773"/>
                     </a>
                     <xsl:if test="marc:subfield[@code='g']"><xsl:text> 
</xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
@@ -597,7 +597,7 @@
                 <xsl:attribute 
name="href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:<xsl:call-template
 name="extractControlNumber"><xsl:with-param name="subfieldW" 
select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
             </xsl:when>
             <xsl:otherwise>
-                <xsl:attribute 
name="href">/cgi-bin/koha/catalogue/search.pl?q=Title:<xsl:value-of 
select="translate(marc:subfield[@code='t'], '.', '')"/></xsl:attribute>
+                <xsl:attribute 
name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of 
select="translate(marc:subfield[@code='t'], '.', '')"/></xsl:attribute>
             </xsl:otherwise>
             </xsl:choose>
             <xsl:call-template name="subfieldSelect">
diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl 
b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl
index d4f763f..3e57fec 100755
--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl
+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl
@@ -299,7 +299,7 @@
                 <xsl:attribute 
name="href">/cgi-bin/koha/opac-search.pl?q=rcn:<xsl:value-of 
select="marc:controlfield[@tag=001]"/></xsl:attribute>
             </xsl:when>
             <xsl:otherwise>
-                <xsl:attribute 
name="href">/cgi-bin/koha/opac-search.pl?q=Title:<xsl:value-of 
select="translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', 
'')"/></xsl:attribute>
+                <xsl:attribute 
name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of 
select="translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', 
'')"/></xsl:attribute>
             </xsl:otherwise>
             </xsl:choose>
             <xsl:text>Show volumes</xsl:text>
@@ -317,7 +317,7 @@
                 <xsl:attribute 
name="href">/cgi-bin/koha/opac-search.pl?q=Control-number:<xsl:call-template 
name="extractControlNumber"><xsl:with-param name="subfieldW" 
select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
             </xsl:when>
             <xsl:otherwise>
-                <xsl:attribute 
name="href">/cgi-bin/koha/opac-search.pl?q=Title:<xsl:value-of 
select="translate(//marc:datafield[@tag=245]/marc:subfield[@code='a'], '.', 
'')"/></xsl:attribute>
+                <xsl:attribute 
name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of 
select="translate(//marc:datafield[@tag=245]/marc:subfield[@code='a'], '.', 
'')"/></xsl:attribute>
             </xsl:otherwise>
             </xsl:choose>
             <xsl:value-of 
select="translate(//marc:datafield[@tag=245]/marc:subfield[@code='a'], '.', 
'')" />
@@ -679,7 +679,7 @@
                     <xsl:if test="marc:subfield[@code='g']"><xsl:text> 
</xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
                 </xsl:when>
                 <xsl:otherwise>
-                    <a><xsl:attribute 
name="href">/cgi-bin/koha/opac-search.pl?q=Title:<xsl:value-of 
select="translate($f773, '()', '')"/></xsl:attribute>
+                    <a><xsl:attribute 
name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of 
select="translate($f773, '()', '')"/></xsl:attribute>
                         <xsl:value-of select="$f773"/>
                     </a>
                     <xsl:if test="marc:subfield[@code='g']"><xsl:text> 
</xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
@@ -738,7 +738,7 @@
                 <xsl:attribute 
name="href">/cgi-bin/koha/opac-search.pl?q=Control-number:<xsl:call-template 
name="extractControlNumber"><xsl:with-param name="subfieldW" 
select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
             </xsl:when>
             <xsl:otherwise>
-                <xsl:attribute 
name="href">/cgi-bin/koha/opac-search.pl?q=Title:<xsl:value-of 
select="translate(marc:subfield[@code='t'], '.', '')"/></xsl:attribute>
+                <xsl:attribute 
name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of 
select="translate(marc:subfield[@code='t'], '.', '')"/></xsl:attribute>
             </xsl:otherwise>
             </xsl:choose>
             <xsl:call-template name="subfieldSelect">
-- 
1.7.4.1

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to