]> git.koha-community.org Git - koha.git/commit
Bug 36557: Convert Cart and Lists controls to buttons and rework logic
authorOwen Leonard <oleonard@myacpl.org>
Thu, 21 Mar 2024 17:29:47 +0000 (17:29 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 1 Jul 2024 16:55:43 +0000 (18:55 +0200)
commit9917b39d9dcbc6d1903c309bc702dd0486d9cb6e
treeac70ff035db6dd1df15f6007677dd558e02165e5
parent2d4ab2e1bc3a3a57173953317959f79a6f62ddd9
Bug 36557: Convert Cart and Lists controls to buttons and rework logic

This patch tries to address errors in the way features are displayed in
result lists so that controls for holds, tags, lists, etc. are shown or
hidden according to system preferences.

The patch converts the Cart/Lists dropdown to separate buttons, making
the display logic simpler and making the interface more consistent with
updates to the staff interface search results.

To test, apply the patch and rebuild the OPAC CSS.

- In the OPAC, test these pages:
  - Catalog search results
  - List contents
- Test with various combinations of these system preferences:
  - opacbookbag
  - DisplayMultiPlaceHold
  - virtualshelves
  - OPACHoldRequests
  - TagsEnabled
  - TagsInputOnList
  - UseRecalls
  - ArticleRequests

With each different combination of settings the right controls should
appear in the toolbar at the top (if present), and with each search
result.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss
koha-tmpl/opac-tmpl/bootstrap/en/includes/result-batch-controls.inc [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/en/includes/title-actions-menu.inc
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-tags.tt
koha-tmpl/opac-tmpl/bootstrap/js/results-list.js [new file with mode: 0644]
opac/opac-search.pl
opac/opac-shelves.pl