[Koha-devel] Plan for upgrading jQuery in the staff client

Owen Leonard oleonard at myacpl.org
Thu Apr 7 18:02:32 CEST 2016


> I have filed a new bug with a plan for how to move forward on an
> upgrade of jQuery in the staff client.
>
> https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15883

This is stuck, so I need to ask for suggestions on how to proceed.
Jonathan and I have two different proposals. Mine:

- Create a new include file which uses new version of jQuery and
jQueryUI. Name that include file according to the version of jQuery it
includes ("doc-head-close-jquery-1.12.0.inc").

- Gradually (page by page or in batches) submit patches which add use
of the new include file while making any changes to the affected
page(s) to update relevant JavaScript to work with the new versions.

Advantages to this method: Small manageable patches, nothing breaks
without warning.
Disadvantages to this method: We introduce duplicate versions of
doc-head-close.inc which must be kept in sync. There could end up
being many many patches.

Jonathan suggests that we update jQuery and jQueryUI without creating
a new include file and fixing bugs as we find them.

Advantages to this method: One patch, and we don't have to deal with
include file renaming.
Disadvantages to this method: It is not known what pages will break
because of the new versions of jQuery and jQueryUI.

Jonathan please correct me if I have mis-characterized your proposal.

What does everyone think? Should I bring this up for a vote at the
next dev meeting?

  -- Owen

-- 
Web Developer
Athens County Public Libraries
http://www.myacpl.org


More information about the Koha-devel mailing list