[Bug 14962] Temp Shelving Location / On Display Module
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14962 --- Comment #617 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- (In reply to Lisette Scheer from comment #616)
Pedro, Thanks for the thorough list. Can you also share the module specific issues?
Hi Lisette, Here are the module-specific issues left out of the FQA comment (numbering continues from it). I have not confirmed any of these myself: 8) Barcodes typed as integers In api/v1/swagger/paths/display_items.yaml, the batch add and batch remove request bodies declare 'barcodes' as an array of integers. A barcode with letters (e.g. ABC123) fails validation with a 400, so it can't be added to or removed from a display through these endpoints. 9) Single add returns 201 without saving Koha::Display::Item->store returns early without storing when the display or item is missing, there is no date_added, date_remove is before date_added, or the item is already on an active display with a later date. Koha::REST::V1::Display::Items->add ignores that return value and still renders a 201 with the unsaved object and a Location header, so the API reports success but no row exists. 10) 'Checked out from' shows the display's library In svc/checkouts, with UseDisplayModule on, effective_branchname is COALESCE(display home branch, issues branch) and is returned as 'branchname', which the checkouts table shows as 'Checked out from'. For an item on a display, the table names the display's home library instead of the library where it was actually checked out. 11) 'Add to display' dropdown on the staff record detail page In catalogue/detail.tt, updateDisplayDropdown: - with no displays, dropdown.innerHTML('...') is called as a function, which throws a TypeError, so the "No active displays" message never shows - the loop assigns innerHTML on each iteration, so only the last display is listed - the links use inline onclick handlers - the list comes from fetch("/api/v1/displays") without _per_page, so only the first page of displays (20 by default) is included 12) 'undefined' button in the displays table DisplaysResource.vue passes "show" in the "-1" actions for staff without edit or delete permission. The "show" branch this bug adds to KohaTable.vue pushes a raw HTML string, but the actions are then rendered as objects (x.action_name, x.icon, x.text), so view-only staff get a button reading 'undefined' instead of 'Show'. 13) Public endpoints return hidden items Koha::REST::V1::Display::Items->list_public and ->get_public only filter on the display being enabled and on dates. Items hidden by OpacHiddenItems, or on suppressed records, are still returned by the public API. list_public also builds a paginated $c->objects->search(...) but renders the full unpaginated set. 14) Display delete logged as REMOVE_ITEM Koha::Display->delete logs logaction("DISPLAYS", "REMOVE_ITEM", ...), the same action code Koha::Display::Item->delete uses when removing an item, so deleting a whole display can't be told apart from removing one item in the action logs. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org