From 0b62e8547350c9c37ec70d7a61629ff05bf8475c Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Fri, 18 Mar 2011 13:45:32 -0400 Subject: [PATCH] toward a Manage Parts interface --- Open-ILS/web/opac/locale/en-US/lang.dtd | 2 ++ .../default/conify/global/biblio/monograph_part.tt2 | 1 + Open-ILS/xul/staff_client/chrome/content/cat/opac.js | 14 ++++++++++++++ Open-ILS/xul/staff_client/chrome/content/cat/opac.xul | 1 + Open-ILS/xul/staff_client/chrome/content/main/constants.js | 1 + .../staff_client/chrome/locale/en-US/offline.properties | 1 + 6 files changed, 20 insertions(+) diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index 49585ff6a1..8f7bc2be9b 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -284,6 +284,8 @@ + + diff --git a/Open-ILS/web/templates/default/conify/global/biblio/monograph_part.tt2 b/Open-ILS/web/templates/default/conify/global/biblio/monograph_part.tt2 index 49ce20a1e5..1336cd5017 100644 --- a/Open-ILS/web/templates/default/conify/global/biblio/monograph_part.tt2 +++ b/Open-ILS/web/templates/default/conify/global/biblio/monograph_part.tt2 @@ -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'/> diff --git a/Open-ILS/xul/staff_client/chrome/content/cat/opac.js b/Open-ILS/xul/staff_client/chrome/content/cat/opac.js index 6dd549dd06..eb39770ab2 100644 --- a/Open-ILS/xul/staff_client/chrome/content/cat/opac.js +++ b/Open-ILS/xul/staff_client/chrome/content/cat/opac.js @@ -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); + } +} + diff --git a/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul b/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul index 5197d89c85..9e8549d53e 100644 --- a/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul +++ b/Open-ILS/xul/staff_client/chrome/content/cat/opac.xul @@ -59,6 +59,7 @@ + diff --git a/Open-ILS/xul/staff_client/chrome/content/main/constants.js b/Open-ILS/xul/staff_client/chrome/content/main/constants.js index cb0235b1b6..dd8011622b 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/constants.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/constants.js @@ -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', 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 6a125de544..7de93f97a5 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 @@ -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. -- 2.11.0