[% IF errcode==6 %]<div class="alert">Sorry, but you did not enter any valid email address.</div>[% END %]
[% 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 %]
[% IF errcode==8 %]<div class="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' %]
<div id="invite">
</fieldset>
<fieldset class="action">
<input type="submit" value="Send" class="btn" />
+ <a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves" class="cancel">Cancel</a>
</fieldset>
</form>
</div>
[% IF errcode==6 %]<div class="dialog alert">Sorry, but you did not enter any 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()!='';">
<fieldset class="action">
<input type="submit" value="Send" />
+ <a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves" class="cancel">Cancel</a>
</fieldset>
</form>
sub alphabet_ordinal {
my ($char, $alphabet) = @_;
- for( 0..$#$alphabet ) {
- return $_ if $char eq $alphabet->[$_];
+ for my $ord ( 0..$#$alphabet ) {
+ return $ord if $char eq $alphabet->[$ord];
}
return ''; #ignore missing chars
}