[Koha] how to not show Look for articles in this serial in Analytics
schnydszch
eugenegf at yahoo.com
Mon Jun 2 05:00:27 NZST 2014
Hi! I already got this one.
<xsl:if test="$leader7='s' and marc:datafield[@tag=942]/marc:subfield[@code='b']='1'">
<span class="results_summary analytics"><span class="label">Analytics: </span>
<a>
<xsl:choose>
<xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]">
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=rcn:<xsl:value-of select="marc:controlfield[@tag=001]"/>+and+(bib-level:a+or+bib-level:b)</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Host-item:<xsl:value-of select="translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', '')"/></xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:text>Show serial articles</xsl:text>
</a>
</span>
</xsl:if>
Could be the lateness of the night.. CHeers everyone!
On Sunday, June 1, 2014 9:11 AM, eugene jose espinoza <eugenegf at yahoo.com> wrote:
Hi! I added field 942 NoAnalytics. I'm at lost where to put the codes, I'm trying to comprehend other fields in the original/default XSLT.
<xsl:if test="$leader7='s'">
<span class="results_summary analytics"><span class="label">Analytics: </span>
<a>
<xsl:choose>
<xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]">
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=rcn:<xsl:value-of select="marc:controlfield[@tag=001]"/>+and+(bib-level:a+or+bib-level:b)</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Host-item:<xsl:value-of select="translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', '')"/></xsl:attribute>
</xsl:otherwise>
<xsl:text>Look for articles in this serial</xsl:text>
</a>
<xsl:when test="marc:datafield[@tag=942]/marc:subfield[@code='b'] = '0'">
<xsl:text>No articles</xsl:text>
</xsl:when>
</xsl:choose>
Thanks in advance and cheers!
On Sunday, June 1, 2014 8:42 AM, "Fischer, Katrin [via Koha]" <ml-node+s1045719n5799690h19 at n5.nabble.com> wrote:
Hi,
you can use CSS to hide it totally - something like .analytics { display:none; } in OpacUserCSS should do the trick. As there is no indication on the record if an analytic record for it exists, there is no easy way to do what you want.
Katrin
-----Ursprüngliche Nachricht-----
Von: Koha im Auftrag von schnydszch
Gesendet: So 01.06.2014 12:42
An: [hidden email]
Betreff: [Koha] how to not show Look for articles in this serial in Analytics
Hi Koha community! I've been trying to figure this one out. I can't seem to
not show or hide Analytics: Look for articles in this serial through jquery
or xslt. I want to not show it if it it does not have any analytics. Can
somebody lead me on how do to it? We're using Koha 3.14 by the way.
By the way, here's the xslt (actually the default):
<xsl:if test="$leader7='s'">
Analytics:
<xsl:choose>
<xsl:when test="$UseControlNumber = '1' and
marc:controlfield[@tag=001]">
<xsl:attribute
name="href">/cgi-bin/koha/opac-search.pl?q=Host-item:<xsl:value-of
select="translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/',
'')"/></xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute
name="href">/cgi-bin/koha/opac-search.pl?q=Host-item:<xsl:value-of
select="translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/',
'')"/></xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:text>Look for articles in this serial</xsl:text>
</xsl:if>
Thanks in advance and cheers!
--
View this message in context: http://koha.1045719.n5.nabble.com/how-to-not-show-Look-for-articles-in-this-serial-in-Analytics-tp5799679.html
Sent from the Koha-general mailing list archive at Nabble.com.
_______________________________________________
Koha mailing list http://koha-community.org
[hidden email]
http://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________
Koha mailing list http://koha-community.org
[hidden email]
http://lists.katipo.co.nz/mailman/listinfo/koha
________________________________
If you reply to this email, your message will be added to the discussion below:http://koha.1045719.n5.nabble.com/how-to-not-show-Look-for-articles-in-this-serial-in-Analytics-tp5799679p5799690.html
To unsubscribe from how to not show Look for articles in this serial in Analytics, click here.
NAML
--
View this message in context: http://koha.1045719.n5.nabble.com/how-to-not-show-Look-for-articles-in-this-serial-in-Analytics-tp5799679p5799694.html
Sent from the Koha-general mailing list archive at Nabble.com.
More information about the Koha
mailing list