Bugzilla – Attachment 15713 Details for
Bug 8917
Track clicks to links external to Koha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 8917 : Adding link tracking to the opac detail page, without xslt
SIGNED-OFF-Bug-8917--Adding-link-tracking-to-the-o.patch (text/plain), 3.76 KB, created by
Bernardo Gonzalez Kriegel
on 2013-02-26 21:03:15 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 8917 : Adding link tracking to the opac detail page, without xslt
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2013-02-26 21:03:15 UTC
Size:
3.76 KB
patch
obsolete
>From 229c04c54029924dc4ca7218f47fa45e4740b3df Mon Sep 17 00:00:00 2001 >From: Chris Cormack <chrisc@catalyst.net.nz> >Date: Mon, 15 Oct 2012 11:55:51 +1300 >Subject: [PATCH] [SIGNED-OFF] Bug 8917 : Adding link tracking to the opac > detail page, without xslt > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >--- > koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt | 21 +++++++++++++++++++- > opac/opac-detail.pl | 1 + > 2 files changed, 21 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt >index cd58cb5..2759f77 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt >@@ -716,7 +716,19 @@ YAHOO.util.Event.onContentReady("furtherm", function () { > <br />[% END %] > <!-- here you might do a tmpl_if name="toc" and use greybox or equivalent for table of contents --> > >- [% IF ( OPACURLOpenInNewWindow ) %]<a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]" target="_blank">[% ELSE %]<a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">[% END %] >+ [% IF ( MARCurl.OPACurlOpenInNewWindow ) %] >+ [% IF trackclicks == 'track' || trackclicks == 'anonymous' %] >+ <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]" title="[% MARCurl.MARCURL %]" target="_blank"> >+ [% ELSE %] >+ <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]" target="_blank"> >+ [% END %] >+ [% ELSE %] >+ [% IF trackclicks == 'track' || trackclicks == 'anonymous' %] >+ <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]" title="[% MARCurl.MARCURL %]"> >+ [% ELSE %] >+ <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]"> >+ [% END %] >+ [% END %] > > [% MARCurl.linktext %]</a> > [% IF ( MARCurl.notes ) %]<ul>[% FOREACH note IN MARCurl.notes %]<li>[% note.note %]</li>[% END %]</ul>[% END %]</li> >@@ -1476,6 +1488,13 @@ YAHOO.util.Event.onContentReady("furtherm", function () { > [% IF ( itemdata_ccode ) %]<td class="collection">[% ITEM_RESULT.ccode %]</td>[% END %] > <td class="call_no">[% IF ( ITEM_RESULT.itemcallnumber ) %] [% ITEM_RESULT.itemcallnumber %][% IF ( OPACShelfBrowser ) %] (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)[% END %][% END %]</td> > [% IF ( itemdata_enumchron ) %]<td class="vol_info">[% ITEM_RESULT.enumchron %]</td>[% END %] >+ [% IF ( itemdata_uri ) %]<td class="url"> >+ [% IF trackclicks == 'track' || trackclicks == 'anonymous' %] >+ <a href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | url %]"> Link to resource </a> >+ [% ELSE %] >+ <a href="[% ITEM_RESULT.uri %]">[% ITEM_RESULT.uri %]</a> >+ [% END %] >+ [% END %] > [% IF ( itemdata_uri ) %]<td class="url"><a href="[% ITEM_RESULT.uri %]">[% ITEM_RESULT.uri %]</a></td>[% END %] > [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber %]</td>[% END %] > <td class="status">[% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td> >diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl >index bb9cbd5..5b2da84 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -1006,5 +1006,6 @@ $template->{VARS}->{OPACPopupAuthorsSearch} = C4::Context->preference('OPACPopup > if (C4::Context->preference('OpacHighlightedWords')) { > $template->{VARS}->{query_desc} = $query->param('query_desc'); > } >+$template->{VARS}->{'trackclicks'} = C4::Context->preference('TrackClicks'); > > output_html_with_http_headers $query, $cookie, $template->output; >-- >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 8917
:
12831
|
12832
|
12833
|
12834
|
12998
|
12999
|
13000
|
13001
|
14058
|
14059
|
14060
|
14061
|
15669
|
15670
|
15671
|
15672
|
15711
|
15712
|
15713
|
15714
|
15715
|
15716
|
15783
|
15784
|
15785
|
15786
|
15787
|
15812
|
15815
|
15818
|
15819
|
15820
|
15821
|
15822
|
15823
|
15824
|
15825
|
15850
|
15851
|
15852
|
15853
|
15854
|
15855
|
15856
|
15857
|
15858