View | Details | Raw Unified | Return to bug 6419
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_6419_Add_customizable_areas_to_module_start_pages.sql (-1 / +1 lines)
Lines 2-8 $DBversion = 'XXX'; # will be replaced by the RM Link Here
2
if( CheckVersion( $DBversion ) ) {
2
if( CheckVersion( $DBversion ) ) {
3
    # you can use $dbh here like:
3
    # you can use $dbh here like:
4
$dbh->do(q{
4
$dbh->do(q{
5
INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('IntranetPOSHomeHTML', '', 'Show the following HTML in a div on the bottom of the point of sale home page', NULL, 'Free'), ('IntranetSerialsHomeHTML', '', 'Show the following HTML in a div on the bottom of the serials home page', NULL, 'Free')});
5
INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('IntranetSerialsHomeHTML', '', 'Show the following HTML in a div on the bottom of the serials home page', NULL, 'Free')});
6
6
7
    SetVersion( $DBversion );
7
    SetVersion( $DBversion );
8
    print "Upgrade to $DBversion done (Bug 6419 - Add customizable areas to intranet start pages)\n";
8
    print "Upgrade to $DBversion done (Bug 6419 - Add customizable areas to intranet start pages)\n";
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 lines)
Lines 315-321 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
315
('IntranetmainUserblock','','70|10','Add a block of HTML that will display on the intranet home page','Textarea'),
315
('IntranetmainUserblock','','70|10','Add a block of HTML that will display on the intranet home page','Textarea'),
316
('IntranetNav','','70|10','Use HTML tabs to add navigational links to the top-hand navigational bar in the staff interface','Textarea'),
316
('IntranetNav','','70|10','Use HTML tabs to add navigational links to the top-hand navigational bar in the staff interface','Textarea'),
317
('IntranetNumbersPreferPhrase','0',NULL,'Control the use of phr operator in callnumber and standard number staff interface searches','YesNo'),
317
('IntranetNumbersPreferPhrase','0',NULL,'Control the use of phr operator in callnumber and standard number staff interface searches','YesNo'),
318
('IntranetPOSHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the point of sale home page', 'Free'),
319
('intranetreadinghistory','1','','If ON, Checkout history is enabled for all patrons','YesNo'),
318
('intranetreadinghistory','1','','If ON, Checkout history is enabled for all patrons','YesNo'),
320
('IntranetReportsHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the reports home page', 'Free'),
319
('IntranetReportsHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the reports home page', 'Free'),
321
('IntranetSerialsHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the serials home page', 'Free'),
320
('IntranetSerialsHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the serials home page', 'Free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref (-6 lines)
Lines 113-124 Staff interface: Link Here
113
              type: textarea
113
              type: textarea
114
              syntax: text/html
114
              syntax: text/html
115
              class: code
115
              class: code
116
        -
117
            - "Show the following HTML in its own div on the bottom of the home page of the POS module:"
118
            - pref: IntranetPOSHomeHTML
119
              type: textarea
120
              syntax: text/area
121
              class: code
122
        -
116
        -
123
            - "Show the following HTML in its own div on the bottom of the home page of the reports module:"
117
            - "Show the following HTML in its own div on the bottom of the home page of the reports module:"
124
            - pref: IntranetReportsHomeHTML
118
            - pref: IntranetReportsHomeHTML
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt (-2 / +7 lines)
Lines 1-4 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE AdditionalContents %]
2
[% USE Asset %]
3
[% USE Asset %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% USE Koha %]
5
[% USE Koha %]
Lines 156-164 Link Here
156
        </form>
157
        </form>
157
        [% END %]
158
        [% END %]
158
159
159
        <div class="row" id="intranet-pos-home-html">
160
        [%- SET StaffPOSHome = AdditionalContents.get( location => "StaffPOSHome", lang => lang, library => logged_in_user.branchcode ) -%]
160
            [% Koha.Preference('IntranetPOSHomeHTML') | $raw %]
161
        [%- FOREACH block IN StaffPOSHome.content -%]
162
        <div class="page-section">
163
            [%- block.content | $raw -%]
161
        </div>
164
        </div>
165
        [%- END -%]
166
162
    </div>
167
    </div>
163
168
164
    <div class="col-md-2 col-md-pull-10">
169
    <div class="col-md-2 col-md-pull-10">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt (-2 / +1 lines)
Lines 494-500 Link Here
494
            [% END %]
494
            [% END %]
495
        [% END %]
495
        [% END %]
496
    [% ELSE %]
496
    [% ELSE %]
497
        [% SET available_options = [ 'OpacNavRight', 'opacheader', 'OpacCustomSearch', 'OpacMainUserBlock', 'opaccredits', 'OpacLoginInstructions', 'OpacNav', 'OpacNavBottom', 'OpacSuggestionInstructions', 'ArticleRequestsDisclaimerText', 'OpacMoreSearches', 'OpacMySummaryNote', 'OpacLibraryInfo', 'CatalogConcernHelp', 'CatalogConcernTemplate', 'StaffAcquisitionsHome', 'IntranetAuthoritiesHome', 'IntranetCataloguingHome', 'StaffListsHome', 'StaffPatronsHome' ] %]
497
        [% SET available_options = [ 'OpacNavRight', 'opacheader', 'OpacCustomSearch', 'OpacMainUserBlock', 'opaccredits', 'OpacLoginInstructions', 'OpacNav', 'OpacNavBottom', 'OpacSuggestionInstructions', 'ArticleRequestsDisclaimerText', 'OpacMoreSearches', 'OpacMySummaryNote', 'OpacLibraryInfo', 'CatalogConcernHelp', 'CatalogConcernTemplate', 'StaffAcquisitionsHome', 'IntranetAuthoritiesHome', 'IntranetCataloguingHome', 'IntranetListsHome', 'StaffPatronsHome', 'StaffPOSHome' ] %]
498
        [% FOREACH l IN available_options.sort %]
498
        [% FOREACH l IN available_options.sort %]
499
            [% IF l == location %]
499
            [% IF l == location %]
500
                <option value="[% l | html %]" selected="selected">[% l | html %]</option>
500
                <option value="[% l | html %]" selected="selected">[% l | html %]</option>
501
- 

Return to bug 6419