@@ -, +, @@ throughout multiple searches 1. Set the preference EnableAdvancedCatalogingEditor to enable 2. Administration - Z39.50 Servers, for NATIONAL LIBRARY OF FRANCE uncheck "Preselected" 3. To be sure you don't have confusing saved preferences, open Firefox's Developer Tools, in the Storage tab open Local Storage and select your URL 4. In the row for cateditor_preferences_{your Koha user id}, if there are any values for selected_search_targets, delete them so you have "selected_search_targets":{} 5. Open the advanced editor, and click "Advanced »" in the search box 6. You should have Local catalog unchecked, LIBRARY OF CONGRESS checked because it is preselected, and NATIONAL LIBRARY OF FRANCE unchecked 7. Toggle each checkbox so Local catalog and France are selected, and LoC is unselected. 8. In a new broser tab, open the advanced editor, and click "Advanced »" 9. You will see Local catalog unchecked, LoC checked, and France unchecked. That's the bug. is not selected. LoC unchecked, That's the correct behavior. --- koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc @@ -445,7 +445,7 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr function showAdvancedSearch() { $('#advanced-search-servers').empty(); $.each( z3950Servers, function( index, server ) { - $('#advanced-search-servers').append( '
  • ' ); + $('#advanced-search-servers').append( '
  • ' ); } ); $('#advanced-search-ui').modal('show'); } @@ -507,7 +507,7 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr num_fetched += '+'; } - $('#search-serversinfo').append( '
  • ' ); + $('#search-serversinfo').append( '
  • ' ); } ); var seenColumns = {}; @@ -1285,7 +1285,8 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr }); $( document ).on( 'change', 'input.search-toggle-server', function() { - var server = z3950Servers[ $( this ).closest('li').data('server-id') ]; + const id = $( this ).closest('li').data('server-id'); + const server = z3950Servers.find(server => server.server_id === id); server.checked = this.checked; if ( $('#search-results-ui').is( ':visible' ) && Search.Fetch() ) { --