2 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Share a list
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% BLOCK cssinclude %][% END %]
7 <body id="opac-shareshelf" class="scrollto">
8 [% INCLUDE 'masthead.inc' %]
10 <ul class="breadcrumb">
11 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
12 [% IF ( loggedinusername ) %]
13 <li><a href="/cgi-bin/koha/opac-user.pl">[% FOREACH USER_INF IN USER_INFO %][% USER_INF.title %] [% USER_INF.firstname %] [% USER_INF.surname %][% END %]</a> <span class="divider">›</span></li>
16 </ul> <!-- / .breadcrumb -->
18 <div class="container-fluid">
19 <div class="row-fluid">
23 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
28 [%# This section contains the essential code for error messages and three operations: invite, confirm_invite and accept. %]
29 <h2>Share a list with another patron</h2>
31 <div id="shareshelf" class="maincontent">
34 [% IF errcode==1 && op %]<div class="alert">The operation [% op %] is not supported.</div>[% END %]
35 [% IF errcode==1 && !op %]<div class="alert">No operation parameter has been passed.</div>[% END %]
36 [% IF errcode==2 %]<div class="alert">Invalid shelf number.</div>[% END %]
37 [% IF errcode==3 %]<div class="alert">The feature of sharing lists is not in use in this library.</div>[% END %]
38 [% IF errcode==4 %]<div class="alert">You can only share a list if you are the owner.</div>[% END %]
39 [% IF errcode==5 %]<div class="alert">You cannot share a public list.</div>[% END %]
40 [% IF errcode==6 %]<div class="alert">Sorry, but you did not enter a valid email address.</div>[% END %]
41 [% IF errcode==7 %]<div class="alert">Sorry, but we could not accept this key. The invitation may have expired. Contact the patron who sent you the invitation.</div>[% END %]
42 [% IF errcode==8 %]<div class="alert">As owner of a list you cannot accept an invitation for sharing it.</div>[% END %]
43 <p><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Return to your lists</a></p>
45 [% ELSIF op=='invite' %]
47 <form method="post" onsubmit="return $.trim($('#invite_address').val())!='';">
48 <fieldset class="rows">
50 <input type="hidden" name="op" value="conf_invite"/>
51 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]"/>
52 <li><label for="name">List name:</label> [% shelfname %]</li>
54 <label for="invite_address">Email address:</label>
55 <input id="invite_address" name="invite_address"/>
59 <fieldset class="action">
60 <input type="submit" value="Send" class="btn" />
61 <a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves" class="cancel">Cancel</a>
66 [% ELSIF op=='conf_invite' %]
67 <div id="conf_invite">
68 [% IF approvedaddress %]
69 <p>An invitation to share list <i>[% shelfname %]</i> has been sent to [% approvedaddress %].</p>
72 <p>Something went wrong while processing the following addresses. Please check them. These are: [% failaddress %]</p>
74 [% IF approvedaddress %]
75 <p>You will receive an email notification if someone accepts your share within two weeks.</p>
77 <p><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Return to your lists</a></p>
80 [% ELSIF op=='accept' %]
81 [%# Nothing to do: we already display an error or we redirect. %]
84 </div> <!-- / .span10 -->
85 </div> <!-- / .maincontent -->
86 [%# End of essential part %]
88 </div> <!-- / .row-fluid -->
89 </div> <!-- / .container-fluid -->
90 </div> <!-- / .main -->
91 [% INCLUDE 'opac-bottom.inc' %]
92 [% BLOCK jsinclude %][% END %]