[Koha-bugs] [Bug 31742] New: Highlight logged-in library holdings on add/edit items screen (additem.pl)
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Oct 12 16:51:39 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31742
Bug ID: 31742
Summary: Highlight logged-in library holdings on add/edit items
screen (additem.pl)
Change sponsored?: ---
Product: Koha
Version: 21.11
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Cataloging
Assignee: koha-bugs at lists.koha-community.org
Reporter: jrobb at sekls.org
QA Contact: testopia at bugs.koha-community.org
CC: m.de.rooy at rijksmuseum.nl
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>');
}
});
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list