Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences
Marcel de Rooy d97c4b9665 Bug 9032: add ability to accept list share invitations and remove shares
This patch handles:

[1] The response (acceptance) by the invited person.

If the person accepts this share, the private list of the sender will
be shown under Your lists on the shelves page. In OPAC 'Your private
lists' has been renamed to Your lists (just as in Staff). The Type
column shows Private or Shared for these lists; a list appears as
Shared as soon as an invitation has been accepted. The owner has the
options to Edit, Delete or Share; the invited person does not have
these options on the shared list.

[2] Removing an accepted share.

If a user accepted a share, they should also be able to remove it again.
The Remove Share button is visible on OPAC when viewing Your lists or
a particular shared list.

Note: AddShare has been extended to return a possible database error.
If the share invite could not be added, a mail will not be sent.

Test plan (for prog theme):
Enable pref OpacAllowSharingPrivateLists
User 1 creates new private list P1, perms: D-A-D, adds 2 items, sends share
User 1 checks your lists display: is P1 Private with Edit button?
User 2 accepts share: sees P1, but cannot add or delete items
User 2 checks your lists display again: P1 shows Shared without Edit?
User 1 checks your lists display again: P1 shows Shared with Edit?
User 2 tries to accept share again: should fail now
User 3 tries to accept share: should also fail
User 3 tries again, modifies shelfnumber and/or key in url: should also fail

User 2 creates new private list P2, perms: A-A-A, no items, sends share
User 2 checks your lists display: P2 shows Private with Edit?
User 1 accepts, adds one item
User 1 checks your lists display: P2 shows Shared without Edit?
User 2 checks your lists display: P2 shows Shared with Edit?
User 2 deletes item of user 1 (allowed)
User 2 deletes list P2
User 1 checks your lists display in opac or staff: P2 is gone?

User 1 creates private list P3, sends a share.
User 1 creates private list P4, adds one item, sends a share.
User 2 accepts the share for P3.
User 2 checks the shelves display, and removes share P3.
User 2 accepts the share for P4.
User 2 views shelf P4 with one item and confirms Remove share on that form.
User 2 checks shelves display again.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Dobrica Pavlinusic <dpavlin@rot13.org>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2014-04-20 21:16:45 +00:00
..
acquisitions.pref Bug 11828: (follow-up) add new option to OrderPdfFormat 2014-04-11 14:59:16 +00:00
admin.pref Bug 10080 - Change system pref IndependantBranches to IndependentBranches 2013-05-22 07:58:23 -07:00
authorities.pref Bug 11611: Rephrase description and examples of 5 MARC related sysprefs 2014-02-20 19:08:11 +00:00
cataloguing.pref Bug 11611: Rephrase description and examples of 5 MARC related sysprefs 2014-02-20 19:08:11 +00:00
circulation.pref Bug 7413: (follow-up) tweak description of the AllowRenewalLimitOverride syspref 2014-04-08 23:28:32 +00:00
creators.pref
enhanced_content.pref Bug 10320 - Integrate OverDrive search into OPAC 2013-09-08 07:00:40 +00:00
i18n_l10n.pref Bug 9014 - Add time due to slips 2013-03-21 11:07:42 -04:00
local_use.pref
logs.pref Bug 9293 - action_logs not tracking payments 2013-03-11 17:59:17 -04:00
opac.pref Bug 9032: add ability to accept list share invitations and remove shares 2014-04-20 21:16:45 +00:00
patrons.pref Bug 108661: (follow-up) enshrine letting CardnumberLength specify just a maximum 2014-03-12 04:07:03 +00:00
searching.pref Bug 10986: add system preference to limit the list of languages in advanced search 2014-04-19 17:18:32 +00:00
serials.pref
staff_client.pref Bug 9044: Provide item selection in record detail page (staff client) 2013-10-31 05:29:35 +00:00
tools.pref Bug 11343: tweak wording of the syspref editor for MaxItemsForBatch 2014-03-10 19:17:49 +00:00
web_services.pref Bug 10818: improve display and translatability of sysprefs OAI-PMH:ConfFile's description 2014-04-04 15:37:26 +00:00