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

Paul A paul.a at navalmarinearchive.com
Fri Apr 8 02:12:37 CEST 2016


At 09:23 PM 4/7/2016 +0200, Julian Maurice wrote:
>jQuery 1.12 seems to be the last release of the 1.x branch.
>What's next ? Should we upgrade to 2.x ? 3.x ?
>
>I have a preference for the "upgrade all at once / fix as it breaks"
>method. With the other method I think we will end up with several
>versions of jQuery and doc-head-close-*
>Moreover, the upgrade path from 1.7 to 1.12 seems not too hard,
>according to https://jquery.com/upgrade-guide/1.9 and we can use the
>jQuery Migrate plugin.

I used the "migrate plugin" for another project and had no problems.

Best -- Paul


>Le 07/04/2016 18:02, Owen Leonard a écrit :
> >> 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
> >
>
>
>--
>Julian Maurice <julian.maurice at biblibre.com>
>BibLibre
>_______________________________________________
>Koha-devel mailing list
>Koha-devel at lists.koha-community.org
>http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
>website : http://www.koha-community.org/
>git : http://git.koha-community.org/
>bugs : http://bugs.koha-community.org/

---
Maritime heritage and history, preservation and conservation,
research and education through the written word and the arts.
<http://NavalMarineArchive.com> and <http://UltraMarine.ca>



More information about the Koha-devel mailing list