toward a Manage Parts interface
authorJason Etheridge <jason@esilibrary.com>
Fri, 18 Mar 2011 17:45:32 +0000 (13:45 -0400)
committerJason Etheridge <jason@esilibrary.com>
Fri, 18 Mar 2011 17:45:32 +0000 (13:45 -0400)
Open-ILS/web/opac/locale/en-US/lang.dtd
Open-ILS/web/templates/default/conify/global/biblio/monograph_part.tt2
Open-ILS/xul/staff_client/chrome/content/cat/opac.js
Open-ILS/xul/staff_client/chrome/content/cat/opac.xul
Open-ILS/xul/staff_client/chrome/content/main/constants.js
Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties

index 49585ff..8f7bc2b 100644 (file)
 <!ENTITY staff.cat.opac.copy_browse.accesskey "H">
 <!ENTITY staff.cat.opac.copy_browse.label "Holdings Maintenance">
 <!ENTITY staff.cat.opac.default.label "Set bottom interface as Default">
+<!ENTITY staff.cat.opac.manage_parts.accesskey "P">
+<!ENTITY staff.cat.opac.manage_parts.label "Manage Parts">
 <!ENTITY staff.cat.opac.marc_edit.accesskey "E">
 <!ENTITY staff.cat.opac.marc_edit.label "MARC Edit">
 <!ENTITY staff.cat.opac.marc_view.accesskey "V">
index 49ce20a..1336cd5 100644 (file)
@@ -14,6 +14,7 @@
             autoHeight='true'
             fieldOrder="['label']"
             suppressFields="['id','record','label_sortkey']"
+            suppressEditFields="['id','record','label_sortkey']"
             query="{id: null}"
             fmClass='bmp'
             editOnEnter='true'/>
index 6dd549d..eb39770 100644 (file)
@@ -840,3 +840,17 @@ function add_volumes() {
         alert('Error in chrome/content/cat/opac.js, add_volumes(): ' + E);
     }
 }
+
+function manage_parts() {
+    try {
+        var title = document.getElementById('offlineStrings').getFormattedString('staff.cat.manage_parts.title', [docid]);
+        var w = xulG.new_tab(
+            window.xulG.url_prefix(urls.CONIFY_MANAGE_PARTS) + '?r=' + docid,
+            { 'tab_name' : title },
+            {}
+        );
+    } catch(E) {
+        alert('Error in chrome/content/cat/opac.js, manage_parts(): ' + E);
+    }
+}
+
index 5197d89..9e8549d 100644 (file)
@@ -59,6 +59,7 @@
                 <menuitem label="&staff.cat.copy_browser.holdings_maintenance.cmd_add_volumes.label;" accesskey="&staff.cat.copy_browser.holdings_maintenance.cmd_add_volumes.accesskey;" id="add_volumes" oncommand="add_volumes();"/>
                 <menuitem label="&staff.cat.opac.mark_for_hold_transfer.label;" accesskey="&staff.cat.opac.mark_for_hold_transfer.accesskey;" id="mark_for_hold_transfer" oncommand="mark_for_hold_transfer();"/>
                 <menuitem label="&staff.cat.opac.transfer_title_holds.label;" accesskey="&staff.cat.opac.transfer_title_holds.accesskey;" id="transfer_title_holds" oncommand="transfer_title_holds();"/>
+                <menuitem label="&staff.cat.opac.manage_parts.label;" accesskey="&staff.cat.opac.manage_parts.accesskey;" id="manage_parts" oncommand="manage_parts();"/>
                 <menuseparator/>
                 <menuitem label="&staff.cat.opac.bib_in_new_tab.label;" id="bib_in_new_tab" oncommand="bib_in_new_tab();"/>
                 <menuitem label="&staff.cat.opac.remove_me.label;" id="remove_me" oncommand="remove_me();"/>
index cb0235b..dd80116 100644 (file)
@@ -483,6 +483,7 @@ var urls = {
     'TEST_HTML' : '/xul/server/main/test.html',
     'TEST_XUL' : '/xul/server/main/test.xul',
     'CONIFY' : '/conify/' + LOCALE + '/global',
+    'CONIFY_MANAGE_PARTS' : '/eg/conify/global/biblio/monograph_part',
     'EG_WEB_BASE' : '/eg',
     'XUL_LOCAL_ADMIN_BASE' : '/xul/server/admin',
     'XUL_REPORTS' : '/reports/oils_rpt.xhtml',
index 6a125de..7de93f9 100644 (file)
@@ -256,6 +256,7 @@ staff.cat.util.copy_editor.edit=Edit
 staff.cat.util.copy_editor.view=View
 staff.circ.copy_status.add_volumes.perm_failure=You do not have permission to add volumes to the workstation library.
 staff.circ.copy_status.add_volumes.title=Add Volume/Item for Record # %1$s
+staff.cat.manage_parts.title=Manage Parts for Record # %1$s
 staff.cat.z3950.marked_record_for_overlay_indicator.tcn.label=Record with TCN %1$s marked for overlay.
 staff.cat.z3950.marked_record_for_overlay_indicator.record_id.label=Record with ID %1$s marked for overlay.
 staff.cat.opac.marked_record_for_hold_transfer_indicator.tcn.label=Record with TCN %1$s marked for title hold transfer.