[Koha-bugs] [Bug 12755] MARC Preview doesn't always display in managed MARC record

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Sep 23 19:48:03 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12755

--- Comment #1 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 31844
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=31844&action=edit
Bug 12755 - MARC Preview doesn't always display in managed MARC record

The MARC preview feature seems to have been broken by Bug 11570 -
Upgrade jQueryUI to the latest version. When that patch was being
developed there were no existing cases where the jQueryUI dialog feature
was used, so the patch omitted it.

Rather than update the build of jQueryUI to include the dialog feature
I'm submitting a patch which uses a Bootstrap modal instead. This keeps
the jQueryUI library smaller and avoids an unnecessary duplication of JS
functionality. It also helps keep our modals consistent.

The implementation uses progressive enhancement principles to improve
click handling: Real links in the table, so that the preview link can be
opened in a new tab if the user chooses; Event handling in the
JavaScript instead of the markup ( $(selector).on(click... instead of <a
onclick=...).

To test, apply the patch and add or view a batch of staged MARC records
(Tools -> Staged MARC management). In the list of titles (the "Citation"
column) click any link and confirm that the MARC preview loads
correctly. Confirm that previews work correctly on any page and after
re-sorting.

Confirm also that the modal window flexibly handles different browser
window sizes.

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


More information about the Koha-bugs mailing list