From c4cff589ba80984a8029c4b4675afb55d09030a9 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 Signed-off-by: Jonathan Druart --- 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.39.5