Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools
Owen Leonard d3d89e629e Bug 26207: Compare values of system preference log entries
This patch adds the ability to compare the values of system preferences
in the system log. The user can select two entries in the log search
results and view a diff of the two versions.

The feature is designed specifically for CSS and JS preferences like
OpacUserCSS or OpacUserJS where code changes are difficult to track.

To test, apply the patch and go to Tools -> Log viewer. You may need to
add values and make changes to preferences like OpacUserCSS if you don't
already have a history in your logs.

- Perform a search for log entries in the "System prefs" module.
- In the results, each entry for a system preference should have a
  "Compare" checkbox."
- Check one of the checkboxes.
  - The table should now be filtered by the system preference name. This
    facilitates meaningful selections for comparison.
  - You should see a message displayed onscreen, "Showing results
    for...[ preference name]"
  - The "Check none" link in the toolbar above the table should now be
    enabled.
  - If youy click the "Compare selected" link in the toolbar at this
    stage you should get a message, "You must select two entries to
    compare."
  - If you uncheck the checkbox the table should return to an unfiltered
    state.
- Check two checkboxes.
  - The "Compare selected" link in the toolbar should now be enabled.
  - Next to each of the checkboxes you checked should be a "View
    comparison" link.
  - Clicking either of the "View comparison" links or the "Compare
    selected" link should trigger a modal with the diff view of the two
    preferences.
- Try to select a third checkbox. You should get a message, "You can
  select a maximum of two checkboxes." The box should remain unchecked.
- Test that unchecking both checkboxes manually clears the table filter.
- Test that the "Check none" link works to uncheck checked boxes and
  clear the table filter.

Signed-off-by: Brandon J <brandon.jimenez@inLibro.com>

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-10-01 10:32:15 +02:00
..
access_files.tt
automatic_item_modification_by_age.tt
batch_delete_records.tt Bug 26159: Remove the use of jquery.checkboxes plugin from batch record delete page 2020-08-18 15:45:49 +02:00
batch_extend_due_dates.tt Bug 25101: (follow-up) Tick preview checkbox on by default 2020-09-02 15:35:08 +02:00
batch_record_modification.tt Bug 26202: Remove the use of jquery.checkboxes plugin from batch record modification page 2020-08-18 15:45:49 +02:00
batchMod-del.tt
batchMod-edit.tt Bug 19889: Add select2 class to the new dropdown list 2020-08-31 16:17:58 +02:00
batchMod.tt
cleanborrowers.tt
csv-profiles.tt
export.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
holidays.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
import_borrowers.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
inventory.tt Bug 26150: Remove the use of jquery.checkboxes plugin from inventory page 2020-08-24 11:19:03 +02:00
koha-news.tt Bug 26431: Use split button to offer choice of WYSIWYG or code editor for news 2020-09-29 14:28:19 +02:00
letter.tt Bug 26395: Move translatable strings out of letter.tt into letter.js 2020-09-29 14:28:18 +02:00
manage-marc-import.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
marc_modification_templates.tt Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
modborrowers.tt
overduerules.tt
picture-upload.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
preview_letter.tt
problem-reports.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
quotes-upload.tt
quotes.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
scheduler.tt
showdiffmarc.tt
stage-marc-import.tt
stockrotation.tt
tools-home.tt Bug 26338: Show tool plugins run in tools home 2020-09-30 17:30:13 +02:00
upload-images.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
upload.tt
viewlog.tt Bug 26207: Compare values of system preference log entries 2020-10-01 10:32:15 +02:00