From afbf1ea56c673c38ef838ea70ef33673427753b4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 13 Jan 2025 10:45:27 +0100 Subject: [PATCH] Bug 38714: biblio-title.inc [opac] Signed-off-by: Lucas Gass Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer (cherry picked from commit df00647882cc8c3b1c00b9e36339219df760986d) --- .../bootstrap/en/includes/biblio-title.inc | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/biblio-title.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/biblio-title.inc index 679fde6b72..e05d37bf10 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/biblio-title.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/biblio-title.inc @@ -1,8 +1,10 @@ [%- IF link && ! biblio %][% link = 0 %][% END %] [%- IF ( link ) -%] - + [% PROCESS 'show-biblio-title' %] +[%- ELSE -%] + [%- PROCESS 'show-biblio-title' -%] [%- END -%] - +[%- BLOCK 'show-biblio-title' -%] [%- IF !biblio -%] No bibliographic record [%- ELSIF !biblio.title -%] @@ -10,7 +12,11 @@ [%- ELSE -%] [% biblio.title | html %] [%- END -%] -[%- FOREACH subtitle IN biblio.subtitle.split(' \\| ') -%][%- IF Koha.Preference('marcflavour')=='UNIMARC' -%],[%- END -%] +[%- IF ( biblio.medium ) -%] + [%- biblio.medium | html -%] +[%- END -%] +[%- SET subtitles = biblio.subtitle.split(' \\| ') -%] +[%- FOREACH subtitle IN subtitles -%][%- IF Koha.Preference('marcflavour')=='UNIMARC' -%],[%- END -%] [%- subtitle | html -%] [%- END -%] [%- part_numbers = biblio.part_number.split(' \\| ') -%] @@ -18,14 +24,11 @@ [%- i = 0 -%] [%- WHILE ( part_numbers.$i.defined || part_names.$i.defined ) -%] [%- IF ( part_numbers.$i.defined ) -%] - [% part_numbers.$i | html %] + [%- part_numbers.$i | html -%] [%- END -%] [%- IF ( part_names.$i.defined ) -%] - [% part_names.$i | html %] + [%- part_names.$i | html -%] [%- END -%] [%- i = i + 1 -%] [%- END -%] - -[%- IF ( link ) -%] - [%- END -%]