Bug 3347: Follow-up patch. Added logic for non-loggedin user.

Adds a login message, instead of a "New List" link, to the public list table, if a non-logged in user views the table.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
Garry Collum 2009-06-20 17:00:53 -04:00 committed by Galen Charlton
parent 1a8aac38b6
commit 5ca73ecbcc

View file

@ -386,7 +386,11 @@ $(document).ready(function(){
<!-- TMPL_ELSE --> <!-- TMPL_ELSE -->
<div id="publicshelves" class="tab-container" style="display:none;"> <div id="publicshelves" class="tab-container" style="display:none;">
<!-- /TMPL_IF --> <!-- /TMPL_IF -->
<!-- TMPL_IF NAME="loggedinusername" -->
<a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New List</a> <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New List</a>
<!-- TMPL_ELSE -->
<div><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new Lists.</div>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="shelvesloop" --> <!-- TMPL_IF NAME="shelvesloop" -->
<!-- TMPL_VAR name='pagination_bar'--> <!-- TMPL_VAR name='pagination_bar'-->
<table> <table>