It would be helpful in a consortia setting where many different libraries are sharing a single record to make items owned by the logged-in library stand out in the table at additem.pl. Highlighting an item's home library if it matches logged-in library is an easy visual indicator. I wrote some JS for this using the currentlibrary class added with bug 10902: var loggedBranch = $("#logged-in-info-full .logged-in-branch-name").text(); var colIndex = $('#cat_additem th:contains("Home library")').index() + 1; $('#cat_additem tr td:nth-child(' + colIndex + ')').each(function () { if (this.textContent == loggedBranch) { $(this).wrapInner('<span class="currentlibrary"></span>'); } });
I like the idea, this would be similar to how we highlight users of the logged-in library in patron search now.
> th:contains("Home library") One must adapt this for translated templates right ? One may use data-colname="homebranch"