}
nodeByName("worksheet_link", row).href =
- "/eg/acq/lineitem/worksheet/" + li.id();
+ oilsBasePath + "/acq/lineitem/worksheet/" + li.id();
dojo.query('[attr=title]', row)[0].onclick = function() {self.drawInfo(li.id())};
dojo.query('[name=copieslink]', row)[0].onclick = function() {self.drawCopies(li.id())};
if (!this._isRelatedViewer) {
nodeByName("rel_link", dojo.byId("acq-lit-info-related")).href =
- "/eg/acq/lineitem/related/" + li.id();
+ oilsBasePath + "/acq/lineitem/related/" + li.id();
}
if(li.eg_bib_id()) {
var resp = openils.Util.readResponse(r);
self._updateProgressNumbers(resp);
if(resp.complete)
- location.href = oilsBasePath + '/eg/acq/po/view/' + resp.purchase_order.id();
+ location.href = oilsBasePath + '/acq/po/view/' + resp.purchase_order.id();
}
}
);
function(id) {
self._updateLiList(id, selected, 0,
function(){
- location.href = oilsBasePath + '/eg/acq/picklist/view/' + id;
+ location.href = oilsBasePath + '/acq/picklist/view/' + id;
});
}
);
// update lineitems to use an existing picklist
self._updateLiList(values.existing_pl, selected, 0,
function(){
- location.href = oilsBasePath + '/eg/acq/picklist/view/' + values.existing_pl;
+ location.href = oilsBasePath + '/acq/picklist/view/' + values.existing_pl;
});
}
}
if(resp.picklist) {
openils.Util.show('acq-pl-upload-complete-pl');
dojo.byId('acq-pl-upload-complete-pl').setAttribute(
- 'href', oilsBasePath + '/eg/acq/picklist/view/' + resp.picklist.id());
+ 'href', oilsBasePath + '/acq/picklist/view/' + resp.picklist.id());
}
if(resp.purchase_order) {
openils.Util.show('acq-pl-upload-complete-po');
dojo.byId('acq-pl-upload-complete-po').setAttribute(
- 'href', oilsBasePath + '/eg/acq/po/view/' + resp.purchase_order.id());
+ 'href', oilsBasePath + '/acq/po/view/' + resp.purchase_order.id());
}
} else {
function format_po_link(value) {
if (value) {
// FIXME -- how do you escape the value from .name() ?
- return '<a href="/eg/acq/po/view/' + value + '">' + po_map[ value ].name() + '</a>';
+ return '<a href="' + oilsBasePath + '/acq/po/view/' + value + '">' + po_map[ value ].name() + '</a>';
}
}
function makeProviderLink(node, provider) {
return dojo.create(
"a", {
- "href": "/eg/conify/global/acq/provider/" + provider.id(),
+ "href": oilsBasePath + "/conify/global/acq/provider/" + provider.id(),
"innerHTML": provider.name() + " (" + provider.code() + ")",
},
node,
oncomplete : function() {
progressDialog.hide();
if (list) {
- location.href = oilsBasePath + '/eg/acq/po/search/' +
+ location.href = oilsBasePath + '/acq/po/search/' +
list.join(",");
}
}