[open-ils-commits] r9836 - in trunk/Open-ILS: web/opac/locale/en-US
xul/staff_client/chrome/content/main
xul/staff_client/chrome/locale/en-US
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jun 13 17:16:11 EDT 2008
Author: phasefx
Date: 2008-06-13 17:16:07 -0400 (Fri, 13 Jun 2008)
New Revision: 9836
Modified:
trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties
Log:
Retrieve Record via internal Bib Id. No error checking
Modified: trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
===================================================================
--- trunk/Open-ILS/web/opac/locale/en-US/lang.dtd 2008-06-13 21:01:13 UTC (rev 9835)
+++ trunk/Open-ILS/web/opac/locale/en-US/lang.dtd 2008-06-13 21:16:07 UTC (rev 9836)
@@ -632,6 +632,8 @@
<!ENTITY staff.main.menu.cat.retrieve_last_record.label "Retrieve Last Record">
<!ENTITY staff.main.menu.cat.search_tcn.accesskey "T">
<!ENTITY staff.main.menu.cat.search_tcn.label "Retrieve record by TCN">
+<!ENTITY staff.main.menu.cat.search_bib_id.accesskey "D">
+<!ENTITY staff.main.menu.cat.search_bib_id.label "Retrieve record by Record ID">
<!ENTITY staff.main.menu.cat.volume_status.key "V">
<!ENTITY staff.main.menu.cat.volume_status.label "Display Volume">
<!ENTITY staff.main.menu.cat.z39_50_import.accesskey "Z">
@@ -759,6 +761,8 @@
<!ENTITY staff.main.menu.search.patrons_barcode.label "for patron by Barcode">
<!ENTITY staff.main.menu.search.record.accesskey "T">
<!ENTITY staff.main.menu.search.record.label "for record by TCN">
+<!ENTITY staff.main.menu.search.record_via_id.accesskey "D">
+<!ENTITY staff.main.menu.search.record_via_id.label "for record by Record ID">
<!ENTITY staff.main.menu.serials.key "l">
<!ENTITY staff.main.menu.serials.label "Serials">
<!ENTITY staff.main.menu.tabs.close "Close All Tabs">
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js 2008-06-13 21:01:13 UTC (rev 9835)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js 2008-06-13 21:16:07 UTC (rev 9836)
@@ -230,6 +230,25 @@
}
}
],
+ 'cmd_search_bib_id' : [
+ ['oncommand'],
+ function() {
+ var bib_id = prompt(offlineStrings.getString('menu.cmd_search_bib_id.tab'),'',offlineStrings.getString('menu.cmd_search_bib_id.prompt'));
+ if (!bib_id) return;
+
+ var opac_url = obj.url_prefix( urls.opac_rdetail ) + '?r=' + bib_id;
+ var content_params = {
+ 'session' : ses(),
+ 'authtime' : ses('authtime'),
+ 'opac_url' : opac_url,
+ };
+ obj.set_tab(
+ obj.url_prefix(urls.XUL_OPAC_WRAPPER),
+ {'tab_name':'#' + bib_id},
+ content_params
+ );
+ }
+ ],
'cmd_copy_status' : [
['oncommand'],
function() {
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul 2008-06-13 21:01:13 UTC (rev 9835)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul 2008-06-13 21:16:07 UTC (rev 9836)
@@ -34,6 +34,7 @@
<command id="cmd_search_opac" key="search-opac-key" />
<command id="cmd_public_opac" />
<command id="cmd_search_tcn" />
+ <command id="cmd_search_bib_id" />
<command id="cmd_patron_register" key="patron-register-key" />
<command id="cmd_standalone" />
<command id="cmd_survey_wizard" />
@@ -150,6 +151,7 @@
<menupopup id="main.menu.cat.popup">
<menuitem label="&staff.main.menu.cat.bib_search.label;" accesskey="&staff.main.menu.cat.bib_search.key;" key="search-opac-key" command="cmd_search_opac"/>
<menuitem label="&staff.main.menu.cat.search_tcn.label;" accesskey="&staff.main.menu.cat.search_tcn.accesskey;" key="search-tcn-key" command="cmd_search_tcn" />
+ <menuitem label="&staff.main.menu.cat.search_bib_id.label;" accesskey="&staff.main.menu.cat.search_bib_id.accesskey;" key="search-bib-id-key" command="cmd_search_bib_id" />
<menuitem label="&staff.main.menu.cat.copy_status.label;" accesskey="&staff.main.menu.cat.copy_status.accesskey;" key="copy-status-key" command="cmd_copy_status"/>
<menuseparator />
<!--
@@ -173,6 +175,7 @@
<menuitem label="&staff.main.menu.search.patrons.label;" accesskey="&staff.main.menu.search.patrons.accesskey;" key="patron-search-key" command="cmd_patron_search" />
<menuitem label="&staff.main.menu.search.catalog.label;" accesskey="&staff.main.menu.search.catalog.accesskey;" key="search-opac-key" command="cmd_search_opac" />
<menuitem label="&staff.main.menu.search.record.label;" accesskey="&staff.main.menu.search.record.accesskey;" key="search-tcn-key" command="cmd_search_tcn" />
+ <menuitem label="&staff.main.menu.search.record_via_id.label;" accesskey="&staff.main.menu.search.record_via_id.accesskey;" key="search-bib-id-key" command="cmd_search_bib_id" />
<menuitem label="&staff.main.menu.search.copies.label;" accesskey="&staff.main.menu.search.copies.accesskey;" key="copy-status-key" command="cmd_copy_status"/>
<menuitem label="&staff.main.menu.search.patrons_barcode.label;" accesskey="&staff.main.menu.search.patrons_barcode.accesskey;" key="circ-checkout-key" command="cmd_circ_checkout"/>
</menupopup>
Modified: trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties 2008-06-13 21:01:13 UTC (rev 9835)
+++ trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties 2008-06-13 21:16:07 UTC (rev 9836)
@@ -94,6 +94,8 @@
menu.cmd_replace_barcode.renaming.error=Error renaming item.
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_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
More information about the open-ils-commits
mailing list