Retrieve Record via internal Bib Id. No error checking
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 13 Jun 2008 21:16:07 +0000 (21:16 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 13 Jun 2008 21:16:07 +0000 (21:16 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9836 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/locale/en-US/lang.dtd
Open-ILS/xul/staff_client/chrome/content/main/menu.js
Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties

index abac14e..4af79ef 100644 (file)
 <!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">
 <!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">
index 39a40a5..79e8412 100644 (file)
@@ -230,6 +230,25 @@ main.menu.prototype = {
                                        }
                                }
                        ],
+                       '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() {
index 9f1c264..b1b1f67 100644 (file)
@@ -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" />
        <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 />
                <!--
                <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>
index 0c34ac0..e32a120 100644 (file)
@@ -94,6 +94,8 @@ menu.cmd_replace_barcode.permission.error=Rename aborted.  Insufficient permissi
 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