Bugzilla – Attachment 108775 Details for
Bug 20502
Record URL broken, when there is more than one 856 on the record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20502: Split URI on course detail view - OPAC
Bug-20502-Split-URI-on-course-detail-view---OPAC.patch (text/plain), 2.63 KB, created by
Jonathan Druart
on 2020-08-21 07:01:13 UTC
(
hide
)
Description:
Bug 20502: Split URI on course detail view - OPAC
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-08-21 07:01:13 UTC
Size:
2.63 KB
patch
obsolete
>From edd452333d2942328f6f42ecd1c2a5013993ca89 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 21 Aug 2020 09:00:48 +0200 >Subject: [PATCH] Bug 20502: Split URI on course detail view - OPAC > >--- > .../bootstrap/en/modules/opac-course-details.tt | 15 ++++++++++++--- > 1 file changed, 12 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt >index 9813cfbea1..1a7f6dd723 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt >@@ -84,10 +84,19 @@ > [% cr.item.itemnotes | $raw %] > [% END %] > </td> >- <td>[% IF (cr.item.uri) %] >- <a href="[% cr.item.uri | url %]">Item URI</a> >+ <td class="uri"> >+ [% IF (cr.item.uri) %] >+ [% IF cr.item.uri.split(' \| ').size > 1 %] >+ [% FOREACH uri IN cr.item.uri.split(' \| ') %]<a href="[% uri | url %]">[% uri | html %]</a><br>[% END %] >+ [% ELSE %] >+ <a href="[% cr.item.uri | url %]">[% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %]</a> >+ [% END %] > [% ELSIF (cr.biblioitem.url) %] >- <a href="[% cr.biblioitem.url | url %]">Record URL</a> >+ [% IF cr.biblioitem.url.split(' \| ').size > 1 %] >+ [% FOREACH uri IN cr.biblioitem.url.split(' \| ') %]<a href="[% uri | url %]">[% uri | html %]</a><br>[% END %] >+ [% ELSE %] >+ <a href="[% cr.biblioitem.uri | url %]">[% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %]</a> >+ [% END %] > [% END %] > </td> > </tr> >-- >2.20.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 20502
:
108712
|
108737
|
108775
|
116636
|
116637
|
116788
|
116789
|
116790
|
116791