From 466c46f4f64b83abc8205e4ff0600587fa69d234 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 9 Jan 2018 19:11:12 +0000 Subject: [PATCH] Bug 19939: Move cataloging Z39.50 results actions into menu This patch modifies the template which displays cataloging Z39.50 search results so that the "MARC," "Card," and "Import" links are moved out of separate table cells and into one menu. The old menu which would appear when any table cell is clicked has been removed, and code added to display the same Bootstrap menu if a table cell is clicked. To test, apply the patch and go to Cataloging -> New from Z39.50/SRU. - Perform a Z39.50 search which will return more than one result. - Confirm that clicking the "Actions" button triggers a drop-down menu. - Confirm that the links in the menu trigger actions for the correct bibliographic record. - Confirm that clicking any other table cell in the table of results will trigger the display of the same menu. - Confirm that this menu works correctly for the correct record. Signed-off-by: Claire Gravely Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- .../en/modules/cataloguing/z3950_search.tt | 79 ++++++++++++------- 1 file changed, 52 insertions(+), 27 deletions(-) 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 33053aecc4..ee05d96733 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 @@ -4,10 +4,6 @@ [% INCLUDE 'doc-head-close.inc' %] @@ -104,24 +100,32 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : Edition ISBN LCCN - MARC - Card -   + Actions [% FOREACH breeding_loo IN breeding_loop %] [% IF ( breeding_loo.breedingid ) %] - [% breeding_loo.server %] + [% breeding_loo.server %] [% breeding_loo.title |html %] [% breeding_loo.author %] [% breeding_loo.date %] [% breeding_loo.edition %] [% breeding_loo.isbn %] [% breeding_loo.lccn %] - MARC - Card - Import + + + + [% END %] [% END %] @@ -189,6 +193,17 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : [% INCLUDE 'z3950_search.inc' %] -- 2.39.5