Koha/koha-tmpl/opac-tmpl/bootstrap
Owen Leonard 168c8f2e31 Bug 24884: Remove 'New list' button in 'Public lists' tab if OpacAllowPublicListCreation is disabled
This patch adds a check on the OpacAllowPublicListCreation system
preference to the OPAC lists template so that if public list creation is
disabled the "New list" button doesn't appear under the "Public lists"
tab.

To test, apply the patch and confirm that the virtualshelves preference
is enabled.

- With the OpacAllowPublicListCreation system preference enabled, go to
  the OPAC and view the lists page.
  - If you are logged in you should see a "New list" link under both the
    "Your lists" tab and the "Public lists" tab.
  - If you are not logged in you should see "Log in to create a new
    list" on both pages.
- View the page with OpacAllowPublicListCreation disabled.
  - If you are logged in you should see a "New list" link under only the
    "Your lists" tab.
  - If you are not logged in you should see the "Log in" link only under
    the "Your lists" tab.

Works perfectly!

Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-08-18 17:39:48 +02:00
..
css Bug 25906: Style corrections for OPAC serial pages 2020-08-13 07:55:44 +02:00
en Bug 24884: Remove 'New list' button in 'Public lists' tab if OpacAllowPublicListCreation is disabled 2020-08-18 17:39:48 +02:00
images Bug 23903: Replace OPAC icons with Font Awesome 2019-10-31 15:40:25 +00:00
itemtypeimg Bug 23148: (follow-up) Replace gif files in the OPAC with pngs 2020-07-20 16:16:37 +02:00
js Bug 26037: openlibrary.org is hit on every Koha requests 2020-08-06 11:37:07 +02:00
lib Bug 26004: Remove unused jQuery plugin jquery.hoverIntent.minified.js from the OPAC 2020-08-03 11:30:35 +02:00