View | Details | Raw Unified | Return to bug 10951
Collapse All | Expand All

(-)a/C4/Auth.pm (+1 lines)
Lines 1048-1053 sub checkauth { Link Here
1048
        PatronSelfRegistrationDefaultCategory => C4::Context->preference("PatronSelfRegistrationDefaultCategory"),
1048
        PatronSelfRegistrationDefaultCategory => C4::Context->preference("PatronSelfRegistrationDefaultCategory"),
1049
        persona            => C4::Context->preference("Persona"),
1049
        persona            => C4::Context->preference("Persona"),
1050
        opac_css_override => $ENV{'OPAC_CSS_OVERRIDE'},
1050
        opac_css_override => $ENV{'OPAC_CSS_OVERRIDE'},
1051
        NoLoginInstructions => C4::Context->preference("NoLoginInstructions"),
1051
    );
1052
    );
1052
1053
1053
    $template->param( OpacPublic => C4::Context->preference("OpacPublic"));
1054
    $template->param( OpacPublic => C4::Context->preference("OpacPublic"));
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 185-190 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
185
('NewItemsDefaultLocation','','','If set, all new items will have a location of the given Location Code ( Authorized Value type LOC )',''),
185
('NewItemsDefaultLocation','','','If set, all new items will have a location of the given Location Code ( Authorized Value type LOC )',''),
186
('noissuescharge','5','','Define maximum amount withstanding before check outs are blocked','Integer'),
186
('noissuescharge','5','','Define maximum amount withstanding before check outs are blocked','Integer'),
187
('noItemTypeImages','0',NULL,'If ON, disables item-type images','YesNo'),
187
('noItemTypeImages','0',NULL,'If ON, disables item-type images','YesNo'),
188
('NoLoginInstructions', '<h5>Don\'t have a password yet?</h5> <p> If you don\'t have a password yet, stop by the circulation desk the next time you\'re in the library. We\'ll happily set one up for you.</p> <h5>Don\'t have a library card?</h5> <p> If you don\'t have a library card, stop by your local library to sign up.  </p>', '60|10', 'Instructions when a person is not connected', 'Textarea'),
188
('NotesBlacklist','',NULL,'List of notes fields that should not appear in the title notes/description separator of details','free'),
189
('NotesBlacklist','',NULL,'List of notes fields that should not appear in the title notes/description separator of details','free'),
189
('NoticeCSS','',NULL,'Notices CSS url.','free'),
190
('NoticeCSS','',NULL,'Notices CSS url.','free'),
190
('NotifyBorrowerDeparture','30',NULL,'Define number of days before expiry where circulation is warned about patron account expiry','Integer'),
191
('NotifyBorrowerDeparture','30',NULL,'Define number of days before expiry where circulation is warned about patron account expiry','Integer'),
(-)a/installer/data/mysql/updatedatabase.pl (+7 lines)
Lines 7743-7748 if(CheckVersion($DBversion)) { Link Here
7743
    SetVersion($DBversion);
7743
    SetVersion($DBversion);
7744
}
7744
}
7745
7745
7746
$DBversion ="3.13.00.XXX";
7747
if ( CheckVersion($DBversion) ) {
7748
    $dbh->do("INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('NoLoginInstructions', '<h5>Don''t have a password yet?</h5> <p> If you don''t have a password yet, stop by the circulation desk the next time you''re in the library. We''ll happily set one up for you.</p> <h5>Don''t have a library card?</h5> <p> If you don''t have a library card, stop by your local library to sign up.  </p>', '60|10', 'Instructions when a person is not connected', 'Textarea')");
7749
    print "Upgrade to $DBversion done (Bug 10951: Add NoLoginInstructions pref)\n";
7750
    SetVersion($DBversion);
7751
}
7752
7746
=head1 FUNCTIONS
7753
=head1 FUNCTIONS
7747
7754
7748
=head2 TableExists($table)
7755
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+5 lines)
Lines 280-285 OPAC: Link Here
280
                homebranch: 'home library'
280
                homebranch: 'home library'
281
                holdingbranch: 'holding library'
281
                holdingbranch: 'holding library'
282
            - "is the logged in user's library. The second tab will contain all other items."
282
            - "is the logged in user's library. The second tab will contain all other items."
283
        -
284
            - "Show the following HTML when a person is not connected:"
285
            - pref: NoLoginInstructions
286
              type: textarea
287
              class: code
283
    Features:
288
    Features:
284
        -
289
        -
285
            - pref: opacuserlogin
290
            - pref: opacuserlogin
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth.tt (-3 / +8 lines)
Lines 86-93 please choose against which one you would like to authenticate: </p> Link Here
86
86
87
<input type="submit" value="Log In" class="submit" />
87
<input type="submit" value="Log In" class="submit" />
88
<div id="nologininstructions">
88
<div id="nologininstructions">
89
    <h5>Don't have a password yet?</h5><p> If you don't have a password yet, stop by the circulation desk the next time you're in the library. We'll happily set one up for you.</p>
89
[% IF NoLoginInstructions %] [% NoLoginInstructions %]
90
    <h5>Don't have a library card?</h5><p> If you don't have a library card, stop by your local library to sign up[% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]<span id="registrationinstructions"> or  <a href="/cgi-bin/koha/opac-memberentry.pl">register here</a></span>[% END %].  </p>
90
[% ELSE %]
91
	<h5>Don't have a password yet?</h5>
92
	<p>If you don't have a password yet, stop by the circulation desk the next time you're in the library. We'll happily set one up for you.</p>
93
	<h5>Don't have a library card?</h5>
94
	If you don't have a library card, stop by your local library to sign up
95
[% END %]
96
[% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]<span id="registrationinstructions"> or  <a href="/cgi-bin/koha/opac-memberentry.pl">register here</a></span>[% END %].
91
</div>
97
</div>
92
</form>
98
</form>
93
99
94
- 

Return to bug 10951