From: Petro Vashchuk Date: Mon, 29 Jun 2020 19:04:56 +0000 (+0300) Subject: Bug 25799: Add edition information to "Holds queue" report X-Git-Url: http://git.equinoxoli.org/?p=koha.git;a=commitdiff_plain;h=c4cff589ba80984a8029c4b4675afb55d09030a9 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 --- diff --git a/C4/HoldsQueue.pm b/C4/HoldsQueue.pm index 339156a..5938d35 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 d467a1b..a261345 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 %]