Bugzilla – Attachment 99114 Details for
Bug 23593
Add a shortcut from suggestion details to the bibliographic record in the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23593: Link to the bibliographic record from the suggestion (OPAC)
Bug-23593-Link-to-the-bibliographic-record-from-th.patch (text/plain), 3.01 KB, created by
Jonathan Druart
on 2020-02-17 16:05:16 UTC
(
hide
)
Description:
Bug 23593: Link to the bibliographic record from the suggestion (OPAC)
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-02-17 16:05:16 UTC
Size:
3.01 KB
patch
obsolete
>From f7eeb8867b32589a3129dfae1c71cafccc4fc8db Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 12 Nov 2019 21:43:50 +0100 >Subject: [PATCH] Bug 23593: Link to the bibliographic record from the > suggestion (OPAC) >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >If there is a link between a suggestion and a bibliographic record (ie. >if suggestion.biblionumber is set), it makes sense to have an hyperlink >on the suggestion list at the OPAC. > >Test plan: >- Create 2 suggestions >- Create an order from one of them >- Go to the suggestion list at the OPAC >=> The one with the order has a to the bibliographic record >=> The other one is not linked with a bibliographic record, and so the >title is displayed, without hyperlink > >Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt >index 20fd60cc58..9829aed40d 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt >@@ -319,7 +319,15 @@ > </td> > [% END %] > <td> >- <p><label for="id[% suggestions_loo.suggestionid | html %]"><strong>[% suggestions_loo.title | html %]</strong></label></p> >+ <p> >+ <label for="id[% suggestions_loo.suggestionid | html %]"> >+ [% IF suggestions_loo.biblionumber %] >+ <strong><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% suggestions_loo.biblionumber | uri %]">[% suggestions_loo.title | html %]</a></strong> >+ [% ELSE %] >+ <strong>[% suggestions_loo.title | html %]</strong> >+ [% END %] >+ </label> >+ </p> > <p>[% IF ( suggestions_loo.author ) %][% suggestions_loo.author | html %],[% END %] > [% IF ( suggestions_loo.copyrightdate ) %] - [% suggestions_loo.copyrightdate | html %],[% END %] > [% IF ( suggestions_loo.publishercode ) %] - [% suggestions_loo.publishercode | html %][% 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 23593
:
95351
|
95401
|
99114
|
99136