From eb472943caac177ddb8e04e264d5cf16761d403c Mon Sep 17 00:00:00 2001 From: Jonathan Druart 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 --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt | 8 +++++++- 1 file changed, 7 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 2da7660..5ec72f9 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt @@ -298,7 +298,13 @@ [% END %] -

[% suggestions_loo.title | html %]

+

+ [% IF suggestions_loo.biblionumber %] + [% suggestions_loo.title | html %] + [% ELSE %] + [% suggestions_loo.title | html %] + [% END %] +

[% 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.1.4