From b770b691e67dbb468e0025a33ca3fe77185f297a Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Fri, 7 Jul 2023 16:10:30 +0000 Subject: [PATCH] Bug 34230: Add part_name and part_number to subscription search results This adds biblio.part_name and biblio.part_number to the SELECT of SearchSubscriptions in order to be able to display the information in the results list. It does not affect search. To test: * Add one or more subscriptions * Make sure at least one is linked to a title with 245$abnp * Verify that the result list only shows 245$ab * Apply patch * Verify full title information is now shown Signed-off-by: Sam Lau Signed-off-by: Michaela Sieber Signed-off-by: Chris Cormack Signed-off-by: Tomas Cohen Arazi --- C4/Serials.pm | 2 ++ .../intranet-tmpl/prog/en/modules/serials/serials-search.tt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/C4/Serials.pm b/C4/Serials.pm index b01172dc10..1eae56bc8d 100644 --- a/C4/Serials.pm +++ b/C4/Serials.pm @@ -539,6 +539,8 @@ sub SearchSubscriptions { biblio.notes AS biblionotes, biblio.title, biblio.subtitle, + biblio.part_number, + biblio.part_name, biblio.author, biblio.biblionumber, aqbooksellers.name AS vendorname, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt index c1a95eab94..39f712b930 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt @@ -98,7 +98,7 @@ [% END %] - [% subscription.title | html %] [% subscription.subtitle | html %] + [% subscription.title | html %] [% subscription.subtitle | html %] [% subscription.part_number | html %] [%subscription.part_name | html %] [% IF ( subscription.publicnotes ) %][% subscription.publicnotes | html %][% END %] -- 2.39.5