From 61974c4863b39b7403b8d2b3dfaae09eb8dd148b Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 24 Mar 2023 09:03:04 +0000 Subject: [PATCH] Bug 33160: (QA follow-up) Adjust condition on biblio object Content-Type: text/plain; charset=utf-8 If it is undefined, there is no biblionumber. If it is, we can safely assume that it has a biblionumber. Which is the case for most biblio records, lol. Signed-off-by: Marcel de Rooy --- koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt | 4 ++-- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt index 43365f4c44..761e441c34 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt @@ -223,7 +223,7 @@ In - [% IF BIBLIO_RESULT.HOSTITEMENTRIES.biblionumber %] + [% IF BIBLIO_RESULT.HOSTITEMENTRIES %]

[% INCLUDE 'biblio-title.inc' link = 1 biblio=BIBLIO_RESULT.HOSTITEMENTRIES %] [% BIBLIO_RESULT.RELATEDPARTS | html %]

[% ELSE %]

[% BIBLIO_RESULT.HOSTINFO | html %]

@@ -300,7 +300,7 @@ [% END %] [% IF BIBLIO_RESULT.HOSTITEMENTRIES || BIBLIO_RESULT.HOSTINFO %]

In: - [% IF BIBLIO_RESULT.HOSTITEMENTRIES.biblionumber %] + [% IF BIBLIO_RESULT.HOSTITEMENTRIES %] [% INCLUDE 'biblio-title.inc' link = 1 biblio=BIBLIO_RESULT.HOSTITEMENTRIES %] [% BIBLIO_RESULT.RELATEDPARTS | html %] [% ELSE %] [% BIBLIO_RESULT.HOSTINFO | html %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt index 5f8c9a1eee..87ceda18c7 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt @@ -241,7 +241,7 @@ In

- [% IF BIBLIO_RESULT.HOSTITEMENTRIES.biblionumber %] + [% IF BIBLIO_RESULT.HOSTITEMENTRIES %] [% INCLUDE 'biblio-title.inc' biblio=BIBLIO_RESULT.HOSTITEMENTRIES %] [% BIBLIO_RESULT.RELATEDPARTS | html %] [% ELSE %] [% BIBLIO_RESULT.HOSTINFO| html %] @@ -312,7 +312,7 @@ [% IF BIBLIO_RESULT.HOSTITEMENTRIES || BIBLIO_RESULT.HOSTINFO %]

In: - [% IF BIBLIO_RESULT.HOSTITEMENTRIES.biblionumber %] + [% IF BIBLIO_RESULT.HOSTITEMENTRIES %] [% INCLUDE 'biblio-title.inc' biblio=BIBLIO_RESULT.HOSTITEMENTRIES %] [% BIBLIO_RESULT.RELATEDPARTS | html %] [% ELSE %] [% BIBLIO_RESULT.HOSTINFO | html %] -- 2.30.2