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

(-)a/C4/Auth.pm (+1 lines)
Lines 1020-1025 sub checkauth { Link Here
1020
        PatronSelfRegistrationDefaultCategory => C4::Context->preference("PatronSelfRegistrationDefaultCategory"),
1020
        PatronSelfRegistrationDefaultCategory => C4::Context->preference("PatronSelfRegistrationDefaultCategory"),
1021
        persona            => C4::Context->preference("Persona"),
1021
        persona            => C4::Context->preference("Persona"),
1022
        opac_css_override => $ENV{'OPAC_CSS_OVERRIDE'},
1022
        opac_css_override => $ENV{'OPAC_CSS_OVERRIDE'},
1023
        NoLoginInstructions => C4::Context->preference("NoLoginInstructions"),
1023
    );
1024
    );
1024
1025
1025
    $template->param( OpacPublic => C4::Context->preference("OpacPublic"));
1026
    $template->param( OpacPublic => C4::Context->preference("OpacPublic"));
(-)a/installer/data/mysql/sysprefs.sql (-1 / +2 lines)
Lines 418-422 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
418
('XSLTResultsDisplay','default','','Enable XSL stylesheet control over results page display on intranet','Free'),
418
('XSLTResultsDisplay','default','','Enable XSL stylesheet control over results page display on intranet','Free'),
419
('yuipath','local','local|http://yui.yahooapis.com/2.5.1/build','Insert the path to YUI libraries, choose local if you use koha offline','Choice'),
419
('yuipath','local','local|http://yui.yahooapis.com/2.5.1/build','Insert the path to YUI libraries, choose local if you use koha offline','Choice'),
420
('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'),
420
('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'),
421
('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo')
421
('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo'),
422
('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')
422
;
423
;
(-)a/installer/data/mysql/updatedatabase.pl (+8 lines)
Lines 7155-7160 if ( CheckVersion($DBversion) ) { Link Here
7155
    SetVersion($DBversion);
7155
    SetVersion($DBversion);
7156
}
7156
}
7157
7157
7158
$DBversion ="3.13.00.XXX";
7159
if ( CheckVersion($DBversion) ) {
7160
    $dbh->do("INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) 
7161
    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')");
7162
    print "Upgrade to $DBversion done (Bug 10951: Add NoLoginInstructions pref)\n";
7163
    SetVersion($DBversion);
7164
}
7165
7158
=head1 FUNCTIONS
7166
=head1 FUNCTIONS
7159
7167
7160
=head2 TableExists($table)
7168
=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