Bugzilla – Attachment 108712 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
Bug-20502-Split-URI-on-course-detail-view.patch (text/plain), 2.68 KB, created by
Jonathan Druart
on 2020-08-20 08:00:37 UTC
(
hide
)
Description:
Bug 20502: Split URI on course detail view
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-08-20 08:00:37 UTC
Size:
2.68 KB
patch
obsolete
>From 16c7a02843c916da2c212b508d3ffaa6558f66ec Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 20 Aug 2020 09:57:10 +0200 >Subject: [PATCH] Bug 20502: Split URI on course detail view > >If there are more that one URIs for biblio or item, we should split the >value. >This patch reuses the same code as bug 24697. > >Test plan: >Add one item to a course >Add several URI for this item and for its biblio >Show the course detail view >The different URI of the item must be displayed >Remove all URI for the item >Show the course detail view >The different URI of the biblio must be displayed >--- > .../en/modules/course_reserves/course-details.tt | 14 +++++++++++--- > 1 file changed, 11 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt >index 317a304a32..8028cd6e14 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt >@@ -215,11 +215,19 @@ > [% END %] > </td> > >- <td> >+ <td class="uri"> > [% IF (cr.item.uri) %] >- <a href="[% cr.item.uri | url %]">Item URI</a> >+ [% 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> > >-- >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