Summary: | Koha Offline Circulation Firefox plugin sends entries with wrong branchcode without error | ||
---|---|---|---|
Product: | Koha | Reporter: | Katrin Fischer <katrin.fischer> |
Component: | Circulation | Assignee: | Bugs List <koha-bugs> |
Status: | CLOSED FIXED | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | gmcharlt, kyle.m.hall, matthias.meusburger |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Bug Depends on: | 16497, 19752 | ||
Bug Blocks: |
Description
Katrin Fischer
2017-11-24 08:41:42 UTC
That would need some work in Koha. Either by having a REST api that would allow the KOCT plugin to check if the branchcode is valid when saving the extension preferences. Or by modifying the *OfflineOperation functions in C4/Circulation.pm to return an error when the branchcode is invalid. By the way, another enhancement would be to return appropriate http error codes (like 401 when the authentication fails) because currently Koha always returns 200.
> Either by having a REST api that would allow the KOCT plugin to check if the
> branchcode is valid when saving the extension preferences.
Or better: by having a REST api that would allow to retrieve branches, so the extension can have them in a dropdown list.
Both sound good to me - error codes might be the easier to do for now. We had at least 3 libraries running into this now. The KOCT firefox plugin will add a dropdown list with valid branches and have better configuration errors handling when the related bugs will be available in Koha (16497 and 19752) yay! Before Bug 16497 is pushed, koct can use this koha api plugin: https://git.biblibre.com/biblibre/koha-plugin-libraries-api to retrieve libraries in a dropdown list, starting from koct 4.0.18 This is fixed with current versions of Koha and the KOCT Firefox plugin. Once the URL and login are tested, there is now a nice pull down with the available branches from the connected installation. Thx Matts! |