Bugzilla – Attachment 99467 Details for
Bug 24697
Split items.uri on staff detail view
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24697: Split items.uri on staff detail view
Bug-24697-Split-itemsuri-on-staff-detail-view.patch (text/plain), 2.75 KB, created by
Bernardo Gonzalez Kriegel
on 2020-02-23 15:39:18 UTC
(
hide
)
Description:
Bug 24697: Split items.uri on staff detail view
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2020-02-23 15:39:18 UTC
Size:
2.75 KB
patch
obsolete
>From 87717a672627ff5688294e654da2dfbe90a57a3b Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 20 Feb 2020 12:10:57 +0000 >Subject: [PATCH] Bug 24697: Split items.uri on staff detail view > >If there are more URIs, we split on vertical bar and show the real URL >instead of duplicated text. Otherwise display depends on the pref >URLLinkText. > >Test plan: >Create item with uri = A | B | C >Create another item with uri = D >Check the results on staff detail view (items table). > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Works as described, no errors. >--- > .../prog/en/modules/catalogue/detail.tt | 14 +++++++++----- > 1 file changed, 9 insertions(+), 5 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 20bb32bb37..e2c7f5943b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -404,12 +404,16 @@ 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 ) %] >- [% IF Koha.Preference('URLLinkText') %] >- <td class="uri"><a href="[% item.uri | url %]">[% Koha.Preference('URLLinkText') | html %]</a></td> >- [% ELSIF item.uri %] >- <td class="uri"><a href="[% item.uri | url %]">Link to resource</a></td> >+ [% IF item.uri.split(' \| ').size > 1 %] >+ <td class="uri"> >+ [% FOREACH uri IN item.uri.split(' \| ') %]<a href="[% uri | url %]">[% uri | html %]</a><br>[% END %] >+ </td> > [% ELSE %] >- <td></td> >+ <td class="uri"> >+ [% IF item.uri %] >+ <a href="[% item.uri | url %]">[% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %]</a> >+ [% END %] >+ </td> > [% END %] > [% END %] > [% IF ( itemdata_copynumber ) %] >-- >2.17.1
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 24697
:
99308
|
99354
|
99467
|
102932