From: berick Date: Tue, 3 May 2011 17:55:22 +0000 (-0400) Subject: create an embedded view of the vandelay match-set admin ui inside of vandelay (as... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ce07a23e829a7271fc4b11af72117b8c14837ad3;p=evergreen%2Fmasslnc.git create an embedded view of the vandelay match-set admin ui inside of vandelay (as one of the tabs) --- diff --git a/Open-ILS/web/js/ui/default/vandelay/vandelay.js b/Open-ILS/web/js/ui/default/vandelay/vandelay.js index 26d73c7f1a..6ce390fe78 100644 --- a/Open-ILS/web/js/ui/default/vandelay/vandelay.js +++ b/Open-ILS/web/js/ui/default/vandelay/vandelay.js @@ -258,6 +258,10 @@ function displayGlobalDiv(id) { openils.Util.removeCSSClass(dojo.byId('vl-menu-queue-select'), 'toolbar_selected'); openils.Util.removeCSSClass(dojo.byId('vl-menu-attr-editor'), 'toolbar_selected'); openils.Util.removeCSSClass(dojo.byId('vl-menu-profile-editor'), 'toolbar_selected'); + openils.Util.removeCSSClass(dojo.byId('vl-menu-match-set-editor'), 'toolbar_selected'); + + if(dojo.byId('vl-match-set-iframe')) + dojo.byId('vl-match-set-editor-div').removeChild(dojo.byId('vl-match-set-iframe')); switch(id) { case 'vl-marc-export-div': @@ -278,6 +282,9 @@ function displayGlobalDiv(id) { case 'vl-item-attr-editor-div': openils.Util.addCSSClass(dojo.byId('vl-menu-import-item-attr-editor'), 'toolbar_selected'); break; + case 'vl-match-set-editor-div': + openils.Util.addCSSClass(dojo.byId('vl-menu-match-set-editor'), 'toolbar_selected'); + break; } } @@ -1165,6 +1172,17 @@ function vlShowQueueSelect() { vlFleshQueueSelect(vlQueueSelectQueueList, vlQueueSelectType.getValue()); } +function vlShowMatchSetEditor() { + displayGlobalDiv('vl-match-set-editor-div'); + dojo.byId('vl-match-set-editor-div').appendChild( + dojo.create('iframe', { + id : 'vl-match-set-iframe', + src : oilsBasePath + '/eg/conify/global/vandelay/match_set', + style : 'width:100%; height:500px; border:none; margin:0px;' + }) + ); +} + function vlFetchQueueFromForm() { currentType = vlQueueSelectType.getValue(); currentQueueId = vlQueueSelectQueueList.getValue(); @@ -1321,7 +1339,6 @@ function onAttrEditorClick() { var parsed_xpath = xpathParser.parse(this.store.getValue(row, 'xpath')); dijit.byId('attr-editor-tags').attr('value', parsed_xpath.tags); dijit.byId('attr-editor-subfields').attr('value', parsed_xpath.subfields); - dijit.byId('attr-editor-identifier').attr('value', this.store.getValue(row, 'ident')); dijit.byId('attr-editor-xpath').attr('value', this.store.getValue(row, 'xpath')); dijit.byId('attr-editor-remove').attr('value', this.store.getValue(row, 'remove')); diff --git a/Open-ILS/web/opac/locale/en-US/vandelay.dtd b/Open-ILS/web/opac/locale/en-US/vandelay.dtd index e94f8c719a..f8fa799f7f 100644 --- a/Open-ILS/web/opac/locale/en-US/vandelay.dtd +++ b/Open-ILS/web/opac/locale/en-US/vandelay.dtd @@ -24,10 +24,11 @@ - - + + - + + diff --git a/Open-ILS/web/templates/default/vandelay/inc/attrs.tt2 b/Open-ILS/web/templates/default/vandelay/inc/attrs.tt2 index d06b176f1b..1a09b0bb82 100644 --- a/Open-ILS/web/templates/default/vandelay/inc/attrs.tt2 +++ b/Open-ILS/web/templates/default/vandelay/inc/attrs.tt2 @@ -38,15 +38,6 @@ - - - - - - @@ -90,7 +81,6 @@ &vandelay.descrip; &vandelay.tag; &vandelay.subfield; - &vandelay.identifier; &vandelay.xpath; &vandelay.remove; diff --git a/Open-ILS/web/templates/default/vandelay/inc/toolbar.tt2 b/Open-ILS/web/templates/default/vandelay/inc/toolbar.tt2 index 69c2190a56..144cd45336 100644 --- a/Open-ILS/web/templates/default/vandelay/inc/toolbar.tt2 +++ b/Open-ILS/web/templates/default/vandelay/inc/toolbar.tt2 @@ -9,6 +9,8 @@ onclick="vlShowAttrEditor();" showLabel="true">&vandelay.edit.attributes;
&vandelay.edit.profiles;
+
&vandelay.edit.match_set;
&vandelay.edit.import_item_attrs;
diff --git a/Open-ILS/web/templates/default/vandelay/vandelay.tt2 b/Open-ILS/web/templates/default/vandelay/vandelay.tt2 index 4ca2f375db..78f23a8573 100644 --- a/Open-ILS/web/templates/default/vandelay/vandelay.tt2 +++ b/Open-ILS/web/templates/default/vandelay/vandelay.tt2 @@ -37,6 +37,8 @@ +