From 57349c89b75ce6e6810f8cba99a848f39f09b563 Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 31 Jul 2006 21:34:19 +0000 Subject: [PATCH] patron search inactive flag git-svn-id: svn://svn.open-ils.org/ILS/trunk@5199 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../xul/staff_client/server/patron/search_form.js | 10 ++++++++-- .../server/patron/search_form_overlay.xul | 7 +++++++ .../xul/staff_client/server/patron/search_result.js | 21 +++++++++++++++------ 3 files changed, 30 insertions(+), 8 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/patron/search_form.js b/Open-ILS/xul/staff_client/server/patron/search_form.js index 2bbce28c36..bcc8926d86 100644 --- a/Open-ILS/xul/staff_client/server/patron/search_form.js +++ b/Open-ILS/xul/staff_client/server/patron/search_form.js @@ -184,6 +184,7 @@ patron.search_form.prototype = { }; } ], + 'inactive' : [ ['render'], function(e) { return function() {}; } ], } } ); @@ -217,8 +218,13 @@ patron.search_form.prototype = { } else { query += '&'; } - query += id + '=' + window.escape(node.value); - dump('id = ' + id + ' value = ' + node.value + '\n'); + if (id == 'inactive') { + query += id + '=' + window.escape(node.getAttribute('value')); + dump('id = ' + id + ' value = ' + node.getAttribute('value') + '\n'); + } else { + query += id + '=' + window.escape(node.value); + dump('id = ' + id + ' value = ' + node.value + '\n'); + } } } if (typeof obj.on_submit == 'function') { diff --git a/Open-ILS/xul/staff_client/server/patron/search_form_overlay.xul b/Open-ILS/xul/staff_client/server/patron/search_form_overlay.xul index d9a287dfe2..8535f7b787 100644 --- a/Open-ILS/xul/staff_client/server/patron/search_form_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/search_form_overlay.xul @@ -30,6 +30,13 @@ + + + + +