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 ('IntranetCatalogingHomeHTML', '', 'Show the following HTML in a div on the bottom of the cataloging home page', NULL, 'Free'), ('IntranetListsHomeHTML', '', 'Show the following HTML in a div on the bottom of the lists home page', NULL, 'Free'), ('IntranetPatronsHomeHTML', '', 'Show the following HTML in a div on the bottom of the patrons home page', NULL, 'Free'), ('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 ('IntranetListsHomeHTML', '', 'Show the following HTML in a div on the bottom of the lists home page', NULL, 'Free'), ('IntranetPatronsHomeHTML', '', 'Show the following HTML in a div on the bottom of the patrons home page', NULL, 'Free'), ('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')});
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 305-311 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
305
('IndependentBranchesPatronModifications','0', NULL, 'Show only modification request for the logged in branch','YesNo'),
305
('IndependentBranchesPatronModifications','0', NULL, 'Show only modification request for the logged in branch','YesNo'),
306
('IndependentBranchesTransfers','0', NULL, 'Allow non-superlibrarians to transfer items between libraries','YesNo'),
306
('IndependentBranchesTransfers','0', NULL, 'Allow non-superlibrarians to transfer items between libraries','YesNo'),
307
('IntranetAddMastheadLibraryPulldown','0', NULL, 'Add a library select pulldown menu on the staff header search','YesNo'),
307
('IntranetAddMastheadLibraryPulldown','0', NULL, 'Add a library select pulldown menu on the staff header search','YesNo'),
308
('IntranetCatalogingHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the cataloging home page', 'Free'),
309
('IntranetCatalogSearchPulldown','0', NULL, 'Show a search field pulldown for \"Search the catalog\" boxes','YesNo'),
308
('IntranetCatalogSearchPulldown','0', NULL, 'Show a search field pulldown for \"Search the catalog\" boxes','YesNo'),
310
('OnSiteCheckouts','0','','Enable/Disable the on-site checkouts feature','YesNo'),
309
('OnSiteCheckouts','0','','Enable/Disable the on-site checkouts feature','YesNo'),
311
('OnSiteCheckoutsForce','0','','Enable/Disable the on-site for all cases (Even if a user is debarred, etc.)','YesNo'),
310
('OnSiteCheckoutsForce','0','','Enable/Disable the on-site for all cases (Even if a user is debarred, etc.)','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref (-6 lines)
Lines 107-118 Staff interface: Link Here
107
            - pref: SlipCSS
107
            - pref: SlipCSS
108
              class: url
108
              class: url
109
            - on Issue and Hold Slips. (This should be a complete URL, starting with <code>http://</code>.)
109
            - on Issue and Hold Slips. (This should be a complete URL, starting with <code>http://</code>.)
110
        -
111
            - "Show the following HTML in its own div on the bottom of the home page of the cataloguing module:"
112
            - pref: IntranetCatalogingHomeHTML
113
              type: textarea
114
              syntax: text/html
115
              class: code
116
        -
110
        -
117
            - "Show the following HTML in its own div on the bottom of the home page of the circulation module:"
111
            - "Show the following HTML in its own div on the bottom of the home page of the circulation module:"
118
            - pref: IntranetCirculationHomeHTML
112
            - pref: IntranetCirculationHomeHTML
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt (-4 lines)
Lines 274-283 Link Here
274
            </div> <!-- /.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 -->
274
            </div> <!-- /.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 -->
275
        </div> <!-- /.row -->
275
        </div> <!-- /.row -->
276
276
277
        <div class="row" id="intranet-cataloging-home-html">
278
            [% Koha.Preference('IntranetCatalogingHomeHTML') | $raw %]
279
        </div>
280
281
[% MACRO jsinclude BLOCK %]
277
[% MACRO jsinclude BLOCK %]
282
    [% INCLUDE 'datatables.inc' %]
278
    [% INCLUDE 'datatables.inc' %]
283
    [% INCLUDE 'columns_settings.inc' %]
279
    [% INCLUDE 'columns_settings.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/cataloging-home.tt (+9 lines)
Lines 1-4 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE AdditionalContents %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% PROCESS 'i18n.inc' %]
5
[% PROCESS 'i18n.inc' %]
Lines 216-221 Link Here
216
217
217
                    </div>
218
                    </div>
218
                </div>
219
                </div>
220
221
                [%- SET StaffCataloguingHome = AdditionalContents.get( location => "StaffCataloguingHome", lang => lang, library => logged_in_user.branchcode ) -%]
222
                [%- FOREACH block IN StaffCataloguingHome.content -%]
223
                <div class="page-section">
224
                    [%- block.content | $raw -%]
225
                </div>
226
                [%- END -%]
227
219
            </div>
228
            </div>
220
        </div>
229
        </div>
221
230
(-)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', 'CookieConsentBar', 'CookieConsentPopup', 'StaffAcquisitionsHome', 'StaffAuthoritiesHome' ] %]
497
        [% SET available_options = [ 'OpacNavRight', 'opacheader', 'OpacCustomSearch', 'OpacMainUserBlock', 'opaccredits', 'OpacLoginInstructions', 'OpacNav', 'OpacNavBottom', 'OpacSuggestionInstructions', 'ArticleRequestsDisclaimerText', 'OpacMoreSearches', 'OpacMySummaryNote', 'OpacLibraryInfo', 'CatalogConcernHelp', 'CatalogConcernTemplate', 'CookieConsentBar', 'CookieConsentPopup', 'StaffAcquisitionsHome', 'StaffAuthoritiesHome', 'StaffCataloguingHome' ] %]
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