From 7ae812ebc277afb0b527e2848210a7ebb7c24c32 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 24 Mar 2020 18:02:56 +0000 Subject: [PATCH] Bug 22579: Split actions in z3950 search results into a split button Where 'Import' is the main button and the two card previews are in the dropdown Also show Card preview when clicking on title of record To test: 1) Go to Cataloguing -> New from Z39.50/SRU 2) Search for a term that will produce results 3) Once results are shown, notice the split button 4) Click anywhere on results rows. Confirm the dropdown menu still shows when you click anywhere, as normal 5) Confirm clicking the title pops up the Card preview 6) Confirm Import is the main button in the actions and still works as expected Sponsored-by: Horowhenua Library Trust --- .../prog/en/modules/cataloguing/z3950_search.tt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 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 e1b6082f044..574422d9c48 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 @@ -136,7 +136,7 @@ [% IF ( breeding_loo.breedingid ) %] [% breeding_loo.server | html %] - [% breeding_loo.title | html %] + [% breeding_loo.title | html %] [% breeding_loo.author | html %] [% breeding_loo.date | html %] [% breeding_loo.edition | html %] @@ -155,14 +155,14 @@ [% END %] -
- - Actions + @@ -272,15 +272,15 @@ var rowid = row.attr("id"); $("tr").removeClass("highlighted-row"); row.addClass("highlighted-row"); - $(".dropdown").removeClass("open"); if(tgt.is("a")||tgt.is(":nth-child(8)")){ // Don't show inline links for cells containing links of their own. } else { + $(".dropdown").removeClass("open"); event.stopPropagation(); var dropdown = $(".dropdown", row); dropdown.addClass("open"); var position = $(this).offset(); - var top = position.top + 5; + var top = position.top - 5; var left = position.left + 5; dropdown.css("position","unset"); $(".dropdown-menu", row).css({ -- 2.11.0