Koha/koha-tmpl/opac-tmpl/bootstrap/en/modules
Marcel de Rooy a58aca056b Bug 18228: Implement the new columns in code
The two new columns as mentioned in the commit message of the table
revision must be used in the codebase now.

Highlighting some changes in Koha::VirtualShel[f|ves]:
[1] Additional methods is_public and is_private.
[2] Method add_biblio did not check permissions. Does now. No impact on the
    interface, but one call in the unit test was affected.
[3] Method remove_biblios is signficantly simplified. Removed a FIXME.
[4] Method can_biblios_be_removed now redirects to can_biblios_be_added.
    A followup report may deal with unifying those routines.
[5] Condition in get_some_shelves changed.
[6] The reference to allow_add in get_shelves_containing_record can simply
    be removed.

opac-shelves.pl and shelves.pl now pass the default setting of Owner only
to the template.
Templates shelves.tt and opac-shelves.tt now include the new permission
field with three choices as mentioned in the table revision patch.

opac-addbybiblionumber.pl and addbybiblionumber now need a check on
allow_change_from_owner; search conditions slightly adjusted to the new
permission scheme.

Test plan:
When we refer to visibility in the test plan, please check the Add to-combo
on opac search results and staff results. And check opac-addbybiblionumber
by clicking Save to Lists from opac results.
The step 'Check delete' means: open the list in opac and check if you see
the Delete button below the entries (only check, do not delete).

[ 1] Create private list I01 (perm=Owner)
[ 2] Check visibility: Seen.
[ 3] Add a book. (Change by owner should be allowed.)
[ 4] Check delete: Yes.
[ 5] Edit list I01, set perm=Nobody
[ 6] Check visibility: Not seen.
[ 7] Check delete: No.
[ 8] Share list I01 with another patron.
[ 9] Check visibility for the other patron: Not seen.
[10] Check delete for the other patron: No.
[11] Change permission of list I01 to Anyone (by owner).
[12] Check visibility for the other patron: Seen.
[13] Let other patron add a book (change is allowed).
[14] Let owner delete the same book again (change allowed).

