openils.Util.show(nodeByName('queue', row), 'inline');
var link = nodeByName("queue_link", row);
link.onclick = function() {
+ var url = oilsBasePath + '/vandelay/vandelay?qtype=bib&qid=' + qrec.queue()
// open a new tab to the vandelay queue for this record
- openils.XUL.newTabEasy(
- oilsBasePath + '/vandelay/vandelay?qtype=bib&qid=' + qrec.queue()
- );
+ if (window.IAMBROWSER) {
+ xulG.relay_url(url);
+ } else {
+ openils.XUL.newTabEasy(url);
+ }
}
}
}
openils.Util.show(nodeByName("invoices_span", row), "inline");
var link = nodeByName("invoices_link", row);
link.onclick = function() {
- openils.XUL.newTabEasy(
- oilsBasePath + "/acq/search/unified?so=" +
- base64Encode({"jub":[{"id": li.id()}]}) + "&rt=invoice"
- );
+ var url = oilsBasePath + "/acq/search/unified?so=" +
+ base64Encode({"jub":[{"id": li.id()}]}) + "&rt=invoice"
+ if (window.IAMBROWSER) {
+ xulG.relay_url(url);
+ } else {
+ openils.XUL.newTabEasy(url);
+ }
return false;
};
}
var acq_path = '/eg/acq/' +
$routeParams.noun + '/' + $routeParams.verb +
- ((typeof $routeParams.record != 'undefined') ? '/' + $routeParams.record : '')
+ ((typeof $routeParams.record != 'undefined') ? '/' + $routeParams.record : '') +
location.search;
$scope.min_height = 2000; // give lots of space to start