@@ -, +, @@
of results
- Perform a search by name for a patron which will
return multiple search results.
- The table of results which displays should look correct and work
correctly, including DataTables sorting.
- Clicking any table row should forward you to the checkout page for
that patron.
- Locate and place a hold on a title.
- When prompted to select a patron to place the hold for, perform a
search by name which will return multiple results.
- Confirm that the table of patron results looks correct and works
correctly.
- Clicking any table row should forward you to the place hold page for
that patron and the title you selected.
---
.../en/includes/circ-patron-search-results.inc | 40 ++++++++++++++++
.../prog/en/modules/circ/circulation.tt | 55 +---------------------
.../prog/en/modules/reserve/request.tt | 46 ++----------------
3 files changed, 45 insertions(+), 96 deletions(-)
create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc
+++ a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc
@@ -0,0 +1,40 @@
+
+
+
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
@@ -91,10 +91,6 @@ $(document).ready(function() {
}
});
- $(".clickable").click(function() {
- window.document.location = $(this).data('url');
- });
-
[% IF !( CircAutoPrintQuickSlip == 'clear' ) %]
// listen submit to trigger qslip on empty checkout
$('#mainform').bind('submit',function() {
@@ -107,22 +103,6 @@ $(document).ready(function() {
$("#onsite_checkout").click(function(){
toggle_onsite_checkout();
});
-
- var table = $("#table_borrowers").dataTable($.extend(true, {}, dataTablesDefaults, {
- "aoColumnDefs": [
- { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
- ],
- "aaSorting": [ 2, "asc" ],
- "sDom": "t",
- "iDisplayLength": -1
- }));
- $(table).find('tbody tr').filter(':has(:radio:checked)').end().click(function(event) {
- $('#table_borrowers tbody tr').removeClass('selected');
- $(this).addClass('selected');
- if (event.target.type !== 'radio') {
- $(':radio', this).prop('checked', 'true')
- }
- });
});
//]]>
@@ -594,40 +574,9 @@ No patron matched [% message %]
[% IF ( borrowers ) %]
[% INCLUDE 'patron-toolbar.inc' %]
-
[% ELSE %]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt
@@ -29,21 +29,6 @@ $(document).ready(function() {
$(".suspend_until_datepicker, .datepickerfrom, .datepickerto").datepicker("option", "minDate", 1);
[% END %]
- var table = $("#table_borrowers").dataTable($.extend(true, {}, dataTablesDefaults, {
- "aoColumnDefs": [
- { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
- ],
- "aaSorting": [[ 2, "asc" ]],
- "sDom": "t",
- "iDisplayLength": -1
- }));
- $(table).find('tbody tr').filter(':has(:radio:checked)').end().click(function(event) {
- $('#table_borrowers tbody tr').removeClass('selected');
- $(this).addClass('selected');
- if (event.target.type !== 'radio') {
- $(':radio', this).prop('checked', 'true')
- }
- });
var my_table = $("#requestspecific").dataTable($.extend(true, {}, dataTablesDefaults, {
'bPaginate': false,
"sDom": '<"top pager"ilf>t',
@@ -254,8 +239,9 @@ function checkMultiHold() {
Patron not found
No patron with this name, please, try another
[% END %]