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 ('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 ('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 312-318 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
312
('IntranetCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the staff interface', 'YesNo'),
312
('IntranetCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the staff interface', 'YesNo'),
313
('intranetcolorstylesheet','','50','Define the color stylesheet to use in the staff interface','free'),
313
('intranetcolorstylesheet','','50','Define the color stylesheet to use in the staff interface','free'),
314
('IntranetFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the staff interface','free'),
314
('IntranetFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the staff interface','free'),
315
('IntranetListsHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the lists home page', 'Free'),
316
('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'),
317
('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'),
318
('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'),
(-)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 lists module:"
118
            - pref: IntranetListsHomeHTML
119
              type: textarea
120
              syntax: text/html
121
              class: code
122
        -
116
        -
123
            - "Show the following HTML in its own div on the bottom of the home page of the patrons module:"
117
            - "Show the following HTML in its own div on the bottom of the home page of the patrons module:"
124
            - pref: IntranetPatronsHomeHTML
118
            - pref: IntranetPatronsHomeHTML
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt (-1 / +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', 'IntranetAuthoritiesHome', 'IntranetCataloguingHome' ] %]
497
        [% SET available_options = [ 'OpacNavRight', 'opacheader', 'OpacCustomSearch', 'OpacMainUserBlock', 'opaccredits', 'OpacLoginInstructions', 'OpacNav', 'OpacNavBottom', 'OpacSuggestionInstructions', 'ArticleRequestsDisclaimerText', 'OpacMoreSearches', 'OpacMySummaryNote', 'OpacLibraryInfo', 'CatalogConcernHelp', 'CatalogConcernTemplate', 'IntranetAcquisitionsHome', 'IntranetAuthoritiesHome', 'IntranetCataloguingHome', 'IntranetListsHome' ] %]
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>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-5 / +7 lines)
Lines 1-4 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE AdditionalContents %]
2
[% USE Asset %]
3
[% USE Asset %]
3
[% USE Koha %]
4
[% USE Koha %]
4
[% USE KohaDates %]
5
[% USE KohaDates %]
Lines 534-539 Link Here
534
                    [% END # /WRAPPER tab_panels %]
535
                    [% END # /WRAPPER tab_panels %]
535
                [% END # /WRAPPER tabs %]
536
                [% END # /WRAPPER tabs %]
536
537
538
                [%- SET IntranetListsHome = AdditionalContents.get( location => "IntranetListsHome", lang => lang, library => logged_in_user.branchcode ) -%]
539
                [%- FOREACH block IN IntranetListsHome.content -%]
540
                <div class="page-section">
541
                    [%- block.content | $raw -%]
542
                </div>
543
                [%- END -%]
537
            [% END # /IF op == 'list' %]
544
            [% END # /IF op == 'list' %]
538
545
539
            <form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
546
            <form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
Lines 544-553 Link Here
544
    </div> <!-- /.col-sm-10.col-sm-push-2 -->
551
    </div> <!-- /.col-sm-10.col-sm-push-2 -->
545
</div> <!-- /.row -->
552
</div> <!-- /.row -->
546
553
547
    <div class="row" id="intranet-lists-home-html">
548
        [% Koha.Preference('IntranetListsHomeHTML') | $raw %]
549
    </div>
550
551
[% IF ( can_add_biblios ) %]
554
[% IF ( can_add_biblios ) %]
552
    <!-- Modal -->
555
    <!-- Modal -->
553
    <div class="modal" id="addToList" tabindex="-1" role="dialog" aria-labelledby="addToListLabel">
556
    <div class="modal" id="addToList" tabindex="-1" role="dialog" aria-labelledby="addToListLabel">
554
- 

Return to bug 6419