From ce14ab2bf8bdf47f9c2cc13a6b43d0bfb7a07c4b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 12 Nov 2019 21:24:24 +0100 Subject: [PATCH] Bug 23592: Link to the bibliographic record from the suggestion MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 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 detail page. Test plan: - Create 2 suggestions - Create an order from one of them - Go to the detail page of the suggestion => 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 Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- .../intranet-tmpl/prog/en/modules/suggestion/suggestion.tt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt index 0d7d23a84a..adc03227a5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -65,7 +65,11 @@ [% IF ( title ) %]
  • Title: - [% title | html %] + [% IF suggestion.biblionumber %] + [% suggestion.title | html %] + [% ELSE %] + [% title | html %] + [% END %]
  • [% END %] [% IF ( author ) %] -- 2.39.2