Bugzilla – Attachment 101783 Details for
Bug 22579
Split actions in z3950 search results so Import is the main action and make clicking title pop up Card Preview
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22579: Split actions in z3950 search results into a split button
Bug-22579-Split-actions-in-z3950-search-results-in.patch (text/plain), 4.88 KB, created by
Aleisha Amohia
on 2020-03-26 03:16:24 UTC
(
hide
)
Description:
Bug 22579: Split actions in z3950 search results into a split button
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2020-03-26 03:16:24 UTC
Size:
4.88 KB
patch
obsolete
>From a39d64fde8b7255845955d9ad83082451b96d7ba Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >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 | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 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 0029dc2551..8cc9d9d1b0 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 ) %] > <tr id="row[% breeding_loo.breedingid | html %]"> > <td>[% breeding_loo.server | html %]</td> >- <td>[% breeding_loo.title | html %]</td> >+ <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid | uri %]" title="Card" class="previewData">[% breeding_loo.title | html %]</a></td> > <td>[% breeding_loo.author | html %]</td> > <td>[% breeding_loo.date | html %]</td> > <td>[% breeding_loo.edition | html %]</td> >@@ -155,14 +155,14 @@ > </td> > [% END %] > <td> >- <div class="dropdown"> >- <a class="btn btn-default btn-xs dropdown-toggle" id="cataloguesearchactions[% breeding_loo.breedingid | html %]" role="button" data-toggle="dropdown" href="#"> >- Actions <b class="caret"></b> >+ <div class="dropdown btn-group"> >+ <a class="btn btn-default btn-xs import_record" data-breedingid="[% breeding_loo.breedingid | html %]" data-biblionumber="[% breeding_loo.biblionumber | html %]" data-frameworkcode="[% frameworkcode | uri %]"><i class="fa fa-download"></i> Import</a> >+ <a class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown"> >+ <b class="caret"></b> > </a> >- <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="cataloguesearchactions[% breeding_loo.breedingid | html %]"> >+ <ul class="dropdown-menu"> > <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid | uri %]" title="MARC" class="previewData"><i class="fa fa-eye"></i> MARC preview</a></li> > <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid | uri %]" title="Card" class="previewData"><i class="fa fa-eye"></i> Card preview</a></li> >- <li><a href="#" class="import_record" data-breedingid="[% breeding_loo.breedingid | html %]" data-biblionumber="[% breeding_loo.biblionumber | html %]" data-frameworkcode="[% frameworkcode | uri %]"><i class="fa fa-download"></i> Import</a></li> > </ul> > </div> > </td> >@@ -280,7 +280,7 @@ > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22579
:
86997
|
101783
|
104998
|
105054
|
105055
|
105056
|
113206
|
113207