// This is a two parter.
// #1- Pages tool. You need to create a page with the following code:
Biblio ID:Return
Barcodes:
(Don't forget to delete empty bib records as needed!)
// #2 IntranetUserJS. Add this to your IntranetUserJS, replacing "{{page id here}}" with your page id:
$(document).ready(function () {
if (location.href.indexOf("moveitem.pl") != -1) {
console.log("batch attach");
let tmp = document.getElementsByClassName("action")[0].innerHTML;
console.log(tmp);
let bib = location.href.split("biblionumber=")[1];
let batch = " (Batch attach) ";
document.getElementsByClassName("action")[0].innerHTML = tmp + batch;
console.log(tmp);
}
});