[Koha-bugs] [Bug 17515] Advanced Editor - Rancor - Z39 sources not sorted properly
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Oct 27 20:26:06 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17515
ByWater Sandboxes <bws.sandboxes at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #112585|0 |1
is obsolete| |
--- Comment #4 from ByWater Sandboxes <bws.sandboxes at gmail.com> ---
Created attachment 112592
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112592&action=edit
Bug 17515: Order Z3950 server by rank and preserve ordering
Previously we put all the servers into an object with keys of the server id
This patch converts it to an array of objects to preserve order, and adjusts
code to use the array index
where necessary and store the server id within the array
To test:
1 - Add some new Z3950 servers, they don't need to be valid
FIRST
SECOND
THIRD
FOURTH
2 - Adjust the ranking so FOURTH:1 THIRD:2 SECOND:3 FIRST:4
3 - Enable and launch the advanced editor
4 - Click 'Advanced' under search on the left
5 - Note the list displays in the order you entered the servers
6 - Apply patch
7 - Reload
8 - Order is correct
9 - With valid servers, confirm that searching still works and servers can be
checked or unchecked to include/remove from results
https://bugs.koha-community.org/show_bug.cgi?id=17515
Signed-off-by: B Johnson <barbara.johnson at bedfordtx.gov>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list