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 0000000000..89ae903246 --- /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 75dfe0ed3f..736ee684d6 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 http://.) + - + - "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 8676992a99..eb46e2021d 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 @@ + +
+ [% Koha.Preference('IntranetCirculationHomeHTML') %] +
[% 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 fde9ad3810..39260c42c1 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' %] Koha › Reports [% INCLUDE 'doc-head-close.inc' %] @@ -69,6 +70,10 @@ + +
+ [% Koha.Preference('IntranetReportsHomeHTML') %] +
[% INCLUDE 'intranet-bottom.inc' %]