Adds a login message, instead of a "New List" link, to the public list table, if a non-logged in user views the table. --- .../opac-tmpl/prog/en/modules/opac-shelves.tmpl | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl index 643b478..c15bdc3 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl @@ -386,7 +386,11 @@ $(document).ready(function(){ <!-- TMPL_ELSE --> <div id="publicshelves" class="tab-container" style="display:none;"> <!-- /TMPL_IF --> + <!-- TMPL_IF NAME="loggedinusername" --> <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_VAR name='pagination_bar'--> <table> -- 1.5.6.5 _______________________________________________ Koha-patches mailing list Koha-patches@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-patches