Bugzilla – Attachment 48384 Details for
Bug 15008
Add custom HTML areas to circulation and reports home pages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15008 - Add custom HTML areas to circulation and reports home pages
Bug-15008---Add-custom-HTML-areas-to-circulation-a.patch (text/plain), 4.02 KB, created by
Nick Clemens (kidclamp)
on 2016-02-26 01:13:16 UTC
(
hide
)
Description:
Bug 15008 - Add custom HTML areas to circulation and reports home pages
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2016-02-26 01:13:16 UTC
Size:
4.02 KB
patch
obsolete
>From 23fcdd791bf758ac809e31173b5b6d6be331f105 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 26 Feb 2016 01:00:30 +0000 >Subject: [PATCH] Bug 15008 - Add custom HTML areas to circulation and reports > home pages > >To test: >1 - Apply patch >2 - run updatedatabase.pl >3 - Add some html to the two new prefs IntranetReportsHomeHTML and >IntranetCirculationHomeHTML >4 - View the reports and circulation homepages and confirm your changes >show > >Sponsored by Northeast Kansas Library System, NEKLS (http://nekls.org/) >--- > ...ug_15008_add_custom_html_areas_to_circ_and_reports_home.sql | 2 ++ > .../prog/en/modules/admin/preferences/staff_client.pref | 10 ++++++++++ > .../intranet-tmpl/prog/en/modules/circ/circulation-home.tt | 4 ++++ > .../intranet-tmpl/prog/en/modules/reports/reports-home.tt | 5 +++++ > 4 files changed, 21 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_15008_add_custom_html_areas_to_circ_and_reports_home.sql > >diff --git a/installer/data/mysql/atomicupdate/bug_15008_add_custom_html_areas_to_circ_and_reports_home.sql b/installer/data/mysql/atomicupdate/bug_15008_add_custom_html_areas_to_circ_and_reports_home.sql >new file mode 100644 >index 0000000..89ae903 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_15008_add_custom_html_areas_to_circ_and_reports_home.sql >@@ -0,0 +1,2 @@ >+INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('IntranetReportsHomeHTML', '', 'Show the following HTML in a div on the bottom of the reports home page', NULL, 'Free'); >+INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('IntranetCirculationHomeHTML', '', 'Show the following HTML in a div on the bottom of the reports home page', NULL, 'Free'); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref >index 75dfe0e..736ee68 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref >@@ -91,6 +91,16 @@ Staff Client: > - pref: SlipCSS > class: url > - on Issue and Hold Slips. (This should be a complete URL, starting with <code>http://</code>.) >+ - >+ - "Show the following HTML in its own div on the bottom of the home page of the circulation module:" >+ - pref: IntranetCirculationHomeHTML >+ type: htmlarea >+ class: code >+ - >+ - "Show the following HTML in its own div on the bottom of the home page of the reports module:" >+ - pref: IntranetReportsHomeHTML >+ type: htmlarea >+ class: code > Options: > - > - pref: viewMARC >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt >index 8676992..eb46e20 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt >@@ -68,7 +68,11 @@ > </ul> > </ul> > </div> >+ > </div> >+ <div class="yui-g" id="intranet-circulation-home-html"> >+ [% Koha.Preference('IntranetCirculationHomeHTML') %] >+ </div> > </div> > > [% INCLUDE 'intranet-bottom.inc' %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/reports-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/reports-home.tt >index fde9ad3..39260c4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/reports-home.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/reports-home.tt >@@ -1,3 +1,4 @@ >+[% USE Koha %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Reports</title> > [% INCLUDE 'doc-head-close.inc' %] >@@ -69,6 +70,10 @@ > </ul></div> > </div> > >+ > </div> >+ <div class="yui-g" id="intranet-reports-home-html"> >+ [% Koha.Preference('IntranetReportsHomeHTML') %] >+ </div> > </div> > [% INCLUDE 'intranet-bottom.inc' %] >-- >2.1.4
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 15008
:
48383
|
48384
|
48399
|
49806
|
49839
|
49840
|
49841