1 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Share a list
2 [% INCLUDE 'doc-head-close.inc' %]
4 <body id="opac-shareshelf">
5 <div id="doc3" class="yui-t1">
7 [% INCLUDE 'masthead.inc' %]
10 <div class="yui-b"><div class="yui-g">
12 [%# This section contains the essential code for error messages and three operations: invite, confirm_invite and accept. %]
13 <h1>Share a list with another patron</h1>
15 [% IF errcode==1 && op %]<div class="dialog alert">The operation [% op %] is not supported.</div>[% END %]
16 [% IF errcode==1 && !op %]<div class="dialog alert">No operation parameter has been passed.</div>[% END %]
17 [% IF errcode==2 %]<div class="dialog alert">Invalid shelf number.</div>[% END %]
18 [% IF errcode==3 %]<div class="dialog alert">The feature of sharing lists is not in use in this library.</div>[% END %]
19 [% IF errcode==4 %]<div class="dialog alert">You can only share a list if you are the owner.</div>[% END %]
20 [% IF errcode==5 %]<div class="dialog alert">You cannot share a public list.</div>[% END %]
21 [% IF errcode==6 %]<div class="dialog alert">Sorry, but you did not enter any valid email address.</div>[% END %]
22 [% IF errcode==7 %]<div class="dialog alert">Sorry, but we could not accept this key. The invitation may have expired. Contact the patron who sent you the invitation.</div>[% END %]
23 [% IF errcode==8 %]<div class="dialog alert">As owner of a list you cannot accept an invitation for sharing it.</div>[% END %]
25 [% ELSIF op=='invite' %]
26 <form method="post" onsubmit="return $('#invite_address').val().trim()!='';">
27 <input type="hidden" name="op" value="conf_invite"/>
28 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]"/>
29 <fieldset class="rows">
31 <li><span class="label">List name:</span> [% shelfname %]</li>
32 <li><label for="invite_address">Email address:</label> <input id="invite_address" name="invite_address"/></li>
36 <fieldset class="action">
37 <input type="submit" value="Send" />
41 [% ELSIF op=='conf_invite' %]
42 [% IF approvedaddress %]
43 <p>An invitation to share list <i>[% shelfname %]</i> has been sent to [% approvedaddress %].</p>
46 <p>Something went wrong while processing the following addresses. Please check them. These are: [% failaddress %]</p>
48 [% IF approvedaddress %]
49 <p>You will receive an email notification if someone accepts your share within two weeks.</p>
51 <p><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Return to your lists</a></p>
53 [% ELSIF op=='accept' %]
54 [%# Nothing to do: we already display an error or we redirect. %]
56 [%# End of essential part %]
64 <div id="leftmenus" class="container">
65 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
72 [% INCLUDE 'opac-bottom.inc' %]