Bugzilla – Attachment 37385 Details for
Bug 13887
Add datatables to item specific holds table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13887 - Add datatables to item specific holds table
Bug-13887---Add-datatables-to-item-specific-holds-.patch (text/plain), 3.17 KB, created by
Nick Clemens (kidclamp)
on 2015-03-30 20:13:19 UTC
(
hide
)
Description:
Bug 13887 - Add datatables to item specific holds table
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2015-03-30 20:13:19 UTC
Size:
3.17 KB
patch
obsolete
>From 564d86bff7539b064672f42c99d0ff1a3a277f66 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@quecheelibrary.org> >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 >--- > .../prog/en/modules/reserve/request.tt | 46 ++++++++++++++------ > 1 file changed, 32 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 db044b5..06ea862 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >@@ -5,7 +5,9 @@ > [% ELSE %] > <title>Koha › Circulation › Holds › Confirm holds</title> > [% END %] >+<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> > [% INCLUDE 'doc-head-close.inc' %] >+[% INCLUDE 'datatables.inc' %] > [% INCLUDE 'calendar.inc' %] > <script type="text/javascript"> > // <![CDATA[ >@@ -24,6 +26,20 @@ $(document).ready(function() { > [% IF AutoResumeSuspendedHolds %] > $(".suspend_until_datepicker, .datepickerfrom, .datepickerto").datepicker("option", "minDate", 1); > [% END %] >+ >+ 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" >+ }); >+ > }); > > function check() { >@@ -395,21 +411,23 @@ function checkMultiHold() { > > <table id="requestspecific"> > <caption>Place a hold on a specific item</caption> >+ <thead> > <tr> >- <th>Hold</th> >- [% IF ( item_level_itypes ) %] >- <th>Item type</th> >- [% END %] >- <th>Barcode</th> >- <th>Home library</th> >- <th>Last location</th> >- <th>Call no.</th> >- <th>Copy number</th> >- [% IF itemdata_enumchron %] >- <th>Vol no.</th> >- [% END %] >- <th>Information</th> >- </tr> >+ <th>Hold</th> >+ [% IF ( item_level_itypes ) %] >+ <th>Item type</th> >+ [% END %] >+ <th>Barcode</th> >+ <th>Home library</th> >+ <th>Last location</th> >+ <th>Call no.</th> >+ <th>Copy number</th> >+ [% IF itemdata_enumchron %] >+ <th>Vol no.</th> >+ [% END %] >+ <th>Information</th> >+ </tr> >+ </thead> > [% FOREACH itemloo IN bibitemloo.itemloop %] > [% UNLESS ( itemloo.hide ) %] > <tr class="[% itemloo.backgroundcolor %]"> >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13887
:
37081
|
37345
|
37385
|
37388
|
37411
|
38294
|
38295
|
38309
|
38310
|
38311
|
38312
|
38313
|
38321
|
38322
|
38323
|
38369
|
38370
|
38371
|
38372
|
38373
|
38374