Bugzilla – Attachment 98828 Details for
Bug 15352
Use URLLinkText instead of URL for item links
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15352: (alternative patch) Use URLLinkText instead of URL for item links
Bug-15352-alternative-patch-Use-URLLinkText-instea.patch (text/plain), 6.51 KB, created by
Owen Leonard
on 2020-02-13 13:37:15 UTC
(
hide
)
Description:
Bug 15352: (alternative patch) Use URLLinkText instead of URL for item links
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2020-02-13 13:37:15 UTC
Size:
6.51 KB
patch
obsolete
>From 8798291cc62160a2bb7d1028f727dd22a103a768 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Thu, 13 Feb 2020 00:37:43 +0000 >Subject: [PATCH] Bug 15352: (alternative patch) Use URLLinkText instead of URL > for item links > >Use the value in URLLinkText in 952$u, or if not set, use 'Link to >resource'. > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../prog/en/modules/catalogue/detail.tt | 6 ++++- > .../opac-tmpl/bootstrap/en/modules/opac-detail.tt | 31 ++++++++++++++++------ > 2 files changed, 28 insertions(+), 9 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >index 05a6cb50e44..90a8df5dc7e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -404,7 +404,11 @@ Note that permanent location is a code, and location may be an authval. > <td class="dateaccessioned"><span title="[% item.dateaccessioned | html %]">[% item.dateaccessioned | $KohaDates %]</span></td> > <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?type=[% item.type | uri %]&itemnumber=[% item.itemnumber | uri %]&biblionumber=[% item.biblionumber | uri %]&bi=[% item.biblioitemnumber | uri %]#item[% item.itemnumber | uri %]">[% item.barcode | html %]</a></td> > [% IF ( itemdata_uri ) %] >- <td class="uri"><a href="[% item.uri | url %]">[% item.uri | html %]</a></td> >+ [% IF Koha.Preference('URLLinkText') %] >+ <td class="uri"><a href="[% item.uri | url %]">[% Koha.Preference('URLLinkText') %]</a></td> >+ [% ELSE %] >+ <td class="uri"><a href="[% item.uri | url %]">Link to resource</a></td> >+ [% END %] > [% END %] > [% IF ( itemdata_copynumber ) %] > <td class="copynumber">[% item.copynumber | html %]</td> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >index 9ab7a1017e9..4d009173738 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -1345,18 +1345,33 @@ > [% IF ( itemdata_uri ) %] > <td class="url"> > [% IF ITEM_RESULT.uri %] >- [% IF trackclicks == 'track' || trackclicks == 'anonymous' %] >- [% IF Koha.Preference("OPACURLOpenInNewWindow") %] >- <a target="_blank" rel="noreferrer" href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | uri %]&biblionumber=[% biblio.biblionumber | html %]&itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url"> Link to resource </a> >+ [% IF Koha.Preference('URLLinkText') %] >+ [% IF trackclicks == 'track' || trackclicks == 'anonymous' %] >+ [% IF Koha.Preference("OPACURLOpenInNewWindow") %] >+ <a target="_blank" rel="noreferrer" href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | uri %]&biblionumber=[% biblio.biblionumber | html %]&itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url">[% Koha.Preference('URLLinkText') %]</a> >+ [% ELSE %] >+ <a href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | uri %]&biblionumber=[% biblio.biblionumber | uri %]&itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url">[% Koha.Preference('URLLinkText') %]</a> >+ [% END %] > [% ELSE %] >- <a href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | uri %]&biblionumber=[% biblio.biblionumber | uri %]&itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url"> Link to resource </a> >+ [% IF Koha.Preference("OPACURLOpenInNewWindow") %] >+ <a target="_blank" rel="noreferrer" href="[% ITEM_RESULT.uri | url %]" property="url">[% Koha.Preference('URLLinkText') %]</a> >+ [% ELSE %] >+ <a href="[% ITEM_RESULT.uri | url %]" property="url">[% Koha.Preference('URLLinkText') %]</a> >+ [% END %] > [% END %] >- > [% ELSE %] >- [% IF Koha.Preference("OPACURLOpenInNewWindow") %] >- <a target="_blank" rel="noreferrer" href="[% ITEM_RESULT.uri | url %]" property="url">[% ITEM_RESULT.uri | html %]</a> >+ [% IF trackclicks == 'track' || trackclicks == 'anonymous' %] >+ [% IF Koha.Preference("OPACURLOpenInNewWindow") %] >+ <a target="_blank" rel="noreferrer" href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | uri %]&biblionumber=[% biblio.biblionumber | html %]&itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url">Link to resource</a> >+ [% ELSE %] >+ <a href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | uri %]&biblionumber=[% biblio.biblionumber | uri %]&itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url">Link to resource</a> >+ [% END %] > [% ELSE %] >- <a href="[% ITEM_RESULT.uri | url %]" property="url">[% ITEM_RESULT.uri | html %]</a> >+ [% IF Koha.Preference("OPACURLOpenInNewWindow") %] >+ <a target="_blank" rel="noreferrer" href="[% ITEM_RESULT.uri | url %]" property="url">Link to resource</a> >+ [% ELSE %] >+ <a href="[% ITEM_RESULT.uri | url %]" property="url">Link to resource</a> >+ [% END %] > [% END %] > [% END %] > [% END %] >-- >2.11.0
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 15352
:
45578
|
62347
|
62473
|
65335
|
98784
|
98828
|
98832
|
98901
|
98905
|
98927