From b55ae662c04247d6ecbd40455964834d2617d62c Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 1 Dec 2022 21:53:10 +0000 Subject: [PATCH] Bug 14911: Add 245 fields to itemsearch title column To test: 1. Have some records that have these 245 fields: -Title 245$a -Subtitle 245$b -Medium 245$h -Part number 245$n -Part name 245$p Note: IN KTD I have to run batchRebuildBiblioTables.pl -c 2. Apply patch and do an item search that will turn up items with the 245 fields lists above 3. Notice that those subfields are now included in the title column. I added them in this manner because it seemed right to be: -Subfield, included in the title link -Medium -Part number -Part name --- .../prog/en/includes/catalogue/itemsearch_item.json.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.json.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.json.inc index 5d30c08a9b2..daaddc4c2c4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.json.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.json.inc @@ -11,7 +11,7 @@ [%~ END %]", "[% FILTER escape_quotes ~%] - [% biblio.title | html %][% IF ( Koha.Preference( 'marcflavour' ) == 'UNIMARC' && biblio.author ) %] by[% END %] [% biblio.author | html %] + [% biblio.title | html %][% IF biblio.subtitle %][% biblio.subtitle | html %][% END %][% IF biblio.medium %]
[% biblio.medium | html %]
[% END %][% IF biblio.part_number %]
[% biblio.part_number | html %]
[% END %][% IF biblio.part_name %]
[% biblio.part_name | html %]
[% END %]
[% IF ( Koha.Preference( 'marcflavour' ) == 'UNIMARC' && biblio.author ) %] by[% END %] [% biblio.author | html %]
[%~ END %]", "[% (biblioitem.publicationyear || biblio.copyrightdate) | html %]", "[% biblioitem.publishercode | html | $To %]", -- 2.30.2