https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41111

Pedro Amorim <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #188520|0                           |1
        is obsolete|                            |

--- Comment #3 from Pedro Amorim <[email protected]> ---
Created attachment 188521
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188521&action=edit
Bug 41111: Add an yellow state to ILLAutoBackendPriority

Originally, AutoILLBackendPriority only considered 2 states: green or red. This
patch introduces a  yellow state.
Yellow means the Staff UI can pick that backend, but Koha will only suggest
that as the goto backend if no other 'green' backends exist.
If both green and yellow backends are returned, Koha will suggest the top green
in priority.
OPAC will never consider 'yellow' backends. Functionality there stays the same:
Pick first 'green' backend in priority or default to Standard.

Test plan:
1) Enable ILLModule
2) Install this dummy backend plugin designed for testing purposes only:
https://github.com/openfifth/koha-ill-backend-plugin/releases/tag/v2.0.7
3) Enable AutoILLBackendPriority by ticking "PluginBackend"
4) Create a new ILL request, visit:
<staff_url>/cgi-bin/koha/ill/ill-requests.pl?method=create&backend=Standard
5) If you put 'red' as title, the backend will return unavailable. If you put
'green' on title the backend will return available. If you put 'yellow' on the
backend it'll return the new 'yellow' stage. If title doesnt match that it'll
return one of the 3 at random.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to