var pcrud, cgi, issuance_id;
var sitem_cache = {};
+var context_url_param;
function load_sitem_grid() {
sitem_grid.overrideEditWidgets.status = status_selector;
link.onclick = function() {
location.href = oilsBasePath +
"/serial/subscription?id=" +
- r.subscription() + "&tab=issuances";
+ r.subscription() + "&tab=issuances" +
+ context_url_param;
}
link.innerHTML = r.label();
prepare_create_dialog(r.subscription());
issuance_id = cgi.param("issuance");
load_siss_display();
load_sitem_grid();
+
+ var context = cgi.param('context');
+ if (context) {
+ context_url_param = '&context=' + context;
+ } else {
+ context_url_param = '';
+ }
}
);
var dist_id;
var rlu_editor;
var cgi;
+var context_url_param;
function format_routing_label(routing_label) {
return routing_label ? routing_label : "[None]";
link.onclick = function() {
location.href = oilsBasePath +
"/serial/subscription?id=" +
- r.subscription() + "&tab=distributions";
+ r.subscription() + "&tab=distributions" +
+ context_url_param;
}
link.innerHTML = r.label();
load_sdist_org_unit_display(r);
dist_id = cgi.param("distribution");
load_sdist_display();
load_sstr_grid();
+
+ var context = cgi.param('context');
+ if (context) {
+ context_url_param = '&context=' + context;
+ } else {
+ context_url_param = '';
+ }
}
);
var cgi;
var sub;
var sub_id;
+var context_url_param;
function node_by_name(name, ctx) {
return dojo.query("[name='" + name + "']", ctx)[0];
if (!blob.id) return "";
return "<a href='" +
oilsBasePath + "/serial/list_item?issuance=" + blob.id +
- "'>" + (blob.label ? blob.label : "[None]") + "</a>"; /* XXX i18n */
+ context_url_param + "'>" + (blob.label ? blob.label : "[None]") +
+ "</a>"; /* XXX i18n */
}
function format_sdist_label(blob) {
if (!blob.id) return "";
var link = "<a href='" +
oilsBasePath + "/serial/list_stream?distribution=" + blob.id +
- "'>" + (blob.label ? blob.label : "[None]") + "</a>"; /* XXX i18n */
+ context_url_param + "'>" + (blob.label ? blob.label : "[None]") +
+ "</a>"; /* XXX i18n */
var sstr_list = pcrud.search(
"sstr",{"distribution":blob.id},{"id_list":true}
owning_lib = cgi.param("owning_lib");
record_entry = cgi.param("record_entry");
+ if (context) {
+ context_url_param = '&context=' + context;
+ } else {
+ context_url_param = '';
+ }
+
if (context != 'scv') {
load_sub_grid(
sub_id,
ssub_grid.showCreateDialog();
}
+ if (cgi.param("tab") in tab_dispatch) {
+ tab_container.selectChild(tab_dispatch[cgi.param("tab")]);
+ }
}
}
);