Bugzilla – Attachment 116789 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.73 KB, created by
Marcel de Rooy
on 2021-02-12 08:33:25 UTC
(
hide
)
Description:
Bug 20502: Split URI on course detail view - OPAC
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2021-02-12 08:33:25 UTC
Size:
2.73 KB
patch
obsolete
>From 30d674b0a7ab9e5258d7747bb3f56c11929eb7b2 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 >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../opac-tmpl/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 d90c1fa2e8..d3d76c3ea0 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 >@@ -93,10 +93,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.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 20502
:
108712
|
108737
|
108775
|
116636
|
116637
|
116788
| 116789 |
116790
|
116791