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 ('IntranetAuthoritiesHomeHTML', '', 'Show the following HTML in a div on the bottom of the authorities home page', NULL, 'Free'), ('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 ('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')});
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 302-308 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
302
('IndependentBranchesPatronModifications','0', NULL, 'Show only modification request for the logged in branch','YesNo'),
302
('IndependentBranchesPatronModifications','0', NULL, 'Show only modification request for the logged in branch','YesNo'),
303
('IndependentBranchesTransfers','0', NULL, 'Allow non-superlibrarians to transfer items between libraries','YesNo'),
303
('IndependentBranchesTransfers','0', NULL, 'Allow non-superlibrarians to transfer items between libraries','YesNo'),
304
('IntranetAddMastheadLibraryPulldown','0', NULL, 'Add a library select pulldown menu on the staff header search','YesNo'),
304
('IntranetAddMastheadLibraryPulldown','0', NULL, 'Add a library select pulldown menu on the staff header search','YesNo'),
305
('IntranetAuthoritiesHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the authorities home page', 'Free'),
306
('IntranetCatalogingHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the cataloging home page', 'Free'),
305
('IntranetCatalogingHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the cataloging home page', 'Free'),
307
('IntranetCatalogSearchPulldown','0', NULL, 'Show a search field pulldown for \"Search the catalog\" boxes','YesNo'),
306
('IntranetCatalogSearchPulldown','0', NULL, 'Show a search field pulldown for \"Search the catalog\" boxes','YesNo'),
308
('OnSiteCheckouts','0','','Enable/Disable the on-site checkouts feature','YesNo'),
307
('OnSiteCheckouts','0','','Enable/Disable the on-site checkouts feature','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt (-1 lines)
Lines 4-10 Link Here
4
[% USE Price %]
4
[% USE Price %]
5
[% USE Branches %]
5
[% USE Branches %]
6
[% USE TablesSettings %]
6
[% USE TablesSettings %]
7
[% USE Koha %]
8
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
9
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
10
<title>Acquisitions &rsaquo; Koha</title>
9
<title>Acquisitions &rsaquo; Koha</title>
(-)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 authorities module:"
112
            - pref: IntranetAuthoritiesHomeHTML
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 cataloguing module:"
111
            - "Show the following HTML in its own div on the bottom of the home page of the cataloguing module:"
118
            - pref: IntranetCatalogingHomeHTML
112
            - pref: IntranetCatalogingHomeHTML
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tt (-8 / +9 lines)
Lines 1-5 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Koha %]
2
[% USE AdditionalContents %]
3
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Authorities &rsaquo; Koha</title>
5
<title>Authorities &rsaquo; Koha</title>
Lines 24-41 Link Here
24
        <div class="col-md-8 col-md-offset-2">
24
        <div class="col-md-8 col-md-offset-2">
25
            [% INCLUDE 'authorities-toolbar.inc' %]
25
            [% INCLUDE 'authorities-toolbar.inc' %]
26
26
27
    [% INCLUDE 'authorities-toolbar.inc' %]
27
            <h1>Authorities</h1>
28
28
29
    <h1>Authorities</h1>
29
            <div id="merge_in_progress" class="page-section bg-info" style="display:none;"></div>
30
30
31
    <div id="merge_in_progress" class="page-section bg-info" style="display:none;"></div>
31
            [%- SET IntranetAuthoritiesHome = AdditionalContents.get( location => "IntranetAuthoritiesHome", lang => lang, library => logged_in_user.branchcode ) -%]
32
            [%- FOREACH block IN IntranetAuthoritiesHome.content -%]
33
            <div class="page-section">
34
                [%- block.content | $raw -%]
35
            </div>
36
            [%- END -%]
32
        </div>
37
        </div>
33
    </div>
38
    </div>
34
39
35
    <div class="row" id="intranet-authorities-home-html">
36
        [% Koha.Preference('IntranetAuthoritiesHomeHTML') | $raw %]
37
    </div>
38
39
[% MACRO jsinclude BLOCK %]
40
[% MACRO jsinclude BLOCK %]
40
    [% INCLUDE 'authorities_js.inc' %]
41
    [% INCLUDE 'authorities_js.inc' %]
41
[% END %]
42
[% END %]
(-)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', 'IntranetAcquisitionsHome' ] %]
497
        [% SET available_options = [ 'OpacNavRight', 'opacheader', 'OpacCustomSearch', 'OpacMainUserBlock', 'opaccredits', 'OpacLoginInstructions', 'OpacNav', 'OpacNavBottom', 'OpacSuggestionInstructions', 'ArticleRequestsDisclaimerText', 'OpacMoreSearches', 'OpacMySummaryNote', 'OpacLibraryInfo', 'CatalogConcernHelp', 'CatalogConcernTemplate', 'IntranetAcquisitionsHome', 'IntranetAuthoritiesHome' ] %]
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