Koha/koha-tmpl/opac-tmpl
Jonathan Druart f3e0abddff
Bug 33946: Do not display link to non-existing bibliographic record
If you use biblio-title.inc on a biblio that does not longer exist, "No title" is shown with a link to catalogue/detail?.pl?biblionumber=

We should at least remove the link.

We could even do better and display "No bibliographic record" if the biblio does not longer exist.

Test plan:
Edit mainpage.pl, add
$template->param( your_bib => Koha::Biblios->find(42) );
Edit intranet-main.tt, add
[% INCLUDE 'biblio-title.inc' biblio=your_bib link = 1 %]

Not hit the main page and see what's hapenning.
If you have a bibliographic record with biblionumber=42, its info will
be displayed.
Remove this record and try again => it's replaced with "No bibliographic record"
without a link

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-07-14 08:59:27 -03:00
..
bootstrap Bug 33946: Do not display link to non-existing bibliographic record 2023-07-14 08:59:27 -03:00
lib Bug 32910: (follow-up) Remove unused Font Awesome assets 2023-06-12 11:52:12 -03:00
xslt Bug 34093: Fix paths to jQuery for OAI XSLT 2023-06-23 09:46:38 -03:00