Koha/koha-tmpl/opac-tmpl/bootstrap/en/modules
Alex Buckley b933a44441 Bug 26346: Add option to make public lists editable by all staff
If a staff member has access to the staff client (either because
'catalogue' permission is enabled or they're a superlibrarian
then that user can add items (from OPAC or staff client) to a list
marked 'Staff only'

Test plan:
1. In the staff client go to: Lists > 'New list'. Notice under 'Allow changes to contents
from' there are three options: Nobody, Owner only, Anyone seeing this
list

2. Apply first 3 patches and run updatedatabase.pl
cd installer/data/mysql
sudo koha-shell <instance>
./updatedatabase.pl

3. Restart memcached and plack

4. Create 4 patron accounts:
- User A : Superlibrarian permissions
- User B : 'Staff access, allows viewing of catalogue in staff interface
(catalogue)'
- User C : No permissions
- User D : 'Staff access, allows viewing of catalogue in staff
interface' and 'Lists' > Edit public lists (edit_public_lists)' sub-permission

5. Login to staff client as User A.
Create a public list and select the new 'Staff only' option under 'Allow changes to contents from'

6. Log into the staff client as User B.
Confirm you can add items to the list from the following staff client pages:
- Individual list page using the 'Add items' button
- Staff client search result page
- Staff client biblio detail page

7. Confirm you can remove items from the list

8. Confirm you can perform an OPAC search when not logged in

9. Log into the OPAC as User B. Confirm you can add items to the list
from the following OPAC pages:
- OPAC search result page
- OPAC biblio detail page

10. Log into the OPAC as User C. Do an OPAC search and confirm you
can view the list, but not add items to it

11. Login to the staff client as User B. Create a new list with the
following settings:
- 'Category'='Private',
- 'Allow changes to contents from'='Staff only'

Notice a red hint message is displayed.
Change 'Category'='Public' and notice the hint is removed

12. Log into the OPAC as User C. Notice the 'Staff only' option is not
available when creating a list

13. Log into the OPAC as User B. Repeat step 11. Confirm the same
outcome

14. Log into the staff client as User A. Create a list with the
following settings:

- Public = 'Public'
- Allow changes to contents from = 'owner only'

15. Log into the staff client as User D. Edit the list from step 14
confirm you can edit the list to have 'Allow changes to contents from' =
'Staff only'

16. Run Patron.t and Virtualshelves.t unit tests:
sudo koha-shell <instance>
prove t/db_dependent/Koha/Patron.t
prove t/db_dependent/Virtualshelves.t

Sponsored-by: Horowhenua District Council, New Zealand

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-04-12 17:13:02 +02:00
..
clubs
errors Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
sci Bug 30011: Update links to jQueryUI assets, remove datepicker references, etc. 2022-04-08 15:49:16 +02:00
sco Bug 30011: Update links to jQueryUI assets, remove datepicker references, etc. 2022-04-08 15:49:16 +02:00
svc Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
text
ilsdi.tt Bug 22347: Translatability of ILSDI GetAvailability 2022-04-12 17:13:02 +02:00
maintenance.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-account-pay-error.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-account.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-addbybiblionumber.tt
opac-advsearch.tt Bug 29940: Don't surround value by quote 2022-03-22 10:17:34 -10:00
opac-alert-subscribe.tt
opac-auth-detail.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-auth-MARCdetail.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-auth.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-authorities-home.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-authoritiessearchresultlist.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-basket.tt Bug 29609: Centralized code to build the link to a biblio detail page 2022-04-08 15:49:16 +02:00
opac-blocked.tt
opac-browse.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-browser.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-course-details.tt Bug 19532: Recalls on OPAC 2022-03-14 22:45:51 -10:00
opac-course-reserves.tt
opac-detail.tt Bug 29803: Do not wait for the images more than 5 seconds 2022-02-21 15:15:47 -10:00
opac-discharge.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-downloadcart.tt
opac-downloadshelf.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-full-serial-issues.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-holdshistory.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-ics.tt
opac-idref.tt
opac-illrequests.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-imageviewer.tt Bug 29609: Centralized code to build the link to a biblio detail page 2022-04-08 15:49:16 +02:00
opac-ISBDdetail.tt
opac-issue-note.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-library.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-main.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-MARCdetail.tt
opac-memberentry-update-submitted.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-memberentry.tt Bug 30120: Save and apply extended attributes during self registration verification by email 2022-04-08 15:49:16 +02:00
opac-messaging.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-mymessages.tt
opac-news-rss.tt
opac-opensearch.tt Bug 29609: Centralized code to build the link to a biblio detail page 2022-04-08 15:49:16 +02:00
opac-overdrive-search.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-passwd.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-password-recovery.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-patron-consent.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-privacy.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-readingrecord.tt Bug 29609: Centralized code to build the link to a biblio detail page 2022-04-08 15:49:16 +02:00
opac-recall.tt Bug 19532: (follow-up) Fixing OPAC display and staff client errors 2022-03-14 22:45:51 -10:00
opac-recalls.tt Bug 19532: (RM follow-up) Fix status finished renamed fulfilled 2022-03-14 22:45:52 -10:00
opac-recordedbooks-search.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-registration-confirmation.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-registration-email-sent.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-registration-invalid.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-reportproblem.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-request-article.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-reserve.tt Bug 29713: Make item table when placing an item level hold sortable 2022-03-24 14:22:10 -10:00
opac-restrictedpage.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-results.tt Bug 29603: Fix responsive behavior of facets menu in OPAC search results 2022-02-16 21:52:51 -10:00
opac-retrieve-file.tt
opac-review.tt
opac-routing-lists.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-search-history.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-sendbasket.tt
opac-sendbasketform.tt
opac-sendshelf.tt
opac-sendshelfform.tt
opac-serial-issues.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-shareshelf.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-shelves-rss.tt
opac-shelves.tt Bug 26346: Add option to make public lists editable by all staff 2022-04-12 17:13:02 +02:00
opac-showmarc.tt
opac-showreviews-rss.tt
opac-showreviews.tt Bug 29609: Centralized code to build the link to a biblio detail page 2022-04-08 15:49:16 +02:00
opac-suggestions.tt Bug 30243: When branccode is required on OPAC suggestion page default to empty value 2022-04-08 15:49:18 +02:00
opac-tags.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-tags_subject.tt Bug 28955: (follow-up) Set to fall back 2022-02-24 14:35:36 -10:00
opac-topissues.tt Bug 17018: Split AdvancedSearchTypes for staff and OPAC 2022-04-12 17:13:02 +02:00
opac-user.tt Bug 24221: (follow-up) Remove id opac-my-summary-note 2022-03-25 11:01:04 -10:00