The problem that appears most often with the Koha Offline Circulation Plugin is that the libraries enter the wrong branchcode into the configuration. The plugin will send those entries to Koha and they are added to the pending_offline_operations table, but can't be seen in the GUI. It would be nice if the tool showed an error message instead as the only way to fix those entries is with SQL.
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!