From: Jason Etheridge Date: Sun, 31 Jul 2011 04:33:31 +0000 (-0400) Subject: Add "Retrieve patron via Database ID" menu entry X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=86cd5ce769ac8ae3ffcac0467f5009802743af9f;p=evergreen%2Fmasslnc.git Add "Retrieve patron via Database ID" menu entry Add "Retrieve patron via Database ID" menu entry to top-level Search menu Signed-off-by: Jason Etheridge Signed-off-by: Thomas Berezansky --- diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index f9549b87fc..86d86a19c7 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -1101,6 +1101,8 @@ + + diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu.js b/Open-ILS/xul/staff_client/chrome/content/main/menu.js index de4579faf3..8d179c034a 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js @@ -378,6 +378,23 @@ main.menu.prototype = { obj.set_patron_tab({},{},event); } ], + 'cmd_search_usr_id' : [ + ['oncommand'], + function(event) { + var usr_id = prompt( + offlineStrings.getString('menu.cmd_search_usr_id.tab'), + '', + offlineStrings.getString('menu.cmd_search_usr_id.prompt') + ); + if (usr_id != '' && ! isNaN(usr_id)) { + obj.set_patron_tab( + {}, + { 'id' : usr_id }, + event + ); + } + } + ], 'cmd_search_opac' : [ ['oncommand'], function(event) { diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul index 2218ae8c53..480ac2bbf7 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul @@ -38,6 +38,7 @@ + + diff --git a/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties b/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties index 753da5845e..ca7eedf47a 100644 --- a/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties +++ b/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties @@ -110,6 +110,8 @@ menu.cmd_replace_barcode.renaming.failure=The rename operation probably failed. menu.cmd_search_opac.tab=Catalog menu.cmd_search_bib_id.tab=What is the internal ID for the bibliographic record? menu.cmd_search_bib_id.prompt=Bib ID Lookup +menu.cmd_search_usr_id.tab=What is the internal database ID for the patron account? +menu.cmd_search_usr_id.prompt=Patron ID Lookup menu.cmd_search_tcn.tab=What is the TCN or accession ID for the record? menu.cmd_search_tcn.prompt=TCN Lookup menu.cmd_search_tcn.not_found.error="%1$s" not found