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

(-)a/C4/Auth.pm (+1 lines)
Lines 1044-1049 sub checkauth { Link Here
1044
        PatronSelfRegistrationDefaultCategory => C4::Context->preference("PatronSelfRegistrationDefaultCategory"),
1044
        PatronSelfRegistrationDefaultCategory => C4::Context->preference("PatronSelfRegistrationDefaultCategory"),
1045
        persona            => C4::Context->preference("Persona"),
1045
        persona            => C4::Context->preference("Persona"),
1046
        opac_css_override => $ENV{'OPAC_CSS_OVERRIDE'},
1046
        opac_css_override => $ENV{'OPAC_CSS_OVERRIDE'},
1047
        NoLoginInstructions => C4::Context->preference("NoLoginInstructions"),
1047
    );
1048
    );
1048
1049
1049
    $template->param( OpacPublic => C4::Context->preference("OpacPublic"));
1050
    $template->param( OpacPublic => C4::Context->preference("OpacPublic"));
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 182-187 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
182
('NewItemsDefaultLocation','','','If set, all new items will have a location of the given Location Code ( Authorized Value type LOC )',''),
182
('NewItemsDefaultLocation','','','If set, all new items will have a location of the given Location Code ( Authorized Value type LOC )',''),
183
('noissuescharge','5','','Define maximum amount withstanding before check outs are blocked','Integer'),
183
('noissuescharge','5','','Define maximum amount withstanding before check outs are blocked','Integer'),
184
('noItemTypeImages','0',NULL,'If ON, disables item-type images','YesNo'),
184
('noItemTypeImages','0',NULL,'If ON, disables item-type images','YesNo'),
185
('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'),
185
('NotesBlacklist','',NULL,'List of notes fields that should not appear in the title notes/description separator of details','free'),
186
('NotesBlacklist','',NULL,'List of notes fields that should not appear in the title notes/description separator of details','free'),
186
('NoticeCSS','',NULL,'Notices CSS url.','free'),
187
('NoticeCSS','',NULL,'Notices CSS url.','free'),
187
('NotifyBorrowerDeparture','30',NULL,'Define number of days before expiry where circulation is warned about patron account expiry','Integer'),
188
('NotifyBorrowerDeparture','30',NULL,'Define number of days before expiry where circulation is warned about patron account expiry','Integer'),
(-)a/installer/data/mysql/updatedatabase.pl (+8 lines)
Lines 7162-7167 if ( CheckVersion($DBversion) ) { Link Here
7162
    SetVersion($DBversion);
7162
    SetVersion($DBversion);
7163
}
7163
}
7164
7164
7165
$DBversion ="3.13.00.XXX";
7166
if ( CheckVersion($DBversion) ) {
7167
    $dbh->do("INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) 
7168
    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')");
7169
    print "Upgrade to $DBversion done (Bug 10951: Add NoLoginInstructions pref)\n";
7170
    SetVersion($DBversion);
7171
}
7172
7165
=head1 FUNCTIONS
7173
=head1 FUNCTIONS
7166
7174
7167
=head2 TableExists($table)
7175
=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