]> git.koha-community.org Git - koha.git/commit
Bug 11873: Upgrade jstree jQuery plugin to the latest version
authorOwen Leonard <oleonard@myacpl.org>
Wed, 10 Nov 2021 15:42:08 +0000 (15:42 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 10 Feb 2022 01:36:24 +0000 (15:36 -1000)
commitb3e472090d778142ec2e85590852f803244294df
treee5b4e03d05693285d1aafbd9807d4d5c11f8966c
parent7a7d503faa993690657374da0ab420c5834178b7
Bug 11873: Upgrade jstree jQuery plugin to the latest version

This patch upgrades the jstree plugin in the OPAC and the staff
interface. The old version had compatibility issues with the latest
jQuery.

Also changed: When viewing an authority record in the OPAC's MARC view,
clicking one of the hierarchy links should now open the MARC view again
rather than reverting to the normal view.

To test, apply the patch and rebuild the staff interface and OPAC CSS
(https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client).

To test you must have the AuthDisplayHierarchy system preference
enabled, and you must have some authorities data which can be displayed
as a hierarchy. From the test plan for Bug 8523:

"Create authority records with a hierarchy of see also fields (in
 MARC21/NORMARC, you'll be using 5xx fields for this, with a subfield
 $w = 'g' for broader terms and subfield $w = 'h' for narrower terms)"

- Perform an authority search in the OPAC which will return one of your
  modified authority records.
- View the record.
- There should be an expanded tree menu at the top of the authority
  information.
  - Clicking the arrows in the tree should correctly expand
    and collapse the nodes.
  - Clicking the authority record link in the node should load that
    record.
- Test also from the OPAC's MARC view of the authority record.
  - Confirm that clicking an authority record link in the MARC view
    opens the corresponding record in MARC view again.

- Perform the same tests in the staff interface.

Signed-off-by: Eugene Espinoza <eugenegf@yahoo.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
30 files changed:
koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.jstree.js [deleted file]
koha-tmpl/intranet-tmpl/lib/jquery/plugins/jstree/jstree-3.3.12.min.js [new file with mode: 0644]
koha-tmpl/intranet-tmpl/lib/jquery/plugins/jstree/themes/default/32px.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/lib/jquery/plugins/jstree/themes/default/40px.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/lib/jquery/plugins/jstree/themes/default/style.css [new file with mode: 0644]
koha-tmpl/intranet-tmpl/lib/jquery/plugins/jstree/themes/default/style.min.css [new file with mode: 0644]
koha-tmpl/intranet-tmpl/lib/jquery/plugins/jstree/themes/default/throbber.gif [new file with mode: 0644]
koha-tmpl/intranet-tmpl/lib/jquery/plugins/themes/classic/d.gif [deleted file]
koha-tmpl/intranet-tmpl/lib/jquery/plugins/themes/classic/d.png [deleted file]
koha-tmpl/intranet-tmpl/lib/jquery/plugins/themes/classic/dot_for_ie.gif [deleted file]
koha-tmpl/intranet-tmpl/lib/jquery/plugins/themes/classic/style.css [deleted file]
koha-tmpl/intranet-tmpl/lib/jquery/plugins/themes/classic/throbber.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt
koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss
koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-authorities.inc
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-MARCdetail.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt
koha-tmpl/opac-tmpl/lib/jquery/plugins/jquery.jstree.js [deleted file]
koha-tmpl/opac-tmpl/lib/jquery/plugins/jstree/jstree-3.3.12.min.js [new file with mode: 0644]
koha-tmpl/opac-tmpl/lib/jquery/plugins/jstree/themes/default/32px.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/lib/jquery/plugins/jstree/themes/default/40px.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/lib/jquery/plugins/jstree/themes/default/style.css [new file with mode: 0644]
koha-tmpl/opac-tmpl/lib/jquery/plugins/jstree/themes/default/style.min.css [new file with mode: 0644]
koha-tmpl/opac-tmpl/lib/jquery/plugins/jstree/themes/default/throbber.gif [new file with mode: 0644]
koha-tmpl/opac-tmpl/lib/jquery/plugins/themes/classic/d.gif [deleted file]
koha-tmpl/opac-tmpl/lib/jquery/plugins/themes/classic/d.png [deleted file]
koha-tmpl/opac-tmpl/lib/jquery/plugins/themes/classic/dot_for_ie.gif [deleted file]
koha-tmpl/opac-tmpl/lib/jquery/plugins/themes/classic/style.css [deleted file]
koha-tmpl/opac-tmpl/lib/jquery/plugins/themes/classic/throbber.gif [deleted file]