Bug 15008 - Add custom HTML areas to circulation and reports home pages
authorNick Clemens <nick@bywatersolutions.com>
Fri, 26 Feb 2016 01:00:30 +0000 (01:00 +0000)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Thu, 7 Apr 2016 05:38:50 +0000 (05:38 +0000)
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/)

Followed test plan, works as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
installer/data/mysql/atomicupdate/bug_15008_add_custom_html_areas_to_circ_and_reports_home.sql [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt
koha-tmpl/intranet-tmpl/prog/en/modules/reports/reports-home.tt

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 (file)
index 0000000..89ae903
--- /dev/null
@@ -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');
index 75dfe0e..736ee68 100644 (file)
@@ -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
index 8676992..eb46e20 100644 (file)
             </ul>
                </ul>
        </div>
+
 </div>
+    <div class="yui-g" id="intranet-circulation-home-html">
+        [% Koha.Preference('IntranetCirculationHomeHTML') %]
+    </div>
 </div>
 
 [% INCLUDE 'intranet-bottom.inc' %]
index fde9ad3..39260c4 100644 (file)
@@ -1,3 +1,4 @@
+[% USE Koha %]
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; Reports</title>
 [% INCLUDE 'doc-head-close.inc' %]
        </ul></div>
 </div>
 
+
 </div>
+    <div class="yui-g" id="intranet-reports-home-html">
+        [% Koha.Preference('IntranetReportsHomeHTML') %]
+    </div>
 </div>
 [% INCLUDE 'intranet-bottom.inc' %]