Koha/koha-tmpl/opac-tmpl/prog/en/modules/opac-shareshelf.tt
Galen Charlton 7e30b4dbc8 Bug 9032: (follow-up) wording tweaks
- "share his list" => "share a list"
- "any valid email" => "a valid email"

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2014-04-20 22:00:46 +00:00

74 lines
3.5 KiB
Text

[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo; Share a list
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="opac-shareshelf">
<div id="doc3" class="yui-t1">
<div id="bd">
[% INCLUDE 'masthead.inc' %]
<div id="yui-main">
<div class="yui-b"><div class="yui-g">
[%# This section contains the essential code for error messages and three operations: invite, confirm_invite and accept. %]
<h1>Share a list with another patron</h1>
[% IF errcode %]
[% IF errcode==1 && op %]<div class="dialog alert">The operation [% op %] is not supported.</div>[% END %]
[% IF errcode==1 && !op %]<div class="dialog alert">No operation parameter has been passed.</div>[% END %]
[% IF errcode==2 %]<div class="dialog alert">Invalid shelf number.</div>[% END %]
[% IF errcode==3 %]<div class="dialog alert">The feature of sharing lists is not in use in this library.</div>[% END %]
[% IF errcode==4 %]<div class="dialog alert">You can only share a list if you are the owner.</div>[% END %]
[% IF errcode==5 %]<div class="dialog alert">You cannot share a public list.</div>[% END %]
[% IF errcode==6 %]<div class="dialog alert">Sorry, but you did not enter a valid email address.</div>[% END %]
[% 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 %]
[% IF errcode==8 %]<div class="dialog alert">As owner of a list you cannot accept an invitation for sharing it.</div>[% END %]
<p><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Return to your lists</a></p>
[% ELSIF op=='invite' %]
<form method="post" onsubmit="return $('#invite_address').val().trim()!='';">
<input type="hidden" name="op" value="conf_invite"/>
<input type="hidden" name="shelfnumber" value="[% shelfnumber %]"/>
<fieldset class="rows">
<ol>
<li><span class="label">List name:</span> [% shelfname %]</li>
<li><label for="invite_address">Email address:</label> <input id="invite_address" name="invite_address"/></li>
</ol>
</fieldset>
<fieldset class="action">
<input type="submit" value="Send" />
<a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves" class="cancel">Cancel</a>
</fieldset>
</form>
[% ELSIF op=='conf_invite' %]
[% IF approvedaddress %]
<p>An invitation to share list <i>[% shelfname %]</i> has been sent to [% approvedaddress %].</p>
[% END %]
[% IF failaddress %]
<p>Something went wrong while processing the following addresses. Please check them. These are: [% failaddress %]</p>
[% END %]
[% IF approvedaddress %]
<p>You will receive an email notification if someone accepts your share within two weeks.</p>
[% END %]
<p><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Return to your lists</a></p>
[% ELSIF op=='accept' %]
[%# Nothing to do: we already display an error or we redirect. %]
[% END %]
[%# End of essential part %]
</div>
</div>
</div>
[% IF ( OpacNav ) %]
<div class="yui-b">
<div id="leftmenus" class="container">
[% INCLUDE 'navigation.inc' IsPatronPage=1 %]
</div>
</div>
[% END %]
</div>
</div>
[% INCLUDE 'opac-bottom.inc' %]