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/)

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
This commit is contained in:
Nick Clemens 2016-02-26 01:00:30 +00:00 committed by Brendan Gallagher
parent 928c0af2b6
commit 4b271fad9b
4 changed files with 21 additions and 0 deletions

View file

@ -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');

View 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

View file

@ -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' %]

View file

@ -1,3 +1,4 @@
[% USE Koha %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; 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' %]