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

(-)a/installer/data/mysql/atomicupdate/bug_23420_add_OPACSelfRegistrationHeader_syspref.perl (+7 lines)
Line 0 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do( "INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('OPACSelfRegistrationHeader', '', 'Insert HTML above the self registration form', '70|10', 'Textarea')"); 
4
    
5
    # Always end with this (adjust the bug info)
6
    NewVersion( $DBversion, 25100, "Add OPACSelfRegistrationHeader system preference");
7
}
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 434-439 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
434
('OPACResultsLibrary', 'homebranch', 'homebranch|holdingbranch', 'Defines whether the OPAC displays the holding or home branch in search results when using XSLT', 'Choice'),
434
('OPACResultsLibrary', 'homebranch', 'homebranch|holdingbranch', 'Defines whether the OPAC displays the holding or home branch in search results when using XSLT', 'Choice'),
435
('OPACResultsSidebar','','70|10','Define HTML to be included on the search results page, underneath the facets sidebar','Textarea'),
435
('OPACResultsSidebar','','70|10','Define HTML to be included on the search results page, underneath the facets sidebar','Textarea'),
436
('OPACSearchForTitleIn','<li><a href=\"https://worldcat.org/search?q={TITLE}\" target=\"_blank\">Other Libraries (WorldCat)</a></li>\n<li><a href=\"https://scholar.google.com/scholar?q={TITLE}\" target=\"_blank\">Other Databases (Google Scholar)</a></li>\n<li><a href=\"https://www.bookfinder.com/search/?author={AUTHOR}&amp;title={TITLE}&amp;st=xl&amp;ac=qr\" target=\"_blank\">Online Stores (Bookfinder.com)</a></li>\n<li><a href=\"https://openlibrary.org/search?author=({AUTHOR})&title=({TITLE})\" target=\"_blank\">Open Library (openlibrary.org)</a></li>','70|10','Enter the HTML that will appear in the \'Search for this title in\' box on the detail page in the OPAC.  Enter {TITLE}, {AUTHOR}, or {ISBN} in place of their respective variables in the URL. Leave blank to disable \'More Searches\' menu.','Textarea'),
436
('OPACSearchForTitleIn','<li><a href=\"https://worldcat.org/search?q={TITLE}\" target=\"_blank\">Other Libraries (WorldCat)</a></li>\n<li><a href=\"https://scholar.google.com/scholar?q={TITLE}\" target=\"_blank\">Other Databases (Google Scholar)</a></li>\n<li><a href=\"https://www.bookfinder.com/search/?author={AUTHOR}&amp;title={TITLE}&amp;st=xl&amp;ac=qr\" target=\"_blank\">Online Stores (Bookfinder.com)</a></li>\n<li><a href=\"https://openlibrary.org/search?author=({AUTHOR})&title=({TITLE})\" target=\"_blank\">Open Library (openlibrary.org)</a></li>','70|10','Enter the HTML that will appear in the \'Search for this title in\' box on the detail page in the OPAC.  Enter {TITLE}, {AUTHOR}, or {ISBN} in place of their respective variables in the URL. Leave blank to disable \'More Searches\' menu.','Textarea'),
437
('OPACSelfRegistrationHeader','','70|10','Use HTML tags to add content above the self registration form','Textarea'),
437
('OpacSeparateHoldings','0',NULL,'Separate current branch holdings from other holdings (OPAC)','YesNo'),
438
('OpacSeparateHoldings','0',NULL,'Separate current branch holdings from other holdings (OPAC)','YesNo'),
438
('OpacSeparateHoldingsBranch','homebranch','homebranch|holdingbranch','Branch used to separate holdings (OPAC)','Choice'),
439
('OpacSeparateHoldingsBranch','homebranch','homebranch|holdingbranch','Branch used to separate holdings (OPAC)','Choice'),
439
('opacSerialDefaultTab','subscriptions','holdings|serialcollection|subscriptions','Define the default tab for serials in OPAC.','Choice'),
440
('opacSerialDefaultTab','subscriptions','holdings|serialcollection|subscriptions','Define the default tab for serials in OPAC.','Choice'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+6 lines)
Lines 342-347 OPAC: Link Here
342
                  holdingbranch: Holding library
342
                  holdingbranch: Holding library
343
            - "is the default sort field for the holdings table"
343
            - "is the default sort field for the holdings table"
344
        -
344
        -
345
            - "Show the following HTML above the OPAC self registration form:"
346
            - pref: OPACSelfRegistrationHeader
347
              type: textarea
348
              syntax: text/html
349
              class: code
350
        -
345
            - pref: OpacSuggestionManagedBy
351
            - pref: OpacSuggestionManagedBy
346
              choices:
352
              choices:
347
                  yes: Show
353
                  yes: Show
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt (-2 / +5 lines)
Lines 59-65 Link Here
59
                [% ELSE %]
59
                [% ELSE %]
60
                    <div id="add-account">
60
                    <div id="add-account">
61
                [% END %]
61
                [% END %]
62
62
                [% IF Koha.Preference( 'OPACSelfRegistrationHeader' ) && action != 'edit' %]
63
                    <div id="selfregistrationheader">
64
                        [% Koha.Preference( 'OPACSelfRegistrationHeader' ) | $raw %]
65
                    </div>
66
                [% END %]
63
                [% IF action == 'edit' %]
67
                [% IF action == 'edit' %]
64
                    [% UNLESS OPACPatronDetails %]
68
                    [% UNLESS OPACPatronDetails %]
65
                        <div class="alert alert-info">To make changes to your record please contact the library.</div>
69
                        <div class="alert alert-info">To make changes to your record please contact the library.</div>
66
- 

Return to bug 25100