Summary: | Remove 'New list' button in 'Public lists' tab if OpacAllowPublicListCreation is disabled | ||
---|---|---|---|
Product: | Koha | Reporter: | Caroline Cyr La Rose <caroline.cyr-la-rose> |
Component: | Lists | Assignee: | Owen Leonard <oleonard> |
Status: | CLOSED FIXED | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | lucas, m.de.rooy, rkuiper |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Trivial patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: |
20.11.00
|
|
Circulation function: | |||
Attachments: |
Bug 24884: Remove 'New list' button in 'Public lists' tab if OpacAllowPublicListCreation is disabled
Bug 24884: Remove 'New list' button in 'Public lists' tab if OpacAllowPublicListCreation is disabled Bug 24884: Remove 'New list' button in 'Public lists' tab if OpacAllowPublicListCreation is disabled |
Description
Caroline Cyr La Rose
2020-03-16 22:36:57 UTC
Agree. This is confusing to the patron. Rhonda K. Created attachment 108414 [details] [review] 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. Created attachment 108416 [details] [review] 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> Created attachment 108425 [details] [review] 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> Pushed to master for 20.11, thanks to everybody involved! enhancement will not be backported to 20.05.x |