Bug 12052: New syspref to display message on the OPAC patron summary page
Test plan: Fill the OPACMySummaryNote with HTML code or just text. The content should be displayed at the OPAC on the summary page for patrons. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Work as described. No koha-qa errors Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Works as described, passes tests and QA script. Rephrased the pref text a little bit, using 'logged in' instead of 'connected', also added " so the description appears correctly in the pref editor. Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
parent
3f5636cac3
commit
f82d22b0df
5 changed files with 20 additions and 0 deletions
|
@ -243,6 +243,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
|
||||||
('OpacMaxItemsToDisplay','50','','Max items to display at the OPAC on a biblio detail','Integer'),
|
('OpacMaxItemsToDisplay','50','','Max items to display at the OPAC on a biblio detail','Integer'),
|
||||||
('OPACMobileUserCSS','',NULL,'Include the following CSS for the mobile view on all pages in the OPAC:','free'),
|
('OPACMobileUserCSS','',NULL,'Include the following CSS for the mobile view on all pages in the OPAC:','free'),
|
||||||
('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'),
|
('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'),
|
||||||
|
('OPACMySummaryNote','','','Note to display on the patron summary page. This note only appears if the patron is connected.','Free'),
|
||||||
('OpacNav','Important links here.','70|10','Use HTML tags to add navigational links to the left-hand navigational bar in OPAC','Textarea'),
|
('OpacNav','Important links here.','70|10','Use HTML tags to add navigational links to the left-hand navigational bar in OPAC','Textarea'),
|
||||||
('OpacNavBottom','Important links here.','70|10','Use HTML tags to add navigational links to the left-hand navigational bar in OPAC','Textarea'),
|
('OpacNavBottom','Important links here.','70|10','Use HTML tags to add navigational links to the left-hand navigational bar in OPAC','Textarea'),
|
||||||
('OpacNavRight','','70|10','Show the following HTML in the right hand column of the main page under the main login form','Textarea'),
|
('OpacNavRight','','70|10','Show the following HTML in the right hand column of the main page under the main login form','Textarea'),
|
||||||
|
|
|
@ -8120,6 +8120,15 @@ if ( CheckVersion($DBversion) ) {
|
||||||
SetVersion($DBversion);
|
SetVersion($DBversion);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$DBversion = "3.15.00.XXX";
|
||||||
|
if(CheckVersion($DBversion)) {
|
||||||
|
$dbh->do(q|
|
||||||
|
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')
|
||||||
|
|);
|
||||||
|
print "Upgrade to $DBversion done (Bug 12052: Add OPACMySummaryNote syspref)\n";
|
||||||
|
SetVersion($DBversion);
|
||||||
|
}
|
||||||
|
|
||||||
=head1 FUNCTIONS
|
=head1 FUNCTIONS
|
||||||
|
|
||||||
=head2 TableExists($table)
|
=head2 TableExists($table)
|
||||||
|
|
|
@ -236,6 +236,10 @@ OPAC:
|
||||||
- pref: OPACMySummaryHTML
|
- pref: OPACMySummaryHTML
|
||||||
type: textarea
|
type: textarea
|
||||||
class: code
|
class: code
|
||||||
|
-
|
||||||
|
- "Note to display on the patron summary page. This note only appears if the patron is logged in:"
|
||||||
|
- pref: OPACMySummaryNote
|
||||||
|
type: textarea
|
||||||
-
|
-
|
||||||
- "Include the following HTML under the facets in OPAC search results:"
|
- "Include the following HTML under the facets in OPAC search results:"
|
||||||
- pref: OPACResultsSidebar
|
- pref: OPACResultsSidebar
|
||||||
|
|
|
@ -80,6 +80,9 @@
|
||||||
</div>
|
</div>
|
||||||
[% END # / IF patron_flagged %]
|
[% END # / IF patron_flagged %]
|
||||||
|
|
||||||
|
[% SET OPACMySummaryNote = Koha.Preference('OPACMySummaryNote') %]
|
||||||
|
[% IF OPACMySummaryNote %][% OPACMySummaryNote %][% END %]
|
||||||
|
|
||||||
<div id="opac-user-views" class="toptabs">
|
<div id="opac-user-views" class="toptabs">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#opac-user-checkouts">Checked out ([% issues_count %])</a></li>
|
<li><a href="#opac-user-checkouts">Checked out ([% issues_count %])</a></li>
|
||||||
|
|
|
@ -113,6 +113,9 @@ var MSG_CONFIRM_RESUME_HOLDS = _("Are you sure you want to resume all suspended
|
||||||
[% END %]
|
[% END %]
|
||||||
</ul></div>
|
</ul></div>
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
|
[% SET OPACMySummaryNote = Koha.Preference('OPACMySummaryNote') %]
|
||||||
|
[% IF OPACMySummaryNote %][% OPACMySummaryNote %][% END %]
|
||||||
|
|
||||||
<div id="opac-user-views" class="toptabs">
|
<div id="opac-user-views" class="toptabs">
|
||||||
<ul>
|
<ul>
|
||||||
|
|
Loading…
Reference in a new issue