From 91f50ee70fc645328d0c6dfda86c8886af49cd02 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 8 Jul 2022 13:03:01 +0000 Subject: [PATCH] Bug 30911: Datatables error on course-details.pl after adding a bib-level course reserve This patch removes the colspan from biblio-level course reserves rows in favor of adding a style to the message's container allowing it to overflow across table cells. To test, apply the patch and go to course reserves. 1. If necessary, add a new course. 2. View the details of the course and add a reserve using the biblionumber option to add the reserve at the bibliographic level. 3. Add a notes if you want, then click "Save." 4. Return to the course detail view. 5. In the table of reserves your biblio-level reserve should have a message starting in the "Barcode" column and overflowing across other item information columns, "Item information is not available for record-level course reserve." 6. Try adding multiple item-level and biblio-level reserves to the same course to confirm that the information displays well in those cases. Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi --- .../modules/course_reserves/course-details.tt | 48 ++++++++++++------- 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt index 0b706dc761..b6332e5902 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt @@ -9,15 +9,26 @@ [% INCLUDE 'doc-head-open.inc' %] Course details for [% course.course_name | html %] › Course reserves › Koha [% INCLUDE 'doc-head-close.inc' %] - - +[% FILTER collapse %] + +[% END %] @@ -121,6 +132,9 @@ [% IF cr.item %] [% cr.item.barcode | html %] + + + [% cr.item.itemcallnumber | html %] [% IF item_level_itypes %] @@ -221,13 +235,15 @@ [% END %] [% ELSE # record-level course reserve %] - [% IF ( item_level_itypes ) %] - - [% ELSE %] - - [% END %] - Information not available for record-level course reserve - + +
Item information is not available for record-level course reserve
+ + + + + + + [% END %] [% IF (cr.staff_note) %] -- 2.39.5