From: Galen Charlton Date: Fri, 28 Aug 2015 00:48:17 +0000 (+0000) Subject: webstaff: teach manage authorities about the new MARC editor X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b1f25d1d3b93617adb6e498c5960c87db4038a01;p=evergreen%2Fmasslnc.git webstaff: teach manage authorities about the new MARC editor At the moment, a new window is opened. It might be worth seeing if we can open a dijit.Dialog instead, but... that might be pushing our luck. Signed-off-by: Galen Charlton Signed-off-by: Jason Stephenson --- diff --git a/Open-ILS/web/js/ui/default/cat/authority/list.js b/Open-ILS/web/js/ui/default/cat/authority/list.js index ba625509bd..17b59a8f91 100644 --- a/Open-ILS/web/js/ui/default/cat/authority/list.js +++ b/Open-ILS/web/js/ui/default/cat/authority/list.js @@ -13,6 +13,7 @@ dojo.require("fieldmapper.Fieldmapper"); dojo.require('openils.CGI'); dojo.require('openils.PermaCrud'); dojo.require('openils.XUL'); +dojo.require('openils.Util'); dojo.require('openils.widget.OrgUnitFilteringSelect'); dojo.require("openils.widget.PCrudAutocompleteBox"); dojo.require("MARC.FixedFields"); @@ -285,6 +286,13 @@ function loadMarcEditor(pcrud, rec) { /* Setting an explicit height results in a super skinny window, so fix that up */ var initWidth = self.outerWidth / 2; + if (openils.Util.inIframe()) { + initWidth = initHeight; + win = window.open('/eg/staff/cat/catalog/authority/' + rec.id() + '/marc_edit','', // XXX version? + 'chrome,resizable=yes,height=' + initHeight + ',width=' + initWidth); + return; + } + /* To run in Firefox directly, must set signed.applets.codebase_principal_support to true in about:config