Koha/koha-tmpl/intranet-tmpl/lib
Nick Clemens 7bbf4f7b5f 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@bedfordtx.gov>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-11-02 11:03:09 +01:00
..
bootstrap Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
codemirror Bug 24193: Add CodeMirror linting of JavaScript, CSS, HTML, and YAML 2020-03-02 10:44:14 +00:00
d3c3 Bug 17282: Ability to create charts for SQL reports 2018-10-01 13:56:35 +00:00
datatables Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
font-awesome Bug 18810: Update Font Awesome to 4.7.0 2017-09-19 09:22:45 -03:00
greybox Bug 12101 - Move Greybox library outside of language-specific directory 2014-04-25 15:14:03 +00:00
jquery Bug 20501: Don't cut strings when unhighlighting in intranet search results 2020-04-22 09:31:17 +01:00
js-cookie Bug 23944: Phase out use of jquery.cookie.js in favor of js.cookie.js 2020-01-29 09:08:30 +00:00
jsdiff Bug 11876 [Follow-up] Add a diff view to staged MARC Records 2014-10-31 14:25:11 -03:00
keyboard Bug 17178: (RM follow-up) Use latest version of library 2019-06-28 16:35:18 +01:00
koha/cateditor Bug 17515: Order Z3950 server by rank and preserve ordering 2020-11-02 11:03:09 +01:00
leaflet Bug 18066: Add the leaflet library 2017-03-23 00:10:46 +00:00
linters Bug 24193: Add CodeMirror linting of JavaScript, CSS, HTML, and YAML 2020-03-02 10:44:14 +00:00
moment Bug 24455: Add moment-timezone library in staff 2020-03-25 13:54:16 +00:00
select2 Bug 25727: Upgrade the Select2 JS lib to version 4 2020-08-24 11:19:03 +02:00
shortcut Bug 11035: (follow-up) move shortcut.js 2013-12-03 15:35:15 +00:00
tiny_mce Bug 22661: TinyMCE/WYSIWYG editor doesn't translate 2019-11-03 07:39:54 +00:00
yui Bug 23259: Remove reset-fonts-grids.css 2019-07-15 11:28:07 +01:00
filesaver.js Bug 11559: New libraries for Rancor 2015-10-27 12:16:05 -03:00
hc-sticky.js Bug 21751: Replace fixFloat with HC-sticky to fix Chrome display 2019-02-04 14:13:35 +00:00
require.js Bug 11559: New libraries for Rancor 2015-10-27 12:16:05 -03:00