From 20ee769a6bf8560136e7becdbef0ebe92b858256 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 21 Nov 2007 14:56:10 -0600 Subject: [PATCH] More changes to opac suggestions, including enabling the AnonSuggestions system preference in Auth.pm and hiding delete option from anonymous users. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Auth.pm | 1 + .../prog/en/includes/doc-head-close.inc | 4 +++ .../prog/en/modules/opac-detail.tmpl | 4 +-- .../prog/en/modules/opac-suggestions.tmpl | 30 +++++++++---------- 4 files changed, 22 insertions(+), 17 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 156ca9727c..cd775c4f7a 100755 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -270,6 +270,7 @@ sub get_template_and_user { $LibraryNameTitle =~ s/<(?:[^<>'"]|'(?:[^']*)'|"(?:[^"]*)")*>//sg; $template->param( KohaAdminEmailAddress => "" . C4::Context->preference("KohaAdminEmailAddress"), + AnonSuggestions => "" . C4::Context->preference("AnonSuggestions"), suggestion => "" . C4::Context->preference("suggestion"), virtualshelves => "" . C4::Context->preference("virtualshelves"), OpacNav => "" . C4::Context->preference("OpacNav"), diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc b/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc index 3bd8f9c893..e4d2c2662e 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc @@ -34,6 +34,10 @@ var MSG_NRECORDS_IN_BASKET = _("already in the bag"); var MSG_NO_RECORD_SELECTED = _("No item was selected"); var MSG_NO_RECORD_ADDED = _("No item was added to your book bag"); + $(document).ready(function() { + //verify_images(); + }); +