[Koha-bugs] [Bug 24884] Remove 'New list' button in 'Public lists' tab if OpacAllowPublicListCreation is disabled

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Aug 17 19:16:16 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24884

--- Comment #2 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 108414
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108414&action=edit
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.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list