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

(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 243-248 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
243
('OpacMaxItemsToDisplay','50','','Max items to display at the OPAC on a biblio detail','Integer'),
243
('OpacMaxItemsToDisplay','50','','Max items to display at the OPAC on a biblio detail','Integer'),
244
('OPACMobileUserCSS','',NULL,'Include the following CSS for the mobile view on all pages in the OPAC:','free'),
244
('OPACMobileUserCSS','',NULL,'Include the following CSS for the mobile view on all pages in the OPAC:','free'),
245
('OPACMySummaryHTML','','70|10','Enter the HTML that will appear in a column on the \'my summary\' and \'my reading history\' tabs when a user is logged in to the OPAC. Enter {BIBLIONUMBER}, {TITLE}, {AUTHOR}, or {ISBN} in place of their respective variables in the HTML. Leave blank to disable.','Textarea'),
245
('OPACMySummaryHTML','','70|10','Enter the HTML that will appear in a column on the \'my summary\' and \'my reading history\' tabs when a user is logged in to the OPAC. Enter {BIBLIONUMBER}, {TITLE}, {AUTHOR}, or {ISBN} in place of their respective variables in the HTML. Leave blank to disable.','Textarea'),
246
('OPACMySummaryNote','','','Note to display on the patron summary page. This note only appears if the patron is connected.','Free'),
246
('OpacNav','Important links here.','70|10','Use HTML tags to add navigational links to the left-hand navigational bar in OPAC','Textarea'),
247
('OpacNav','Important links here.','70|10','Use HTML tags to add navigational links to the left-hand navigational bar in OPAC','Textarea'),
247
('OpacNavBottom','Important links here.','70|10','Use HTML tags to add navigational links to the left-hand navigational bar in OPAC','Textarea'),
248
('OpacNavBottom','Important links here.','70|10','Use HTML tags to add navigational links to the left-hand navigational bar in OPAC','Textarea'),
248
('OpacNavRight','','70|10','Show the following HTML in the right hand column of the main page under the main login form','Textarea'),
249
('OpacNavRight','','70|10','Show the following HTML in the right hand column of the main page under the main login form','Textarea'),
(-)a/installer/data/mysql/updatedatabase.pl (+9 lines)
Lines 8106-8111 if(CheckVersion($DBversion)) { Link Here
8106
    SetVersion($DBversion);
8106
    SetVersion($DBversion);
8107
}
8107
}
8108
8108
8109
$DBversion = "3.15.00.XXX";
8110
if(CheckVersion($DBversion)) {
8111
    $dbh->do(q|
8112
        INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('OPACMySummaryNote','','','Note to display on the patron summary page. This note only appears if the patron is connected.','Free')
8113
    |);
8114
    print "Upgrade to $DBversion done (Bug 12052: Add OPACMySummaryNote syspref)\n";
8115
    SetVersion($DBversion);
8116
}
8117
8109
=head1 FUNCTIONS
8118
=head1 FUNCTIONS
8110
8119
8111
=head2 TableExists($table)
8120
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+4 lines)
Lines 237-242 OPAC: Link Here
237
              type: textarea
237
              type: textarea
238
              class: code
238
              class: code
239
        -
239
        -
240
            - Note to display on the patron summary page. This note only appears if the patron is connected:
241
            - pref: OPACMySummaryNote
242
              type: textarea
243
        -
240
            - "Include the following HTML under the facets in OPAC search results:"
244
            - "Include the following HTML under the facets in OPAC search results:"
241
            - pref: OPACResultsSidebar
245
            - pref: OPACResultsSidebar
242
              type: textarea
246
              type: textarea
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (+3 lines)
Lines 80-85 Link Here
80
                        </div>
80
                        </div>
81
                    [% END # / IF patron_flagged %]
81
                    [% END # / IF patron_flagged %]
82
82
83
                    [% SET OPACMySummaryNote = Koha.Preference('OPACMySummaryNote') %]
84
                    [% IF OPACMySummaryNote %][% OPACMySummaryNote %][% END %]
85
83
                    <div id="opac-user-views" class="toptabs">
86
                    <div id="opac-user-views" class="toptabs">
84
                        <ul>
87
                        <ul>
85
                            <li><a href="#opac-user-checkouts">Checked out ([% issues_count %])</a></li>
88
                            <li><a href="#opac-user-checkouts">Checked out ([% issues_count %])</a></li>
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt (-1 / +3 lines)
Lines 113-118 var MSG_CONFIRM_RESUME_HOLDS = _("Are you sure you want to resume all suspended Link Here
113
            [% END %]
113
            [% END %]
114
        </ul></div>
114
        </ul></div>
115
        [% END %]
115
        [% END %]
116
117
        [% SET OPACMySummaryNote = Koha.Preference('OPACMySummaryNote') %]
118
        [% IF OPACMySummaryNote %][% OPACMySummaryNote %][% END %]
116
        
119
        
117
<div id="opac-user-views" class="toptabs">
120
<div id="opac-user-views" class="toptabs">
118
        <ul>
121
        <ul>
119
- 

Return to bug 12052