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

(-)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 ( C4::Context->preference("Version") < TransformToNum($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