// Do pre-query stuff
dojo.forEach(pre_query_callbacks, function (cb) {
- try { (new Function( 'BT', 'slotXML', 'slot', unescape(cb.innerHTML) ))(BT,bib,slot) } catch (e) {/*meh*/}
+ try { (new Function( 'BT', 'slotXML', 'slot', decodeURIComponent(cb.innerHTML) ))(BT,bib,slot) } catch (e) {/*meh*/}
});
var query = slot.getAttribute('query');
// Do post-query stuff
dojo.forEach(post_query_callbacks, function (cb) {
- try { (new Function( 'item_list', 'BT', 'slotXML', 'slot', unescape(cb.innerHTML) ))(item_list,BT,bib,slot) } catch (e) {/*meh*/}
+ try { (new Function( 'item_list', 'BT', 'slotXML', 'slot', decodeURIComponent(cb.innerHTML) ))(item_list,BT,bib,slot) } catch (e) {/*meh*/}
});
if (!item_list.length) return;
// Do pre-render stuff
dojo.forEach(pre_render_callbacks, function (cb) {
- try { (new Function( 'item_list', 'BT', 'slotXML', 'slot', unescape(cb.innerHTML) ))(item_list,BT,bib,slot) } catch (e) {/*meh*/}
+ try { (new Function( 'item_list', 'BT', 'slotXML', 'slot', decodeURIComponent(cb.innerHTML) ))(item_list,BT,bib,slot) } catch (e) {/*meh*/}
});
var templated = slot.getAttribute('templated') == 'true';
slot
).orphan().forEach(function(x) {
var name = x.getAttribute('name');
- var value = (new Function( 'item_list', 'BT', 'slotXML', 'slot', unescape(x.innerHTML) ))(item_list,BT,bib,slot);
+ var value = (new Function( 'item_list', 'BT', 'slotXML', 'slot', decodeURIComponent(x.innerHTML) ))(item_list,BT,bib,slot);
if (name && (value || value == '')) {
template_values[name] = value;
template_value_count++;
dojo.attr(
slot, "innerHTML",
dojo.string.substitute(
- unescape(slot.innerHTML),
+ decodeURIComponent(slot.innerHTML),
template_values
)
);
// Do post-render stuff
dojo.forEach(post_render_callbacks, function (cb) {
- try { (new Function( 'item_list', 'BT', 'slotXML', 'slot', unescape(cb.innerHTML) ))(item_list,BT,bib,slot) } catch (e) {/*meh*/}
+ try { (new Function( 'item_list', 'BT', 'slotXML', 'slot', decodeURIComponent(cb.innerHTML) ))(item_list,BT,bib,slot) } catch (e) {/*meh*/}
});
} catch (e) {
if (wrap_in_browser) {
var urls = xulG.urls || window.urls;
- loc = urls.XUL_BROWSER + "?url=" + window.escape(loc);
+ loc = urls.XUL_BROWSER + "?url=" + window.encodeURIComponent(loc);
content_params = dojo.mixin(
{
"no_xulG": false, "show_print_button": true,
);
win = window.open(
- oilsBasePath + '/acq/lineitem/findbib?query=' + escape(query),
+ oilsBasePath + '/acq/lineitem/findbib?query=' + encodeURIComponent(query),
'', 'resizable,scrollbars=1,chrome');
win.window.recordFound = function(bibId) {
}
function formatSourceName(val) {
- return '<a href="' + location.href + '/' + escape(val) + '">' + val + '</a>';
+ return '<a href="' + location.href + '/' + encodeURIComponent(val) + '">' + val + '</a>';
}
var cloneSourceSelector;
function format_grp(val) {
return '<a href="' + location.href +
- '/' + escape(val) + '">' + val + '</a>';
+ '/' + encodeURIComponent(val) + '">' + val + '</a>';
}
openils.Util.addOnLoad(init);
dTree.prototype.setCookie = function(cookieName, cookieValue, expires, path, domain, secure) {
document.cookie =
- escape(cookieName) + '=' + escape(cookieValue)
+ encodeURIComponent(cookieName) + '=' + encodeURIComponent(cookieValue)
+ (expires ? '; expires=' + expires.toGMTString() : '')
+ (path ? '; path=' + path : '')
+ (domain ? '; domain=' + domain : '')
dTree.prototype.getCookie = function(cookieName) {
var cookieValue = '';
- var posName = document.cookie.indexOf(escape(cookieName) + '=');
+ var posName = document.cookie.indexOf(encodeURIComponent(cookieName) + '=');
if (posName != -1) {
- var posValue = posName + (escape(cookieName) + '=').length;
+ var posValue = posName + (encodeURIComponent(cookieName) + '=').length;
var endPos = document.cookie.indexOf(';', posValue);
- if (endPos != -1) cookieValue = unescape(document.cookie.substring(posValue, endPos));
- else cookieValue = unescape(document.cookie.substring(posValue));
+ if (endPos != -1) cookieValue = decodeURIComponent(document.cookie.substring(posValue, endPos));
+ else cookieValue = decodeURIComponent(document.cookie.substring(posValue));
}
return (cookieValue);
};
scriptElement.setAttribute("id", "jsonScript");
scriptElement.setAttribute("src",
"https://www.googleapis.com/books/v1/volumes?q=" +
- escape('isbn:' + isbnList.join(' | isbn:')) + "&callback=unhideGoogleBooksLink");
+ encodeURIComponent('isbn:' + isbnList.join(' | isbn:')) + "&callback=unhideGoogleBooksLink");
scriptElement.setAttribute("type", "text/javascript");
// make the request to Google Book Search
document.documentElement.firstChild.appendChild(scriptElement);
<label value="Debug:" />
<textbox id="debug_tb" flex="1"/>
<button label="Execute" oncommand="try { var dtb = document.getElementById('debug_tb'); alert( eval( dtb.value ) ); } catch(E) { alert(E); }; dtb.focus();"/>
- <button label="Inspect" oncommand="try { var dtb = document.getElementById('debug_tb'); var dx = eval( dtb.value ); var ds = ''; for (var di in dx) { ds += di + '=' + dx[di] + '\r\n'; }; window.open('data:text/plain;charset=UTF-8,'+window.escape(ds),'debug_win','chrome,resizable,modal'); } catch(E) { alert(E); }; dtb.focus();"/>
+ <button label="Inspect" oncommand="try { var dtb = document.getElementById('debug_tb'); var dx = eval( dtb.value ); var ds = ''; for (var di in dx) { ds += di + '=' + dx[di] + '\r\n'; }; window.open('data:text/plain;charset=UTF-8,'+window.encodeURIComponent(ds),'debug_win','chrome,resizable,modal'); } catch(E) { alert(E); }; dtb.focus();"/>
<button label="js2JSON" oncommand="try { var dtb = document.getElementById('debug_tb'); alert( js2JSON( eval( dtb.value ) ) ); } catch(E) { alert(E); }; dtb.focus();"/>
</hbox>
<keyset><key id="debug_box_key" keycode="VK_F7" modifiers="control,shift" oncommand="JSAN.use('OpenILS.data'); var data = new OpenILS.data(); data.init({'via':'stash'}); var dtb = document.getElementById('debug_tb'); var dx = document.getElementById('debug_box'); if(data.enable_debug || !dx.hidden) { dx.hidden = !dx.hidden; if(!dx.hidden) dtb.focus();}"/></keyset>
<label value="Debug:" />
<textbox id="debug_tb" flex="1"/>
<button label="Execute" oncommand="try { var dtb = document.getElementById('debug_tb'); alert( eval( dtb.value ) ); } catch(E) { alert(E); }; dtb.focus();"/>
- <button label="Inspect" oncommand="try { var dtb = document.getElementById('debug_tb'); var dx = eval( dtb.value ); var ds = ''; for (var di in dx) { ds += di + '=' + dx[di] + '\r\n'; }; window.open('data:text/plain;charset=UTF-8,'+window.escape(ds),'debug_win','chrome,resizable,modal'); } catch(E) { alert(E); }; dtb.focus();"/>
+ <button label="Inspect" oncommand="try { var dtb = document.getElementById('debug_tb'); var dx = eval( dtb.value ); var ds = ''; for (var di in dx) { ds += di + '=' + dx[di] + '\r\n'; }; window.open('data:text/plain;charset=UTF-8,'+window.encodeURIComponent(ds),'debug_win','chrome,resizable,modal'); } catch(E) { alert(E); }; dtb.focus();"/>
<button label="js2JSON" oncommand="try { var dtb = document.getElementById('debug_tb'); alert( js2JSON( eval( dtb.value ) ) ); } catch(E) { alert(E); }; dtb.focus();"/>
</hbox>
<keyset><key id="debug_box_key" keycode="VK_F7" modifiers="control,shift" oncommand="JSAN.use('OpenILS.data'); var data = new OpenILS.data(); data.init({'via':'stash'}); var dtb = document.getElementById('debug_tb'); var dx = document.getElementById('debug_box'); if(data.debug_build || data.enable_debug || !dx.hidden) { dx.hidden = !dx.hidden; if(!dx.hidden) dtb.focus();}"/></keyset>
}
function set_brief_view() {
- var url = xulG.url_prefix( 'XUL_BIB_BRIEF?docid=' ) + window.escape(docid);
+ var url = xulG.url_prefix( 'XUL_BIB_BRIEF?docid=' ) + window.encodeURIComponent(docid);
dump('spawning ' + url + '\n');
var content_params = {
function set_marc_view() {
g.view = 'marc_view';
if (marc_view_reset) {
- bottom_pane.reset_iframe( xulG.url_prefix( 'XUL_MARC_VIEW?docid=' ) + window.escape(docid),{},xulG);
+ bottom_pane.reset_iframe( xulG.url_prefix( 'XUL_MARC_VIEW?docid=' ) + window.encodeURIComponent(docid),{},xulG);
marc_view_reset = false;
} else {
- bottom_pane.set_iframe( xulG.url_prefix( 'XUL_MARC_VIEW?docid=' ) + window.escape(docid),{},xulG);
+ bottom_pane.set_iframe( xulG.url_prefix( 'XUL_MARC_VIEW?docid=' ) + window.encodeURIComponent(docid),{},xulG);
}
opac_wrapper_set_help_context();
bottom_pane.get_contentWindow().addEventListener('load',opac_wrapper_set_help_context,false);
function set_copy_browser() {
g.view = 'copy_browser';
if (copy_browser_reset) {
- bottom_pane.reset_iframe( xulG.url_prefix( 'XUL_COPY_VOLUME_BROWSE?docid=' ) + window.escape(docid),{},xulG);
+ bottom_pane.reset_iframe( xulG.url_prefix( 'XUL_COPY_VOLUME_BROWSE?docid=' ) + window.encodeURIComponent(docid),{},xulG);
copy_browser_reset =false;
} else {
- bottom_pane.set_iframe( xulG.url_prefix( 'XUL_COPY_VOLUME_BROWSE?docid=' ) + window.escape(docid),{},xulG);
+ bottom_pane.set_iframe( xulG.url_prefix( 'XUL_COPY_VOLUME_BROWSE?docid=' ) + window.encodeURIComponent(docid),{},xulG);
}
opac_wrapper_set_help_context();
bottom_pane.get_contentWindow().addEventListener('load',opac_wrapper_set_help_context,false);
function set_hold_browser() {
g.view = 'hold_browser';
if (hold_browser_reset) {
- bottom_pane.reset_iframe( xulG.url_prefix( 'XUL_HOLDS_BROWSER?docid=' ) + window.escape(docid),{},xulG);
+ bottom_pane.reset_iframe( xulG.url_prefix( 'XUL_HOLDS_BROWSER?docid=' ) + window.encodeURIComponent(docid),{},xulG);
hold_browser_reset = false;
} else {
- bottom_pane.set_iframe( xulG.url_prefix( 'XUL_HOLDS_BROWSER?docid=' ) + window.escape(docid),{},xulG);
+ bottom_pane.set_iframe( xulG.url_prefix( 'XUL_HOLDS_BROWSER?docid=' ) + window.encodeURIComponent(docid),{},xulG);
}
opac_wrapper_set_help_context();
bottom_pane.get_contentWindow().addEventListener('load',opac_wrapper_set_help_context,false);
"get_barcode_and_settings"
].forEach(function(k) { content_params[k] = xulG[k]; });
- var loc = urls.XUL_BROWSER + "?url=" + window.escape(
+ var loc = urls.XUL_BROWSER + "?url=" + window.encodeURIComponent(
xulG.url_prefix("ACQ_LINEITEM") +
docid + "?target=bib"
);
"get_barcode_and_settings"
].forEach(function(k) { content_params[k] = xulG[k]; });
- var loc = urls.XUL_BROWSER + "?url=" + window.escape(
+ var loc = urls.XUL_BROWSER + "?url=" + window.encodeURIComponent(
xulG.url_prefix("SERIAL_LIST_SUBSCRIPTION?record_entry=") +
docid
);
function set_serctrl_view() {
g.view = 'serctrl_view';
if (serctrl_view_reset) {
- bottom_pane.reset_iframe( xulG.url_prefix( 'XUL_SERIAL_SERCTRL_MAIN?docid=' ) + window.escape(docid), {}, xulG);
+ bottom_pane.reset_iframe( xulG.url_prefix( 'XUL_SERIAL_SERCTRL_MAIN?docid=' ) + window.encodeURIComponent(docid), {}, xulG);
serctrl_view_reset =false;
} else {
- bottom_pane.set_iframe( xulG.url_prefix( 'XUL_SERIAL_SERCTRL_MAIN?docid=' ) + window.escape(docid), {}, xulG);
+ bottom_pane.set_iframe( xulG.url_prefix( 'XUL_SERIAL_SERCTRL_MAIN?docid=' ) + window.encodeURIComponent(docid), {}, xulG);
}
}
xulG.new_tab(
xulG.url_prefix('XUL_SERIAL_BATCH_RECEIVE?docid=') +
- window.escape(docid), {
+ window.encodeURIComponent(docid), {
"tab_name": $("offlineStrings").getString(
"menu.cmd_serial_batch_receive.tab"
)
}
function remove_me() {
- var url = xulG.url_prefix( 'XUL_BIB_BRIEF?docid=' ) + window.escape(docid);
+ var url = xulG.url_prefix( 'XUL_BIB_BRIEF?docid=' ) + window.encodeURIComponent(docid);
dump('removing ' + url + '\n');
try { top_pane.remove_iframe( url ); } catch(E) { dump(E + '\n'); }
$('nav').setAttribute('hidden','true');
function manage_parts() {
try {
g.view = 'manage_parts';
- var loc = urls.XUL_BROWSER + "?url=" + window.escape(
+ var loc = urls.XUL_BROWSER + "?url=" + window.encodeURIComponent(
window.xulG.url_prefix('CONIFY_MANAGE_PARTS?r=') + docid
);
if (manage_parts_reset) {
if(urls[firstURL]) {
firstURL = urls[firstURL];
}
- firstURL = '&firstURL=' + window.escape(firstURL);
+ firstURL = '&firstURL=' + window.encodeURIComponent(firstURL);
}
else {
firstURL = '';
firstURL = '';
}
targetwindow = xulG.window.open(urls.XUL_MENU_FRAME
- + '?server='+window.escape(G.data.server) + firstURL,
+ + '?server='+window.encodeURIComponent(G.data.server) + firstURL,
'_blank','chrome,resizable'
);
targetwindow.xulG = xulG;
label = offlineStrings.getString(labelKey);
// URL
- var loc = urls.XUL_BROWSER + '?url=' + window.escape( obj.url_prefix('CONIFY/') + path + '.html');
+ var loc = urls.XUL_BROWSER + '?url=' + window.encodeURIComponent( obj.url_prefix('CONIFY/') + path + '.html');
obj.command_tab(
event,
label = offlineStrings.getString(labelKey);
// URL
- var loc = urls.XUL_BROWSER + '?url=' + window.escape( obj.url_prefix('XUL_LOCAL_ADMIN_BASE/') + path);
- if(addSes) loc += window.escape('?ses=' + ses());
+ var loc = urls.XUL_BROWSER + '?url=' + window.encodeURIComponent( obj.url_prefix('XUL_LOCAL_ADMIN_BASE/') + path);
+ if(addSes) loc += window.encodeURIComponent('?ses=' + ses());
obj.command_tab(
event,
var label = offlineStrings.getString(labelKey);
// URL
- var loc = urls.XUL_BROWSER + '?url=' + window.escape(obj.url_prefix('EG_WEB_BASE/') + path);
+ var loc = urls.XUL_BROWSER + '?url=' + window.encodeURIComponent(obj.url_prefix('EG_WEB_BASE/') + path);
content_params = content_params || {
'no_xulG': false,
var param_count = 0;
for (var i in p) {
if (param_count++ == 0) url += '?'; else url += '&';
- url += i + '=' + window.escape(p[i]);
+ url += i + '=' + window.encodeURIComponent(p[i]);
}
- var loc = obj.url_prefix('XUL_BROWSER?url=') + window.escape( obj.url_prefix(url) );
+ var loc = obj.url_prefix('XUL_BROWSER?url=') + window.encodeURIComponent( obj.url_prefix(url) );
obj.new_tab(
loc,
{},
obj.data.stash_retrieve();
var loc = obj.url_prefix('XUL_BROWSER?url=')
- + window.escape( obj.url_prefix('XUL_PATRON_EDIT') );
+ + window.encodeURIComponent( obj.url_prefix('XUL_PATRON_EDIT') );
obj.command_tab(
event,
loc,
['oncommand'],
function(event) {
obj.data.stash_retrieve();
- var loc = urls.XUL_BROWSER + '?url=' + window.escape(
+ var loc = urls.XUL_BROWSER + '?url=' + window.encodeURIComponent(
obj.url_prefix('XUL_HOLD_PULL_LIST')
);
obj.command_tab(event, loc, {'tab_name' : offlineStrings.getString('menu.cmd_browse_hold_pull_list.tab')} );
'cmd_local_admin' : [
['oncommand'],
function(event) {
- //obj.set_tab(obj.url_prefix('XUL_LOCAL_ADMIN')+'?ses='+window.escape(ses())+'&session='+window.escape(ses()),{},{});
- var loc = urls.XUL_BROWSER + '?url=' + window.escape(
- obj.url_prefix( 'XUL_LOCAL_ADMIN?ses='+window.escape(ses())+'&session='+window.escape(ses()) )
+ var loc = urls.XUL_BROWSER + '?url=' + window.encodeURIComponent(
+ obj.url_prefix( 'XUL_LOCAL_ADMIN?ses='+window.encodeURIComponent(ses())+'&session='+window.encodeURIComponent(ses()) )
);
obj.command_tab(
event,
'cmd_local_admin_reports' : [
['oncommand'],
function(event) {
- var loc = urls.XUL_BROWSER + '?url=' + window.escape( obj.url_prefix('XUL_REPORTS?ses=') + ses());
+ var loc = urls.XUL_BROWSER + '?url=' + window.encodeURIComponent( obj.url_prefix('XUL_REPORTS?ses=') + ses());
obj.command_tab(
event,
loc,
['oncommand'],
function(event) {
obj.data.stash_retrieve();
- obj.command_tab(event,obj.url_prefix('XUL_STAT_CAT_EDIT?ses=') + window.escape(ses()), {'tab_name' : offlineStrings.getString('menu.cmd_stat_cat_edit.tab')},{});
+ obj.command_tab(event,obj.url_prefix('XUL_STAT_CAT_EDIT?ses=') + window.encodeURIComponent(ses()), {'tab_name' : offlineStrings.getString('menu.cmd_stat_cat_edit.tab')},{});
}
],
'cmd_non_cat_type_edit' : [
['oncommand'],
function(event) {
obj.data.stash_retrieve();
- obj.command_tab(event,obj.url_prefix('XUL_NON_CAT_LABEL_EDIT?ses=') + window.escape(ses()), {'tab_name' : offlineStrings.getString('menu.cmd_non_cat_type_edit.tab')},{});
+ obj.command_tab(event,obj.url_prefix('XUL_NON_CAT_LABEL_EDIT?ses=') + window.encodeURIComponent(ses()), {'tab_name' : offlineStrings.getString('menu.cmd_non_cat_type_edit.tab')},{});
}
],
'cmd_copy_location_edit' : [
['oncommand'],
function(event) {
obj.data.stash_retrieve();
- obj.command_tab(event,obj.url_prefix('XUL_COPY_LOCATION_EDIT?ses=') + window.escape(ses()),{'tab_name' : offlineStrings.getString('menu.cmd_copy_location_edit.tab')},{});
+ obj.command_tab(event,obj.url_prefix('XUL_COPY_LOCATION_EDIT?ses=') + window.encodeURIComponent(ses()),{'tab_name' : offlineStrings.getString('menu.cmd_copy_location_edit.tab')},{});
}
],
'cmd_test' : [
['oncommand'],
function(event) {
obj.data.stash_retrieve();
- obj.command_tab(event,obj.url_prefix('TEST_HTML?ses=') + window.escape(ses()),{ 'browser' : true },{});
+ obj.command_tab(event,obj.url_prefix('TEST_HTML?ses=') + window.encodeURIComponent(ses()),{ 'browser' : true },{});
}
],
'cmd_test_xul' : [
['oncommand'],
function(event) {
obj.data.stash_retrieve();
- obj.command_tab(event,obj.url_prefix('TEST_XUL?ses=') + window.escape(ses()),{ 'browser' : false },{});
+ obj.command_tab(event,obj.url_prefix('TEST_XUL?ses=') + window.encodeURIComponent(ses()),{ 'browser' : false },{});
}
],
'cmd_console' : [
'cmd_public_opac' : [
['oncommand'],
function(event) {
- var loc = urls.XUL_BROWSER + '?url=' + window.escape(
+ var loc = urls.XUL_BROWSER + '?url=' + window.encodeURIComponent(
obj.url_prefix('remote')
);
obj.command_tab(
JSAN.use('OpenILS.data');
//var data = new OpenILS.data(); data.init({'via':'stash'});
//data.temp_yns_xml = xml; data.stash('temp_yns_xml');
- var url = urls.XUL_FANCY_PROMPT; // + '?xml_in_stash=temp_yns_xml' + '&title=' + window.escape(title);
+ var url = urls.XUL_FANCY_PROMPT;
if (typeof xulG != 'undefined') if (typeof xulG.url_prefix == 'function') url = xulG.url_prefix( url );
JSAN.use('util.window'); var win = new util.window();
var fancy_prompt_data = win.open(
JSAN.use('OpenILS.data');
//var data = new OpenILS.data(); data.init({'via':'stash'});
//data.temp_yns_xml = xml; data.stash('temp_yns_xml');
- var url = urls.XUL_FANCY_PROMPT; // + '?xml_in_stash=temp_yns_xml' + '&title=' + window.escape(title);
+ var url = urls.XUL_FANCY_PROMPT;
if (typeof xulG != 'undefined') if (typeof xulG.url_prefix == 'function') url = xulG.url_prefix( url );
JSAN.use('util.window'); var win = new util.window();
var fancy_prompt_data = win.open(
var col_ordinal = col.getAttribute('ordinal');
my_cols[ col_id ] = { 'hidden' : col_hidden, 'width' : col_width, 'ordinal' : col_ordinal };
}
- JSAN.use('util.file'); var file = new util.file('tree_columns_for_'+window.escape(id));
+ JSAN.use('util.file'); var file = new util.file('tree_columns_for_'+window.encodeURIComponent(id));
file.set_object(my_cols);
file.close();
alert(document.getElementById('offlineStrings').getString('list.columns_saved'));
var my_cols;
if (! obj.data.hash.aous) { obj.data.hash.aous = {}; }
if (! obj.data.hash.aous['gui.disable_local_save_columns']) {
- JSAN.use('util.file'); var file = new util.file('tree_columns_for_'+window.escape(id));
+ JSAN.use('util.file'); var file = new util.file('tree_columns_for_'+window.encodeURIComponent(id));
if (file._file.exists()) {
my_cols = file.get_object(); file.close();
}
if (obj.data.hash.aous['url.remote_column_settings'] && ! my_cols ) {
try {
var x = new XMLHttpRequest();
- var url = obj.data.hash.aous['url.remote_column_settings'] + '/tree_columns_for_' + window.escape(id);
+ var url = obj.data.hash.aous['url.remote_column_settings'] + '/tree_columns_for_' + window.encodeURIComponent(id);
x.open("GET", url, false);
x.send(null);
if (x.status == 200) {
var data = new OpenILS.data(); data.init({'via':'stash'});
var my_xulG = win.open(
url,
- //+ '?login_type=staff'
- //+ '&desc_brief=' + window.escape( text ? 'Session Expired' : 'Operator Change' )
- //+ '&desc_full=' + window.escape( text ? 'Please enter the credentials for a new login session.' : 'Please enter the credentials for the new login session. Note that the previous session is still active.'),
- //'simple_auth' + (new Date()).toString(),
offlineStrings.getString('network.new_session.authorize'),
'chrome,resizable,modal,width=700,height=500',
{
JSAN.use('util.window'); var win = new util.window();
var my_xulG = win.open(
urls.XUL_AUTH_SIMPLE,
- //+ '?login_type=temp'
- //+ '&desc_brief=' + window.escape('Permission Denied: ' + robj.ilsperm)
- //+ '&desc_full=' + window.escape('Another staff member with the above permission may authorize this specific action. Please notify your library administrator if you need this permission. If you feel you have received this exception in error, inform your friendly Evergreen developers of the above permission and this debug information: ' + name),
- //'simple_auth' + (new Date()).toString(),
offlineStrings.getFormattedString('network.permission.authorize'),
'chrome,resizable,modal,width=700,height=500',
{
JSAN.use('util.window'); var win = new util.window();
var fancy_prompt_data = win.open(
urls.XUL_FANCY_PROMPT,
- //+ '?xml_in_stash=temp_override_xml'
- //+ '&title=' + window.escape(override_params.title),
'fancy_prompt', 'chrome,resizable,modal,width=700,height=500',
{ 'xml' : xml, 'title' : override_params.title, 'sound' : 'bad', 'sound_object' : obj.sound }
);
<label value="&common.debug.label;" />
<textbox id="debug_tb" flex="1"/>
<button label="&common.debug.btn.execute;" oncommand="try { var dtb = document.getElementById('debug_tb'); alert( eval( dtb.value ) ); } catch(E) { alert(E); }; dtb.focus();"/>
- <button label="&common.debug.btn.inspect;" oncommand="try { var dtb = document.getElementById('debug_tb'); var dx = eval( dtb.value ); var ds = ''; for (var di in dx) { ds += di + '=' + dx[di] + '\r\n'; }; window.open('data:text/plain;charset=UTF-8,'+window.escape(ds),'debug_win','chrome,resizable,modal'); } catch(E) { alert(E); }; dtb.focus();"/>
+ <button label="&common.debug.btn.inspect;" oncommand="try { var dtb = document.getElementById('debug_tb'); var dx = eval( dtb.value ); var ds = ''; for (var di in dx) { ds += di + '=' + dx[di] + '\r\n'; }; window.open('data:text/plain;charset=UTF-8,'+window.encodeURIComponent(ds),'debug_win','chrome,resizable,modal'); } catch(E) { alert(E); }; dtb.focus();"/>
<button label="&common.debug.btn.js2JSON;" oncommand="try { var dtb = document.getElementById('debug_tb'); alert( js2JSON( eval( dtb.value ) ) ); } catch(E) { alert(E); }; dtb.focus();"/>
</hbox>
<keyset><key id="debug_box_key" keycode="VK_F7" modifiers="control,shift" oncommand="JSAN.use('OpenILS.data'); var data = new OpenILS.data(); data.init({'via':'stash'}); var dtb = document.getElementById('debug_tb'); var dx = document.getElementById('debug_box'); if(data.enable_debug || !dx.hidden) { dx.hidden = !dx.hidden; if(!dx.hidden) dtb.focus();}"/></keyset>
for (var i = 0; i < obj.sel_list.length; i++) {
var url = xulG.url_prefix('XUL_OFFLINE_MANAGE_XACTS_CGI?ses=')
- + window.escape(ses())
+ + window.encodeURIComponent(ses())
+ "&action=execute"
- + "&seskey=" + window.escape(obj.seslist[obj.sel_list[i]].key)
- + "&ws=" + window.escape(obj.data.ws_name);
+ + "&seskey=" + window.encodeURIComponent(obj.seslist[obj.sel_list[i]].key)
+ + "&ws=" + window.encodeURIComponent(obj.data.ws_name);
var x = new XMLHttpRequest();
x.open("GET",url,false);
x.send(null);
obj.data.stash_retrieve();
var url = xulG.url_prefix('XUL_OFFLINE_MANAGE_XACTS_CGI?ses=')
- + window.escape(ses())
+ + window.encodeURIComponent(ses())
+ "&action=status"
- + "&seskey=" + window.escape(obj.seslist[ obj.sel_list[0] ].key)
- + "&ws=" + window.escape(obj.data.ws_name)
+ + "&seskey=" + window.encodeURIComponent(obj.seslist[ obj.sel_list[0] ].key)
+ + "&ws=" + window.encodeURIComponent(obj.data.ws_name)
+ '&status_type=exceptions';
var x = new XMLHttpRequest();
x.open("GET",url,false);
x.setAttribute(
'src',
window.xulG.url_prefix('XUL_REMOTE_BROWSER')
- /*
- + '?url=' + window.escape(
- urls.XUL_OFFLINE_UPLOAD_XACTS
- + '?ses=' + window.escape(ses())
- + '&seskey=' + window.escape(seskey)
- + '&ws=' + window.escape(obj.data.ws_name)
- + '&delta=' + window.escape('0')
- + '&filename=' + window.escape( obj.transition_filename )
- )
- */
);
var newG = {
'url' : urls.XUL_OFFLINE_UPLOAD_XACTS,
obj.data.stash_retrieve();
var url = xulG.url_prefix('XUL_OFFLINE_MANAGE_XACTS_CGI?ses=')
- + window.escape(ses())
+ + window.encodeURIComponent(ses())
+ "&action=status"
- + "&seskey=" + window.escape(obj.seslist[obj.sel_list[0]].key)
- + "&ws=" + window.escape(obj.data.ws_name)
+ + "&seskey=" + window.encodeURIComponent(obj.seslist[obj.sel_list[0]].key)
+ + "&ws=" + window.encodeURIComponent(obj.data.ws_name)
+ "&status_type=scripts";
var x = new XMLHttpRequest();
x.open("GET",url,false);
obj.data.stash_retrieve();
var url = xulG.url_prefix('XUL_OFFLINE_MANAGE_XACTS_CGI?ses=')
- + window.escape(ses())
+ + window.encodeURIComponent(ses())
+ "&action=create"
- + "&desc=" + window.escape(desc)
- + "&ws=" + window.escape(obj.data.ws_name);
+ + "&desc=" + window.encodeURIComponent(desc)
+ + "&ws=" + window.encodeURIComponent(obj.data.ws_name);
var x = new XMLHttpRequest();
x.open("GET",url,false);
x.send(null);
obj.data.stash_retrieve();
var url = xulG.url_prefix('XUL_OFFLINE_MANAGE_XACTS_CGI?ses=')
- + window.escape(ses())
+ + window.encodeURIComponent(ses())
+ "&action=status"
- + "&org=" + window.escape(obj.data.list.au[0].ws_ou())
+ + "&org=" + window.encodeURIComponent(obj.data.list.au[0].ws_ou())
+ "&status_type=sessions";
var x = new XMLHttpRequest();
x.open("GET",url,false);
if (typeof window.xulG == 'object' && typeof window.xulG.new_tab == 'function') {
try {
var url = urls.XUL_COPY_STATUS;
- //+ '?barcodes=' + window.escape( js2JSON(barcodes) );
window.xulG.new_tab(
url, {}, { 'barcodes' : barcodes }
);
*/
var urls = this.xulG.urls || window.urls;
var loc = urls.XUL_BROWSER + '?url=' +
- window.escape(
+ window.encodeURIComponent(
this.xulG.url_prefix('EG_WEB_BASE/') +
'vandelay/vandelay?qtype=bib&qid=' + this.queue.id()
);
JSAN.use('util.window'); var win = new util.window();
var fancy_prompt_data = win.open(
urls.XUL_FANCY_PROMPT,
- //+ '?xml_in_stash=temp_transfer'
- //+ '&title=' + window.escape('Volume Transfer'),
'fancy_prompt', 'chrome,resizable,modal,width=500,height=300',
{
'xml' : xml,
JSAN.use('util.window'); var win = new util.window();
win.open(
urls.XUL_COPY_NOTES,
- //+ '?copy_id=' + window.escape(g.copies[0].id()),
$("catStrings").getString("staff.cat.copy_editor.copy_notes"),'chrome,resizable,modal',
{ 'copy_id' : g.copies[0].id() }
);
JSAN.use('util.window'); var win = new util.window();
var fancy_prompt_data = win.open(
urls.XUL_FANCY_PROMPT,
- //+ '?xml_in_stash=temp_merge_mid'
- //+ '&top_xml_in_stash=temp_merge_top'
- //+ '&title=' + window.escape('Record Purging'),
'fancy_prompt', 'chrome,resizable,modal,width=700,height=500',
{
'top_xml' : top_xml, 'xml' : xml, 'title' : $("catStrings").getString('staff.cat.record_buckets.delete_records.fancy_prompt_title')
function preview_xul_190(html) {
JSAN.use('util.window'); var win = new util.window();
var loc = ( urls.XUL_REMOTE_BROWSER );
- //+ '?url=' + window.escape('about:blank') + '&show_print_button=1&alternate_print=1&no_xulG=1&title=' + window.escape('Spine Labels');
var w = win.open( loc, 'spine_preview', 'chrome,resizable,width=750,height=550');
w.xulG = {
'url' : 'about:blank',
JSAN.use('util.window'); var win = new util.window();
var fancy_prompt_data = win.open(
urls.XUL_FANCY_PROMPT,
- //+ '?xml_in_stash=temp_transfer'
- //+ '&title=' + window.escape('Item Transfer'),
'fancy_prompt', 'chrome,resizable,modal,width=500,height=300',
{ 'xml' : xml, 'title' : $("catStrings").getString('staff.cat.util.transfer_copies.window_title') }
);
try {
xulG.resultant_brsrc = brsrc_list.map(function(o) { return o[0]; });
xulG.new_tab(
- urls.XUL_BROWSER + "?url=" + window.escape(
+ urls.XUL_BROWSER + "?url=" + window.encodeURIComponent(
xulG.url_prefix("BOOKING_RESOURCE")
), {
"tab_name": offlineStrings.getString(
JSAN.use('util.window'); var win = new util.window();
var fancy_prompt_data = win.open(
urls.XUL_FANCY_PROMPT,
- // + '?xml_in_stash=temp_merge_mid'
- // + '&top_xml_in_stash=temp_merge_top'
- // + '&title=' + window.escape('Record Overlay'),
'fancy_prompt', 'chrome,resizable,modal,width=700,height=500',
{ 'top_xml' : top_xml, 'xml' : xml, 'title' : $("catStrings").getString('staff.cat.z3950.confirm_overlay.title') }
);
var win = new util.window();
var w = win.open(
urls.XUL_PATRON_BILL_WIZARD,
- //+ '?patron_id=' + window.escape(g.patron_id)
- //+ '&xact_id=' + window.escape( g.circ_id ),
'billwizard',
'chrome,resizable,modal',
{ 'patron_id' : g.patron_id, 'xact_id' : g.circ_id }
JSAN.use('util.window'); var win = new util.window();
var fancy_prompt_data = win.open(
urls.XUL_FANCY_PROMPT,
- //+ '?xml_in_stash=temp_transfer'
- //+ '&title=' + window.escape('Volume Transfer'),
'fancy_prompt', 'chrome,resizable,modal,width=500,height=300',
{ 'xml' : xml, 'title' : document.getElementById('circStrings').getString('staff.circ.copy_status.transfer_volume.title') }
);
if (r = openils.Util.readResponse(r)) {
if (r.purchase_order()) {
var url = urls.XUL_BROWSER + "?url=" +
- window.escape(
+ window.encodeURIComponent(
xulG.url_prefix('EG_ACQ_PO_VIEW/')
+ r.purchase_order() + "/" + r.id()
);
if (typeof window.xulG == 'object' && typeof window.xulG.set_tab == 'function') {
window.xulG.set_tab( loc, {}, { 'barcode' : barcode } );
} else {
- location.href = loc + '?barcode=' + window.escape(barcode);
+ location.href = loc + '?barcode=' + window.encodeURIComponent(barcode);
}
} catch(E) {
g.error.standard_unexpected_error_alert($("patronStrings").getString('staff.patron.barcode_entry.patron_display_error'),E);
function spawn_perm_editor(id) {
try {
- var loc = urls.XUL_USER_PERM_EDITOR + '?ses=' + window.escape(ses()) + '&usr=' + id;
+ var loc = urls.XUL_USER_PERM_EDITOR + '?ses=' + window.encodeURIComponent(ses()) + '&usr=' + id;
if (typeof window.xulG == 'object' && typeof window.xulG.set_tab == 'function') {
window.xulG.set_tab( loc, {}, {} );
} else {
obj.reset_nav_styling('cmd_patron_items');
var frame = obj.right_deck.set_iframe(
urls.XUL_PATRON_ITEMS,
- //+ '?patron_id=' + window.escape( obj.patron.id() ),
{},
{
'patron_id' : obj.patron.id(),
function spawn_editor(p) {
var url = urls.XUL_PATRON_EDIT;
- //var param_count = 0;
- //for (var i in p) {
- // if (param_count++ == 0) url += '?'; else url += '&';
- // url += i + '=' + window.escape(p[i]);
- //}
- var loc = xulG.url_prefix('XUL_REMOTE_BROWSER'); // + '?url=' + window.escape( url );
+ var loc = xulG.url_prefix('XUL_REMOTE_BROWSER');
xulG.new_tab(
loc,
{},
obj.right_deck.set_iframe(
urls.XUL_REMOTE_BROWSER + '?patron_edit=1',
- //+ '?url=' + window.escape(
- // urls.XUL_PATRON_EDIT
- // + '?ses=' + window.escape( ses() )
- // + '&usr=' + window.escape( obj.patron.id() )
- //),
{}, {
'url' : urls.XUL_PATRON_EDIT,
'show_print_button' : true,
obj.reset_nav_styling('cmd_patron_holds');
obj.right_deck.set_iframe(
urls.XUL_PATRON_HOLDS,
- //+ '?patron_id=' + window.escape( obj.patron.id() ),
{},
{
'display_window' : window,
obj.reset_nav_styling('cmd_patron_bills');
var f = obj.right_deck.set_iframe(
urls.XUL_PATRON_BILLS,
- //+ '?patron_id=' + window.escape( obj.patron.id() ),
{},
{
'display_window' : window,
'cmd_perm_editor' : [
['command'],
function() {
- var frame = obj.right_deck.reset_iframe( urls.XUL_USER_PERM_EDITOR + '?ses=' + window.escape(ses()) + '&usr=' + obj.patron.id(), {}, {});
+ var frame = obj.right_deck.reset_iframe( urls.XUL_USER_PERM_EDITOR + '?ses=' + window.encodeURIComponent(ses()) + '&usr=' + obj.patron.id(), {}, {});
}
],
'cmd_standing_penalties' : [
} else {
error = js2JSON(E).substr(0,100);
}
- xulG.set_tab(urls.XUL_PATRON_BARCODE_ENTRY + '?error=' + window.escape(error),{},{});
+ xulG.set_tab(urls.XUL_PATRON_BARCODE_ENTRY + '?error=' + window.encodeURIComponent(error),{},{});
} catch(F) {
alert(F);
}
setTimeout(
function() {
var frame = obj.left_deck.set_iframe(
- urls.XUL_PATRON_SUMMARY + '?id=' + window.escape(list[0]),
+ urls.XUL_PATRON_SUMMARY + '?id=' + window.encodeURIComponent(list[0]),
{},
{
//'id' : list[0],
content_params[k] = xulG[k];
});
- var loc = urls.XUL_BROWSER + "?url=" + window.escape(
+ var loc = urls.XUL_BROWSER + "?url=" + window.encodeURIComponent(
xulG.url_prefix("ALT_HOLDS_PRINT")
);
xulG.new_tab(
content_params[k] = xulG[k];
});
- var loc = urls.XUL_BROWSER + "?url=" + window.escape(
+ var loc = urls.XUL_BROWSER + "?url=" + window.encodeURIComponent(
xulG.url_prefix("/eg/circ/hold_pull_list").replace("http:","https:")
);
xulG.new_tab(
JSAN.use('util.window'); var win = new util.window();
var fancy_prompt_data = win.open(
urls.XUL_FANCY_PROMPT,
- //+ '?xml_in_stash=temp_mid'
- //+ '&bottom_xml_in_stash=temp_bot'
- //+ '&title=' + window.escape('Choose a Pick Up Library'),
'fancy_prompt', 'chrome,resizable,modal',
{ 'xml' : xml, 'bottom_xml' : bot_xml, 'title' : $("patronStrings").getString('staff.patron.holds.holds_edit_selection_depth.choose_library') }
);
JSAN.use('util.window'); var win = new util.window();
var fancy_prompt_data = win.open(
urls.XUL_FANCY_PROMPT,
- //+ '?xml_in_stash=temp_mid'
- //+ '&bottom_xml_in_stash=temp_bot'
- //+ '&title=' + window.escape('Choose a Pick Up Library'),
'fancy_prompt', 'chrome,resizable,modal',
{ 'xml' : xml, 'bottom_xml' : bot_xml, 'title' : $("patronStrings").getString('staff.patron.holds.holds_edit_pickup_lib.choose_lib') }
);
JSAN.use('util.window'); var win = new util.window();
var fancy_prompt_data = win.open(
urls.XUL_FANCY_PROMPT,
- //+ '?xml_in_stash=temp_mid'
- //+ '&bottom_xml_in_stash=temp_bot'
- //+ '&title=' + window.escape('Choose a Hold Notification Phone Number')
- //+ '&focus=phone',
'fancy_prompt', 'chrome,resizable,modal',
{ 'xml' : xml, 'bottom_xml' : bot_xml, 'title' : $("patronStrings").getString('staff.patron.holds.holds_edit_phone_notify.choose_phone_number'), 'focus' : 'phone' }
);
JSAN.use('util.window'); var win = new util.window();
var fancy_prompt_data = win.open(
urls.XUL_FANCY_PROMPT,
- //+ '?xml_in_stash=temp_mid'
- //+ '&bottom_xml_in_stash=temp_bot'
- //+ '&title=' + window.escape('Choose a Hold Notification Phone Number')
- //+ '&focus=phone',
'fancy_prompt', 'chrome,resizable,modal',
{ 'xml' : xml, 'bottom_xml' : bot_xml, 'title' : $("patronStrings").getString('staff.patron.holds.holds_edit_sms_notify.choose_phone_number'), 'focus' : 'phone' }
);
JSAN.use('util.window'); var win = new util.window();
var fancy_prompt_data = win.open(
urls.XUL_FANCY_PROMPT,
- //+ '?xml_in_stash=temp_mid'
- //+ '&bottom_xml_in_stash=temp_bot'
- //+ '&title=' + window.escape('Choose a Pick Up Library'),
'fancy_prompt', 'chrome,resizable,modal',
{ 'xml' : xml, 'bottom_xml' : bot_xml, 'title' : $("patronStrings").getString('staff.patron.holds.holds_edit_sms_carrier.choose_carrier') }
);
JSAN.use('util.window'); var win = new util.window();
var fancy_prompt_data = win.open(
urls.XUL_FANCY_PROMPT,
- //+ '?xml_in_stash=temp_mid'
- //+ '&bottom_xml_in_stash=temp_bot'
- //+ '&title=' + window.escape('Set Email Notification for Holds'),
'fancy_prompt', 'chrome,resizable,modal',
{ 'xml' : xml, 'bottom_xml' : bot_xml, 'title' : $("patronStrings").getString('staff.patron.holds.holds_edit_email_notify.set_notifs') }
);
try {
for (var i = 0; i < g.sel_list.length; i++) {
var loc = xulG.url_prefix('XUL_REMOTE_BROWSER');
- //+ '?url=' + window.escape( urls.XUL_PATRON_EDIT + '?ses='
- //+ window.escape( ses() ) + '&clone=' + g.sel_list[i] );
if (typeof window.xulG == 'object' && typeof window.xulG.new_tab == 'function') xulG.new_tab(
loc,
{},
{
- 'url' : urls.XUL_PATRON_EDIT, // + '?ses=' + window.escape(ses()) + '&clone=' + g.sel_list[i],
+ 'url' : urls.XUL_PATRON_EDIT,
'show_print_button' : true ,
'tab_name' : $("patronStrings").getString('staff.patron.info_group.clone_patron.register_clone.tab_name'),
'passthru_content_params' : {
for (var i in p) {
passthru[i] = p[i];
}
- var loc = xulG.url_prefix('XUL_REMOTE_BROWSER'); // + '?url=' + window.escape( url );
+ var loc = xulG.url_prefix('XUL_REMOTE_BROWSER');
if (typeof window.xulG == 'object' && typeof window.xulG.new_tab == 'function') xulG.new_tab(
loc,
{},
JSAN.use('util.window'); var win = new util.window();
var fancy_prompt_data = win.open(
urls.XUL_FANCY_PROMPT,
- //+ '?xml_in_stash=temp_mid'
- //+ '&top_xml_in_stash=temp_top'
- //+ '&bottom_xml_in_stash=temp_bot'
- //+ '&title=' + window.escape('Move Patron into a Usergroup'),
'fancy_prompt', 'chrome,resizable,modal,width=700,height=500',
{ 'xml' : xml, 'top_xml' : top_xml, 'bottom_xml' : bot_xml, 'title' : $("patronStrings").getString('staff.patron.info_group.link_patron.move_patron_to_usergroup')}
);
var circ_id = retrieve_ids[i].circ_id;
var my_xulG = win.open(
urls.XUL_PATRON_BILL_WIZARD,
- //+ '?patron_id=' + window.escape(obj.patron_id)
- //+ '&xact_id=' + window.escape( circ_id ),
'billwizard',
'chrome,resizable,modal',
{ 'patron_id' : obj.patron_id, 'xact_id' : circ_id }
JSAN.use('util.window'); var win = new util.window();
var fancy_prompt_data = win.open(
urls.XUL_FANCY_PROMPT,
- //+ '?xml_in_stash=temp_transfer'
- //+ '&title=' + window.escape('Volume Transfer'),
'fancy_prompt', 'chrome,resizable,modal,width=500,height=300',
{
'xml' : xml,
JSAN.use('util.window'); var win = new util.window();
var fancy_prompt_data = win.open(
urls.XUL_FANCY_PROMPT,
- //+ '?xml_in_stash=temp_transfer'
- //+ '&title=' + window.escape('Volume Transfer'),
'fancy_prompt', 'chrome,resizable,modal,width=500,height=300',
{
'xml' : xml,
JSAN.use('util.window'); var win = new util.window();
win.open(
urls.XUL_SERIAL_NOTES,
- //+ '?copy_id=' + window.escape(obj.sdists[0].id()),
$('serialStrings').getString('staff.serial.sdist_editor.notes'),'chrome,resizable,modal',
{ 'object_id' : obj.sdists[0].id(), 'function_type' : 'SDISTN', 'object_type' : 'distribution', 'constructor' : sdistn }
);
JSAN.use('util.window'); var win = new util.window();
win.open(
urls.XUL_SERIAL_NOTES,
- //+ '?copy_id=' + window.escape(obj.sitems[0].id()),
'Item Notes','chrome,resizable,modal',
{ 'object_id' : obj.sitems[0].id(), 'function_type' : 'SIN', 'object_type' : 'item', 'constructor' : sin }
);