[15] Create public list U01 (perm=Owner)
[16] Check visibility: Seen.
[17] Add a book. (Change by owner should be allowed.)
[18] Login as other user. Check visibility: Not seen. Check delete: No.
[19] Change permission of U01 to Nobody (by owner)
[20] As owner: Check visibility: Not seen. Check delete: No.
[21] As other user: Check visibility: Not seen. Check delete: No.
[22] Create public list U02 (perm=Anyone)
[23] Add a book by owner.
[24] Delete the same book by other user. Add another book.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jesse Maseto <jesse@bywatersolutions.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2017-07-05 13:35:23 -03:00
..
clubs Bug 18630: Translatability (Clubs): 'Cancel' is ambiguous and leads to mistakes 2017-06-15 15:56:00 -03:00
errors Bug 16270 (followup) Typo authentification vs authentication 2016-04-29 14:44:26 +00:00
sco Bug 18405: Self checkout: Fix broken silent printing 2017-05-08 09:01:41 -04:00
svc Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
text
ilsdi.tt Bug 14257: Follow-up - Add documentation, fix typo, fix test 2016-03-31 20:31:06 +00:00
maintenance.tt Bug 15311 [QA Followup] - Remove use of .raw method as it's use was reverted 2016-02-26 14:21:16 +00:00
opac-account-pay-error.tt Bug 16473: Fix typo "an problem" vs "a problem" 2016-05-12 16:21:52 -06:00
opac-account.tt Bug 14405: Remove pagination type, there is no pagination at the OPAC 2017-02-17 17:12:22 +00:00
opac-addbybiblionumber.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
opac-advsearch.tt Bug 18484 - opac-advsearch.tt missing closing div tag for .container-fluid 2017-04-28 09:02:46 -04:00
opac-alert-subscribe.tt Bug 10357: Do not change the alerttype 2017-04-21 10:58:33 -04:00
opac-auth-detail.tt Bug 18762: Remove warnings from xt/author/valid-templates.t 2017-06-14 14:36:28 -03:00
opac-auth-MARCdetail.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
opac-auth.tt Bug 18314: Account lockout 2017-05-12 10:58:44 -04:00
opac-authorities-home.tt Bug 15550: Fix authority search and detail at the OPAC 2016-01-23 18:34:06 +00:00
opac-authoritiessearchresultlist.tt Bug 16875: OPAC - removing link to records if authority is not used by any records 2016-09-09 13:11:40 +00:00
opac-basket.tt Bug 16095: Remove target="_blank" when a link refer to an external link 2016-03-21 20:44:52 +00:00
opac-blocked.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
opac-browser.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
opac-course-details.tt Bug 15853 - Add author and link columns to opac course reserves table 2016-07-15 18:04:09 +00:00
opac-course-reserves.tt Bug 15699 [QA followup] - Only display firstname if present 2016-02-24 01:58:52 +00:00
opac-detail.tt Bug 18350 (QA Followup) Add classes to elements 2017-05-09 21:28:59 +00:00
opac-discharge.tt Bug 16465: Fix typo issues vs checkouts 2016-06-10 16:45:31 +00:00
opac-downloadcart.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
opac-downloadshelf.tt Bug 16599: Fix other potentials XSS for shelfname 2016-05-30 11:12:15 +00:00
opac-full-serial-issues.tt Bug 16705 - Add missing status to serials history in OPAC 2016-06-24 11:58:32 +00:00
opac-ics.tt Bug 17322 - Translation breaks opac-ics.tt 2016-09-25 13:49:33 +00:00
opac-idref.tt [SIGNED-OFF] Bug 16210: Revert OPAC changes from Bug 15111 2016-04-20 16:06:31 +00:00
opac-imageviewer.tt Bug 16958: Fix XSS in opac-imageviewer.pl 2016-07-22 17:12:02 +00:00
opac-ISBDdetail.tt Bug 16220 - The view tabs on opac-detail.pl are not responsive 2016-04-22 23:02:49 +00:00
opac-issue-note.tt Bug 14224: Replace AllowIssueNotes with AllowCheckoutNotes 2017-04-28 09:03:22 -04:00
opac-main.tt Bug 14764: OPAC news selector 2017-03-03 18:27:51 +00:00
opac-MARCdetail.tt Bug 16220 - The view tabs on opac-detail.pl are not responsive 2016-04-22 23:02:49 +00:00
opac-memberentry-update-submitted.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-memberentry.tt Bug 13757: (QA followup) Fix non-editable attrs on failed save 2017-03-24 18:45:14 +00:00
opac-messaging.tt Bug 12528: Bug 9254: Followup - Rename pref to EnhancedMessagingPreferencesOPAC 2016-04-29 17:54:10 +00:00
opac-mymessages.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
opac-news-rss.tt Bug 17960: Rename opac_news.new with opac_news.content 2017-02-06 17:42:12 +00:00
opac-opensearch.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
opac-overdrive-search.tt bug_16034 Add overdrive info to the users page in the public interface 2017-02-21 19:58:21 +00:00
opac-passwd.tt Bug 17895: 'Re-set' typo fix 2017-02-17 15:37:50 +00:00
opac-password-recovery.tt Bug 18653: Possible privacy breach with OPAC password recovery 2017-06-05 12:56:20 -03:00
opac-privacy.tt Bug 16966: Koha::Patrons - Move GetBorrowersWithIssuesHistoryOlderThan to search_patrons_to_anonymise 2017-03-03 17:20:03 +00:00
opac-readingrecord.tt Bug 4460: Amazon's AssociateID tag not used in links so referred revenue lost 2017-05-12 08:51:44 -04:00
opac-registration-confirmation.tt Bug 17486: Remove Mozilla Persona 2017-01-13 12:32:19 +00:00
opac-registration-email-sent.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-registration-invalid.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-request-article.tt Bug 14610: Follow-up 2 2016-10-26 12:15:25 +00:00
opac-reserve.tt Bug 17560: Improve wordings 2017-03-31 12:06:05 +00:00
opac-restrictedpage.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
opac-results-grouped.tt Bug 16599: Fix other potentials XSS for shelfname 2016-05-30 11:12:15 +00:00
opac-results.tt Bug 18762: Remove warnings from xt/author/valid-templates.t 2017-06-14 14:36:28 -03:00
opac-retrieve-file.tt Bug 14904: Resolve warning from tt_valid.t 2015-09-28 11:49:13 -03:00
opac-review.tt Bug 15839: [QA Follow-up] Error checking in opac-review.pl 2016-09-09 10:31:06 +00:00
opac-search-history.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
opac-sendbasket.tt Bug 17109: Use Koha.Preference in sendbasket template 2016-09-09 13:37:47 +00:00
opac-sendbasketform.tt Bug 18304: [QA Follow-up] Add id to paragraph tag 2017-03-31 14:27:36 +00:00
opac-sendshelf.tt Bug 17852 Follow up.Multiple URLs (856) in list email are broken 2017-02-21 19:55:50 +00:00
opac-sendshelfform.tt Bug 18304: [QA Follow-up] Add id to paragraph tag 2017-03-31 14:27:36 +00:00
opac-serial-issues.tt Bug 10357: Do not change the alerttype 2017-04-21 10:58:33 -04:00
opac-shareshelf.tt Bug 16597: Fix XSS in opac-shareshelf 2016-05-30 11:14:03 +00:00
opac-shelves-rss.tt Bug 16599: Fix other potentials XSS for shelfname 2016-05-30 11:12:15 +00:00
opac-shelves.tt Bug 18228: Implement the new columns in code 2017-07-05 13:35:23 -03:00
opac-showmarc.tt Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
opac-showreviews-rss.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
opac-showreviews.tt Bug 15839: [QA Follow-up] Paging on opac-showreviews 2016-09-09 10:31:05 +00:00
opac-suggestions.tt Bug 17696: Add 2 missing periods in opac-suggestions.tt 2016-12-02 10:12:03 +00:00
opac-tags.tt Bug 17993 - Do not use modal authentication with CAS - tags bis 2017-05-08 09:02:17 -04:00
opac-tags_subject.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
opac-topissues.tt Bug 15758: Koha::Libraries - Remove GetBranches 2016-09-08 14:36:03 +00:00
opac-user.tt Bug 13913 - Renewal error message in OPAC is confusing 2017-06-05 11:48:34 -03:00