[Bug 31742] New: Highlight logged-in library holdings on add/edit items screen (additem.pl)
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@lists.koha-community.org Reporter: jrobb@sekls.org QA Contact: testopia@bugs.koha-community.org CC: m.de.rooy@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.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31742 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucas@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31742 --- Comment #1 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I like the idea, this would be similar to how we highlight users of the logged-in library in patron search now. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31742 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|21.11 |master -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31742 Lauren Denny <lauren_denny@sil.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lauren_denny@sil.org -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31742 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fridolin.somers@biblibre.co | |m --- Comment #2 from Fridolin Somers <fridolin.somers@biblibre.com> ---
th:contains("Home library") One must adapt this for translated templates right ?
One may use data-colname="homebranch" -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31742 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=34940 -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org