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 (-9 lines)
Lines 1-9 Link Here
1
$DBversion = 'XXX';  # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    # you can use $dbh here like:
4
$dbh->do(q{
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
7
    SetVersion( $DBversion );
8
    print "Upgrade to $DBversion done (Bug 6419 - Add customizable areas to intranet start pages)\n";
9
}
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 lines)
Lines 317-323 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
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
('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'),
319
('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'),
320
('IntranetSerialsHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the serials home page', 'Free'),
321
('IntranetSlipPrinterJS','','','Use this JavaScript for printing slips. Define at least function printThenClose(). For use e.g. with Firefox PlugIn jsPrintSetup, see http://jsprintsetup.mozdev.org/','Free'),
320
('IntranetSlipPrinterJS','','','Use this JavaScript for printing slips. Define at least function printThenClose(). For use e.g. with Firefox PlugIn jsPrintSetup, see http://jsprintsetup.mozdev.org/','Free'),
322
('intranetstylesheet','','50','Enter a complete URL to use an alternate layout stylesheet in Intranet','free'),
321
('intranetstylesheet','','50','Enter a complete URL to use an alternate layout stylesheet in Intranet','free'),
323
('IntranetUserCSS','',NULL,'Add CSS to be included in the intranet in an embedded <style> tag.','free'),
322
('IntranetUserCSS','',NULL,'Add CSS to be included in the intranet in an embedded <style> tag.','free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref (-6 lines)
Lines 119-130 Staff interface: Link Here
119
              type: textarea
119
              type: textarea
120
              syntax: text/html
120
              syntax: text/html
121
              class: code
121
              class: code
122
        -
123
            - "Show the following HTML in its own div on the bottom of the home page of the serials module:"
124
            - pref: IntranetSerialsHomeHTML
125
              type: textarea
126
              syntax: text/html
127
              class: code
128
        -
122
        -
129
            - "Show the following HTML on the staff interface login page"
123
            - "Show the following HTML on the staff interface login page"
130
            - pref: StaffLoginInstructions
124
            - pref: StaffLoginInstructions
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt (-7 / +12 lines)
Lines 1-7 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE AdditionalContents %]
2
[% USE Asset %]
3
[% USE Asset %]
3
[% USE KohaDates %]
4
[% USE KohaDates %]
4
[% USE Koha %]
5
[% USE Branches %]
5
[% USE Branches %]
6
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
Lines 26-35 Link Here
26
        <div class="col-sm-10 col-sm-push-2">
26
        <div class="col-sm-10 col-sm-push-2">
27
            <main>
27
            <main>
28
28
29
      [% INCLUDE 'serials-toolbar.inc' %]
29
                [% INCLUDE 'serials-toolbar.inc' %]
30
    
31
                <h1>Serials</h1>
30
32
31
            <h1>Serials</h1>
32
                [% INCLUDE 'serials-advsearch.inc' %]
33
                [% INCLUDE 'serials-advsearch.inc' %]
34
    
35
                [%- SET StaffSerialsHome = AdditionalContents.get( location => "StaffSerialsHome", lang => lang, library => logged_in_user.branchcode ) -%]
36
                [%- FOREACH block IN StaffSerialsHome.content -%]
37
                <div class="page-section">
38
                    [%- block.content | $raw -%]
39
                </div>
40
                [%- END -%]
41
33
            </main>
42
            </main>
34
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
43
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
35
44
Lines 39-48 Link Here
39
            </aside>
48
            </aside>
40
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
49
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
41
     </div> <!-- /.row -->
50
     </div> <!-- /.row -->
42
43
     <div class="row" id="intranet-serials-home-html">
44
         [% Koha.Preference('IntranetSerialsHomeHTML') | $raw %]
45
     </div>
46
</div>
51
</div>
47
52
48
[% MACRO jsinclude BLOCK %]
53
[% MACRO jsinclude BLOCK %]
(-)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', 'IntranetListsHome', 'StaffPatronsHome', 'StaffPOSHome' ] %]
497
        [% SET available_options = [ 'OpacNavRight', 'opacheader', 'OpacCustomSearch', 'OpacMainUserBlock', 'opaccredits', 'OpacLoginInstructions', 'OpacNav', 'OpacNavBottom', 'OpacSuggestionInstructions', 'ArticleRequestsDisclaimerText', 'OpacMoreSearches', 'OpacMySummaryNote', 'OpacLibraryInfo', 'CatalogConcernHelp', 'CatalogConcernTemplate', 'StaffAcquisitionsHome', 'IntranetAuthoritiesHome', 'IntranetCataloguingHome', 'IntranetListsHome', 'IntranetPatronsHome', 'StaffPOSHome', 'StaffSerialsHome' ] %]
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