Bug 20489: Remove warnings from the interface
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 28 Mar 2018 17:49:18 +0000 (14:49 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 20 Apr 2018 15:24:00 +0000 (12:24 -0300)
Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt
mainpage.pl
opac/opac-user.pl

index 26480cc..8a97473 100644 (file)
                 [% END %]
             </div> <!-- /.col-sm-2 -->
             <div class="col-sm-9">
-                [% IF adminWarning %]
-                    <div id="adminwarning" class="dialog alert">
-                        <p><strong>Warning:</strong> You are logged in as the database administrative user. This is not recommended because some parts of Koha will not function as expected when using this account.</p>
-                        <p>Please log in instead with a regular staff account. To create a staff account, create a library, a patron category 'Staff' and add a new patron. Then give this patron permissions from 'More' in the toolbar.</p>
-                        <p><a class="btn btn-default btn-sm" href="/cgi-bin/koha/members/members-home.pl"><i class="fa fa-plus"> </i> Create patron</a></p>
-                    </div>
-                [% END %]
                 <div class="row">
                     <div class="col-xs-6">
                         <ul class="biglinks-list">
index 9ce4add..6604cb6 100644 (file)
             <div class="span10">
                 <div id="userdetails" class="maincontent">
 
-                    [% IF adminWarning %]
-                        <div id="adminwarning" class="dialog alert">
-                            <p>
-<strong><i class="fa fa-exclamation-triangle"> </i> Warning:</strong>
-Using this account is not recommended because some parts of Koha will not function as expected. Instead, please log in with a different account.
-<a class="btn btn-small" href="/cgi-bin/koha/opac-main.pl?logout.x=1">
-<i class="fa fa-sign-out"> </i> Log out</a>
-                            </p>
-                        </div>
-                    [% END %]
-
                     [% INCLUDE 'opac-note.inc' %]
 
                     <h2>Hello, [% INCLUDE 'patron-title.inc' category_type = BORROWER_INFO.category_type firstname = BORROWER_INFO.firstname surname = BORROWER_INFO.surname othernames = BORROWER_INFO.othernames cardnumber = BORROWER_INFO.cardnumber %]
index 47f56ad..da6aaee 100755 (executable)
@@ -84,11 +84,4 @@ $template->param(
     pending_article_requests       => $pending_article_requests,
 );
 
-#
-# warn user if they are using mysql/admin login
-#
-unless ($loggedinuser) {
-    $template->param(adminWarning => 1);
-}
-
 output_html_with_http_headers $query, $cookie, $template->output;
index ab3d8a7..3400f39 100755 (executable)
@@ -88,10 +88,6 @@ my $canrenew = 1;
 
 $template->param( shibbolethAuthentication => C4::Context->config('useshibboleth') );
 
-if (!$borrowernumber) {
-    $template->param( adminWarning => 1 );
-}
-
 # get borrower information ....
 my $patron = Koha::Patrons->find( $borrowernumber );
 my $borr = $patron->unblessed;