From 062248fd61ba7f4498617ac1fc1bc0185c1d6a97 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 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 --- koha-tmpl/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 ca225e841b..921556c758 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -62,7 +62,11 @@ [% IF ( title ) %]
  • Title: - [% title | html %] + [% IF suggestion.biblionumber %] + [% suggestion.title | html %] + [% ELSE %] + [% title | html %] + [% END %]
  • [% END %] [% IF ( author ) %] -- 2.11.0