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");
/* 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