[% USE Koha %] [% USE AdditionalContents %] [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %] [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %] [% INCLUDE 'doc-head-open.inc' %] Share a list › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog [% INCLUDE 'doc-head-close.inc' %] [% BLOCK cssinclude %][% END %] [% INCLUDE 'bodytag.inc' bodyid='opac-shareshelf' bodyclass='scrollto' %] [% INCLUDE 'masthead.inc' %]
[% IF ( OpacNav ) %]
[% END %]
[%# This section contains the essential code for error messages and three operations: invite, confirm_invite and accept. %]

Share a list with another patron

[% IF errcode %] [% IF errcode==1 && op %]
The operation [% op | html %] is not supported.
[% END %] [% IF errcode==1 && !op %]
No operation parameter has been passed.
[% END %] [% IF errcode==2 %]
Invalid shelf number.
[% END %] [% IF errcode==3 %]
The feature of sharing lists is not in use in this library.
[% END %] [% IF errcode==4 %]
You can only share a list if you are the owner.
[% END %] [% IF errcode==5 %]
You cannot share a public list.
[% END %] [% IF errcode==6 %]
Sorry, but you did not enter a valid email address.
[% END %] [% IF errcode==7 %]
Sorry, but we could not accept this key. The invitation may have expired. Contact the patron who sent you the invitation.
[% END %] [% IF errcode==8 %]
As owner of a list you cannot accept an invitation for sharing it.
[% END %]

Return to your lists

[% ELSIF op=='invite' %]
Share list
  1. [% shelfname | html %]
Cancel
[% ELSIF op=='conf_invite' %]
[% IF approvedaddress %]

An invitation to share list [% shelfname | html %] will be sent shortly to [% approvedaddress | html %].

[% END %] [% IF failaddress %]

Something went wrong while processing the following addresses. Please check them. These are: [% failaddress | html %]

[% END %] [% IF approvedaddress %]

You will receive an email notification if someone accepts your share before it expires.

[% END %]

Return to your lists

[% ELSIF op=='accept' %] [%# Nothing to do: we already display an error or we redirect. %] [% END %] [%# End of essential part %]
[% INCLUDE 'opac-bottom.inc' %] [% BLOCK jsinclude %] [% END %]