Bug 6739: (follow-up) yet more fixes
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Sun, 22 Sep 2013 14:20:19 +0000 (16:20 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 5 May 2014 01:54:14 +0000 (01:54 +0000)
- Fixes a typo in one of the OPAC messages: "you account"
- Fixes the updatedatabase script to use 1 instead of yes for the
  system preference default matching the sysprefs.sql file.
- Fixes capitalization "Don't Block" in system preference
  description.
- Adding . to the end of the warning, when renewals are blocked.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref
koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt
koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt

index 9fc0be3..e436b24 100755 (executable)
@@ -7146,7 +7146,7 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
         INSERT INTO systempreferences (variable,value,explanation,options,type)
         VALUES (
             'BlockExpiredPatronOpacActions',
-            'yes',
+            '1',
             'Set whether an expired patron can perform opac actions such as placing holds or renew books, can be overridden on a per patron-type basis',
             NULL,
             'YesNo'
index d31d10a..f16c006 100644 (file)
@@ -534,7 +534,7 @@ OPAC:
             - pref: BlockExpiredPatronOpacActions
               choices:
                 yes: "Block"
-                no: "Don't Block"
+                no: "Don't block"
             - expired patrons from opac actions such as placing a hold or renew, the setting for a patron category takes priority over this
 
     Privacy:
index e8fe8bf..3774c06 100644 (file)
               <div id="bad_data" class="dialog alert">ERROR: Internal error: incomplete hold request.</div>
             [% END %]
             [% IF ( expired_patron ) %]
-                <div id="expired_patron" class="dialog alert"><p><strong>Sorry</strong>, you cannot place holds because your library card has expired.</p><p>Please contact your librarian if you wish to renew your card</p></div>
+                <div id="expired_patron" class="dialog alert"><p><strong>Sorry</strong>, you cannot place holds because your library card has expired.</p><p>Please contact your librarian if you wish to renew your card.</p></div>
             [% END %]
           [% ELSE %]
             [% IF ( none_available ) %]
index b966bc7..3bf227d 100644 (file)
@@ -100,7 +100,7 @@ var MSG_CONFIRM_RESUME_HOLDS  = _("Are you sure you want to resume all suspended
 
         [% IF ( BORROWER_INF.warnexpired ) %]
         <div class="dialog alert" id="warnexpired">
-            <strong>Please note:</strong><span> You account has expired as of [% BORROWER_INF.warnexpired | $KohaDates %]. Please contact the library if you wish to renew your account.</span>
+            <strong>Please note: </strong><span>Your account has expired as of [% BORROWER_INF.warnexpired | $KohaDates %]. Please contact the library if you wish to renew your account.</span>
         </div>
         [% END %]