From c4fbf8b0d725c5ac6b89af5a53182d1d45fdd0af Mon Sep 17 00:00:00 2001 From: Petro Vashchuk Date: Mon, 29 Jun 2020 22:04:56 +0300 Subject: [PATCH] Bug 25799: Add edition information to "Holds queue" report Added a feature that displays edition information of the book together with title in "Holds queue" report. Edition information is fetched from "biblioitem" table as "editionstatement" and transferred to template. 1. Place a hold on a book with edition information. 2. Run build_holds_queue.pl cron job. 3. Go to /cgi-bin/koha/circ/view_holdsqueue.pl and check the "title" table of that book that you placed hold on. 4. Observe that there's no information about edition of that book. 5. Apply patch. 6. Repeat step 3. 7. Observe that cinformation about edition of that book appeared in the title table after book's title and author. Mentored-by: Andrew Nugged Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer --- C4/HoldsQueue.pm | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/HoldsQueue.pm b/C4/HoldsQueue.pm index 339156a5eb..5938d35d2a 100755 --- a/C4/HoldsQueue.pm +++ b/C4/HoldsQueue.pm @@ -137,7 +137,7 @@ sub GetHoldsQueueItems { biblio.copyrightdate, biblio.subtitle, biblio.medium, biblio.part_number, biblio.part_name, biblioitems.publicationyear, biblioitems.pages, biblioitems.size, - biblioitems.isbn, items.copynumber + biblioitems.isbn, biblioitems.editionstatement, items.copynumber FROM tmp_holdsqueue JOIN biblio USING (biblionumber) LEFT JOIN biblioitems USING (biblionumber) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt index d467a1bf00..a2613456c9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt @@ -131,6 +131,7 @@

[% itemsloo.biblionumber | html %]
[% itemsloo.author | html %]
+ [% IF ( itemsloo.editionstatement ) %]
[% itemsloo.editionstatement | html %]
[% END %]
[% IF ( itemsloo.publishercode ) %][% itemsloo.publishercode | html %][% END %] -- 2.11.0