[Koha-bugs] [Bug 16812] Remove multiple onclick events for all z3950_search.tt

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jun 27 09:33:40 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16812

Héctor Eduardo Castro Avalos <hector.hecaxmmx at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #52873|0                           |1
        is obsolete|                            |

--- Comment #5 from Héctor Eduardo Castro Avalos <hector.hecaxmmx at gmail.com> ---
Created attachment 52885
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=52885&action=edit
Bug 16812: Remove multiple onclick events for all z3950_search.tt

z3950_auth_search.tt has various onclick events used in links.
Also fix: acqui/z3950_search.tt and cataloguing/z3950_search.tt

This patch propose:
-Trigger event via JQuery .on()
-Make a separate .js and .inc file
-Reduce the number of line and redundant code
-Also add Font Awesome Icons to "Select/Clear all" and "Clear search form"
links

To test:
1-Apply bug 16600 on top
2-Apply patch
3-Go to Authorities > click New from Z39.50
4-Fill some fields and click in "Clear search form" link
5-Search under "Dalton" or another author that launch too many headings
6-Clic in some heading and notice the dialog open, test to "Import" and close
 the dialog "X". Use the "Import" from table too.

Go to Cataloging > New from Z39.50/SRU
Repeat steps 3 to 6. But this time with bib records.

Go to Adquisition > Open or Create a basket and choose to "Add to basket"
button. A modal appear, chose the option "Order from external source"
Repeat steps 3 to 6. But this thime with bib records.

NOTE: The icon trash for "Clear search form" has been selected according
with module "Advanced search" there is an icon trash with link "Clear fields"
that has the same fuctionality.
For some reason the image loading-small.gif does not charge all times when
the code is get out of the template.
DataTable it is specific for each template

Sponsored-by: Universidad de El Salvador

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list