<!ENTITY staff.main.menu.search.patrons.label "Search for Patrons">
<!ENTITY staff.main.menu.search.patrons_barcode.accesskey "n">
<!ENTITY staff.main.menu.search.patrons_barcode.label "Search for patron by Barcode">
+<!ENTITY staff.main.menu.search.patron_db_id.accesskey "">
+<!ENTITY staff.main.menu.search.patron_db_id.label "Retrieve patron via Database ID">
<!ENTITY staff.main.menu.search.record.accesskey "T">
<!ENTITY staff.main.menu.search.record.label "Search for record by TCN">
<!ENTITY staff.main.menu.search.record_via_id.accesskey "D">
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) {
<command id="cmd_public_opac" />
<command id="cmd_search_tcn" />
<command id="cmd_search_bib_id" />
+ <command id="cmd_search_usr_id" />
<!-- Perhaps add group_application.user here as well? -->
<command id="cmd_patron_register"
perm="CREATE_USER"
<menuitem label="&staff.main.menu.search.record_via_id.label;" accesskey="&staff.main.menu.search.record_via_id.accesskey;" command="cmd_search_bib_id" />
<menuitem label="&staff.main.menu.search.copies.label;" accesskey="&staff.main.menu.search.copies.accesskey;" command="cmd_copy_status"/>
<menuitem label="&staff.main.menu.search.patrons_barcode.label;" accesskey="&staff.main.menu.search.patrons_barcode.accesskey;" command="cmd_circ_checkout"/>
+ <menuitem
+ command="cmd_search_usr_id"
+ label="&staff.main.menu.search.patron_db_id.label;"
+ accesskey="&staff.main.menu.search.patron_db_id.accesskey;"/>
</menupopup>
</menu>
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