Browse Source

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

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
20.05.x
Jonathan Druart 5 years ago
committed by Martin Renvoize
parent
commit
ce14ab2bf8
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 6
      koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt

6
koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt

@ -65,7 +65,11 @@
[% IF ( title ) %]
<li>
<span class="label">Title:</span>
[% title | html %]
[% IF suggestion.biblionumber %]
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% suggestion.biblionumber | uri %]">[% suggestion.title | html %]</a>
[% ELSE %]
[% title | html %]
[% END %]
</li>
[% END %]
[% IF ( author ) %]

Loading…
Cancel
Save