X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=opac%2Fopac-shelves.pl;h=e17e95f6045096fcd6fd126e17b5c225652f6c5a;hb=26b2bd1fe02012115a5bf9736e8d446f4bc52a9e;hp=b26f73aed3f9a830c14afdb8e2d5e401238b158e;hpb=b323a077592d2a2565e449858c681f0b1eab92b8;p=koha_fer diff --git a/opac/opac-shelves.pl b/opac/opac-shelves.pl index b26f73aed3..e17e95f604 100755 --- a/opac/opac-shelves.pl +++ b/opac/opac-shelves.pl @@ -13,9 +13,9 @@ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along with -# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place, -# Suite 330, Boston, MA 02111-1307 USA +# You should have received a copy of the GNU General Public License along +# with Koha; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. use strict; use warnings; @@ -29,6 +29,8 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user({ template_name => "opac-shelves.tmpl", query => $query, type => "opac", - authnotrequired => 1, + authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ), }); +$template->param(listsview => 1); + shelfpage('opac', $query, $template, $loggedinuser, $cookie);