From 35e0349fe2cd3f31d9bb716c0c7a34e5eeca6135 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Sat, 21 Mar 2015 13:41:21 -0400 Subject: [PATCH] Bug 13887 - Add datatables to item specific holds table This patch adds datatables functionality to the item specific holds table To test: 1 - Apply patch 2 - Attempt to place an item specific hold for a patron 3 - Note that columns are now sortable and searchable 4 - Ensure that you can place both specific and next available holds as before Signed-off-by: Nicole Engard --- .../prog/en/modules/reserve/request.tt | 42 +++++++++++++------- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index 04023d3..2280ff5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -42,6 +42,18 @@ $(document).ready(function() { $(':radio', this).attr('checked', 'true') } }); + var my_table = $("#requestspecific").dataTable($.extend(true, {}, dataTablesDefaults, { + 'bPaginate': false, + 'bInfo': false, + "bAutoWidth": false, + })); + + //Override fieldset styling for dataTables search box + $("div.top.pager").css("margin-left","1em"); + $(".dataTables_filter label").css({ + "width":"auto", + "margin-right":"0em" + }); }); @@ -431,21 +443,23 @@ function checkMultiHold() { + - - [% IF ( item_level_itypes ) %] - - [% END %] - - - - - - [% IF itemdata_enumchron %] - - [% END %] - - + + [% IF ( item_level_itypes ) %] + + [% END %] + + + + + + [% IF itemdata_enumchron %] + + [% END %] + + + [% FOREACH itemloo IN bibitemloo.itemloop %] [% UNLESS ( itemloo.hide ) %] -- 1.7.10.4
Place a hold on a specific item
HoldItem typeBarcodeHome libraryLast locationCall no.Copy numberVol no.Information
HoldItem typeBarcodeHome libraryLast locationCall no.Copy numberVol no.Information