From 6e4f9680409e2b4716d2fdad8dd8e8864c3f3062 Mon Sep 17 00:00:00 2001 From: Alex Buckley Date: Wed, 20 Mar 2019 06:45:54 +0000 Subject: [PATCH] Bug 22579: Add syspref to toggle dropdown/links in Z39.50 search results This patch reduces the number of clicks to use 'Card preview' functionality without removing the work done to condense the three links into a menu in Bug 19939 which is displayed by default (and when the syspref is disabled). Test plan: 1) Apply the patch 2) In Cataloging click the New from Z39.50/SRU button and search for a term that will produce results 3) In the results window, note that the actions column contains a dropdown for each row which contains three links. 4) Change the Replacez3950CatalogingActionMenuWithLinks to 'Do' 5) Complete step 2 again, and instead note that the actions column now contains three links, Card preview, MARC preview, Import 6) Verify that each of the links work as expected 7) Sign off! Sponsored-by: Horowhenua Library Trust --- ..._reduce_clicks_to_views_z39.50_card_preview.sql | 1 + .../en/modules/admin/preferences/cataloguing.pref | 7 ++++++ .../prog/en/modules/cataloguing/z3950_search.tt | 27 ++++++++++++++-------- 3 files changed, 26 insertions(+), 9 deletions(-) create mode 100644 installer/data/mysql/atomicupdate/wr308955_reduce_clicks_to_views_z39.50_card_preview.sql diff --git a/installer/data/mysql/atomicupdate/wr308955_reduce_clicks_to_views_z39.50_card_preview.sql b/installer/data/mysql/atomicupdate/wr308955_reduce_clicks_to_views_z39.50_card_preview.sql new file mode 100644 index 0000000000..2e612cbedb --- /dev/null +++ b/installer/data/mysql/atomicupdate/wr308955_reduce_clicks_to_views_z39.50_card_preview.sql @@ -0,0 +1 @@ +INSERT IGNORE INTO systempreferences (variable, value, options, explanation) VALUES ('Replacez3950CatalogingActionMenuWithLinks', 0, 'YesNo', 'Replace z39.50 cataloging action menu with three links: MARC preview, Card preview and Import, to reduce clicks for accessing preview functionality.'); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref index 99e79e8222..2ddd2aee28 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref @@ -248,6 +248,13 @@ Cataloging: - "
  • value of 001
  • " - "
  • subfields a and b of fields 245
  • " - "
  • all subfields of fields 600
  • " + - + - pref: Replacez3950CatalogingActionMenuWithLinks + choices: + yes: "Do" + no: "Don't" + - "replace z39.50 cataloging action menu with three links: MARC preview, Card preview and Import, reducing clicks for accessing preview functionality." + Importing: - - When matching on ISBN with the record import tool, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt index 0a01aee147..1453dc74de 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt @@ -7,6 +7,7 @@ [% INCLUDE 'doc-head-close.inc' %] @@ -131,16 +132,24 @@ [% END %] - + [% END %] [% END %] -- 2.11.0