Bugzilla – Attachment 27151 Details for
Bug 12052
Display a patron message on the summary page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 12052: Display a patron message on the summary page
PASSED-QA-Bug-12052-Display-a-patron-message-on-th.patch (text/plain), 5.35 KB, created by
Katrin Fischer
on 2014-04-15 21:42:24 UTC
(
hide
)
Description:
[PASSED QA] Bug 12052: Display a patron message on the summary page
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2014-04-15 21:42:24 UTC
Size:
5.35 KB
patch
obsolete
>From 8f3f99c7858e9ce05ff8f67b82fdc77ea78aada1 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 9 Apr 2014 10:24:24 +0200 >Subject: [PATCH] [PASSED QA] Bug 12052: Display a patron message on the > 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. >--- > installer/data/mysql/sysprefs.sql | 1 + > installer/data/mysql/updatedatabase.pl | 9 +++++++++ > .../intranet-tmpl/prog/en/modules/admin/preferences/opac.pref | 4 ++++ > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 3 +++ > koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt | 3 +++ > 5 files changed, 20 insertions(+) > >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index 661910b..9bacfde 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -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'), > ('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'), >+('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'), > ('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'), >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 6db5569..e04eed1 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -8120,6 +8120,15 @@ if ( CheckVersion($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 > > =head2 TableExists($table) >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >index d541440..038cff1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >@@ -237,6 +237,10 @@ OPAC: > type: textarea > 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:" > - pref: OPACResultsSidebar > type: textarea >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >index 8fb30c1..95c597c 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >@@ -80,6 +80,9 @@ > </div> > [% END # / IF patron_flagged %] > >+ [% SET OPACMySummaryNote = Koha.Preference('OPACMySummaryNote') %] >+ [% IF OPACMySummaryNote %][% OPACMySummaryNote %][% END %] >+ > <div id="opac-user-views" class="toptabs"> > <ul> > <li><a href="#opac-user-checkouts">Checked out ([% issues_count %])</a></li> >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt >index 1c572ef..e9fe2d2 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt >@@ -113,6 +113,9 @@ var MSG_CONFIRM_RESUME_HOLDS = _("Are you sure you want to resume all suspended > [% END %] > </ul></div> > [% END %] >+ >+ [% SET OPACMySummaryNote = Koha.Preference('OPACMySummaryNote') %] >+ [% IF OPACMySummaryNote %][% OPACMySummaryNote %][% END %] > > <div id="opac-user-views" class="toptabs"> > <ul> >-- >1.8.3.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 12052
:
26914
|
27076
|
27097
|
27150
| 27151