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)
Line 0 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 ('IntranetAcquisitionsHomeHTML', '', 'Show the following HTML in a div on the bottom of the acquisitions home page', NULL, 'Free'), ('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')});
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 (+7 lines)
Lines 305-310 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
('IntranetAcquisitionsHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the acquisitions home page', 'Free'),
309
('IntranetAuthoritiesHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the authorities home page', 'Free'),
310
('IntranetCatalogingHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the cataloging home page', 'Free'),
308
('IntranetCatalogSearchPulldown','0', NULL, 'Show a search field pulldown for \"Search the catalog\" boxes','YesNo'),
311
('IntranetCatalogSearchPulldown','0', NULL, 'Show a search field pulldown for \"Search the catalog\" boxes','YesNo'),
309
('OnSiteCheckouts','0','','Enable/Disable the on-site checkouts feature','YesNo'),
312
('OnSiteCheckouts','0','','Enable/Disable the on-site checkouts feature','YesNo'),
310
('OnSiteCheckoutsForce','0','','Enable/Disable the on-site for all cases (Even if a user is debarred, etc.)','YesNo'),
313
('OnSiteCheckoutsForce','0','','Enable/Disable the on-site for all cases (Even if a user is debarred, etc.)','YesNo'),
Lines 315-325 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
315
('IntranetCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the staff interface', 'YesNo'),
318
('IntranetCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the staff interface', 'YesNo'),
316
('intranetcolorstylesheet','','50','Define the color stylesheet to use in the staff interface','free'),
319
('intranetcolorstylesheet','','50','Define the color stylesheet to use in the staff interface','free'),
317
('IntranetFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the staff interface','free'),
320
('IntranetFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the staff interface','free'),
321
('IntranetListsHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the lists home page', 'Free'),
318
('IntranetmainUserblock','','70|10','Add a block of HTML that will display on the intranet home page','Textarea'),
322
('IntranetmainUserblock','','70|10','Add a block of HTML that will display on the intranet home page','Textarea'),
319
('IntranetNav','','70|10','Use HTML tabs to add navigational links to the top-hand navigational bar in the staff interface','Textarea'),
323
('IntranetNav','','70|10','Use HTML tabs to add navigational links to the top-hand navigational bar in the staff interface','Textarea'),
320
('IntranetNumbersPreferPhrase','0',NULL,'Control the use of phr operator in callnumber and standard number staff interface searches','YesNo'),
324
('IntranetNumbersPreferPhrase','0',NULL,'Control the use of phr operator in callnumber and standard number staff interface searches','YesNo'),
325
('IntranetPatronsHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the patrons home page', 'Free'),
326
('IntranetPOSHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the point of sale home page', 'Free'),
321
('intranetreadinghistory','1','','If ON, Checkout history is enabled for all patrons','YesNo'),
327
('intranetreadinghistory','1','','If ON, Checkout history is enabled for all patrons','YesNo'),
322
('IntranetReportsHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the reports home page', 'Free'),
328
('IntranetReportsHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the reports home page', 'Free'),
329
('IntranetSerialsHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the serials home page', 'Free'),
323
('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'),
330
('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'),
324
('intranetstylesheet','','50','Enter a complete URL to use an alternate layout stylesheet in Intranet','free'),
331
('intranetstylesheet','','50','Enter a complete URL to use an alternate layout stylesheet in Intranet','free'),
325
('IntranetUserCSS','',NULL,'Add CSS to be included in the intranet in an embedded <style> tag.','free'),
332
('IntranetUserCSS','',NULL,'Add CSS to be included in the intranet in an embedded <style> tag.','free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt (-1 / +6 lines)
Lines 3-8 Link Here
3
[% USE Price %]
3
[% USE Price %]
4
[% USE Branches %]
4
[% USE Branches %]
5
[% USE TablesSettings %]
5
[% USE TablesSettings %]
6
[% USE Koha %]
6
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
7
[% PROCESS 'i18n.inc' %]
8
[% PROCESS 'i18n.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
9
[% INCLUDE 'doc-head-open.inc' %]
Lines 201-206 Link Here
201
</div><!-- /.page-section -->
202
</div><!-- /.page-section -->
202
[% END %]
203
[% END %]
203
204
205
    <div class="row" id="intranet-acqui-home-html">
206
        [% Koha.Preference('IntranetAcquisitionsHomeHTML') | $raw %]
207
    </div>
208
204
</main>
209
</main>
205
</div> <!-- /.col-sm-10.col-sm-push-2 -->
210
</div> <!-- /.col-sm-10.col-sm-push-2 -->
206
211
Lines 209-214 Link Here
209
        [% INCLUDE 'acquisitions-menu.inc' %]
214
        [% INCLUDE 'acquisitions-menu.inc' %]
210
    </aside>
215
    </aside>
211
</div>
216
</div>
217
212
</div> <!-- /.row -->
218
</div> <!-- /.row -->
213
219
214
[% MACRO jsinclude BLOCK %]
220
[% MACRO jsinclude BLOCK %]
Lines 293-297 Link Here
293
        });
299
        });
294
    </script>
300
    </script>
295
[% END %]
301
[% END %]
296
297
[% INCLUDE 'intranet-bottom.inc' %]
302
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref (+42 lines)
Lines 107-124 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 acquisitions module:"
112
            - pref: IntranetAcquisitionsHomeHTML
113
              type: textarea
114
              syntax: text/html
115
              class: code
116
        -
117
            - "Show the following HTML in its own div on the bottom of the home page of the authorities module:"
118
            - pref: IntranetAuthoritiesHomeHTML
119
              type: textarea
120
              syntax: text/html
121
              class: code
122
        -
123
            - "Show the following HTML in its own div on the bottom of the home page of the cataloguing module:"
124
            - pref: IntranetCatalogingHomeHTML
125
              type: textarea
126
              syntax: text/html
127
              class: code
110
        -
128
        -
111
            - "Show the following HTML in its own div on the bottom of the home page of the circulation module:"
129
            - "Show the following HTML in its own div on the bottom of the home page of the circulation module:"
112
            - pref: IntranetCirculationHomeHTML
130
            - pref: IntranetCirculationHomeHTML
113
              type: textarea
131
              type: textarea
114
              syntax: text/html
132
              syntax: text/html
115
              class: code
133
              class: code
134
        -
135
            - "Show the following HTML in its own div on the bottom of the home page of the lists module:"
136
            - pref: IntranetListsHomeHTML
137
              type: textarea
138
              syntax: text/html
139
              class: code
140
        -
141
            - "Show the following HTML in its own div on the bottom of the home page of the patrons module:"
142
            - pref: IntranetPatronsHomeHTML
143
              type: textarea
144
              syntax: text/html
145
              class: code
146
        -
147
            - "Show the following HTML in its own div on the bottom of the home page of the POS module:"
148
            - pref: IntranetPOSHomeHTML
149
              type: textarea
150
              syntax: text/area
151
              class: code
116
        -
152
        -
117
            - "Show the following HTML in its own div on the bottom of the home page of the reports module:"
153
            - "Show the following HTML in its own div on the bottom of the home page of the reports module:"
118
            - pref: IntranetReportsHomeHTML
154
            - pref: IntranetReportsHomeHTML
119
              type: textarea
155
              type: textarea
120
              syntax: text/html
156
              syntax: text/html
121
              class: code
157
              class: code
158
        -
159
            - "Show the following HTML in its own div on the bottom of the home page of the serials module:"
160
            - pref: IntranetSerialsHomeHTML
161
              type: textarea
162
              syntax: text/html
163
              class: code
122
        -
164
        -
123
            - "Show the following HTML on the staff interface login page"
165
            - "Show the following HTML on the staff interface login page"
124
            - pref: StaffLoginInstructions
166
            - pref: StaffLoginInstructions
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tt (-1 / +6 lines)
Lines 1-5 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% PROCESS 'i18n.inc' %]
2
[% PROCESS 'i18n.inc' %]
3
[% USE Koha %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>[% FILTER collapse %]
6
<title>[% FILTER collapse %]
Lines 25-39 Link Here
25
<div class="main container-fluid">
26
<div class="main container-fluid">
26
    <div class="row">
27
    <div class="row">
27
        <div class="col-md-8 col-md-offset-2">
28
        <div class="col-md-8 col-md-offset-2">
29
            [% INCLUDE 'authorities-toolbar.inc' %]
28
30
29
    [% INCLUDE 'authorities-toolbar.inc' %]
31
    [% INCLUDE 'authorities-toolbar.inc' %]
30
32
31
    <h1>Authorities</h1>
33
    <h1>Authorities</h1>
32
34
33
    <div id="merge_in_progress" class="page-section bg-info" style="display:none;"></div>
35
    <div id="merge_in_progress" class="page-section bg-info" style="display:none;"></div>
36
        </div>
37
    </div>
34
38
39
    <div class="row" id="intranet-authorities-home-html">
40
        [% Koha.Preference('IntranetAuthoritiesHomeHTML') | $raw %]
35
    </div>
41
    </div>
36
  </div>
37
42
38
[% MACRO jsinclude BLOCK %]
43
[% MACRO jsinclude BLOCK %]
39
    [% INCLUDE 'authorities_js.inc' %]
44
    [% INCLUDE 'authorities_js.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt (+4 lines)
Lines 274-279 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
277
[% MACRO jsinclude BLOCK %]
281
[% MACRO jsinclude BLOCK %]
278
    [% INCLUDE 'datatables.inc' %]
282
    [% INCLUDE 'datatables.inc' %]
279
    [% INCLUDE 'columns_settings.inc' %]
283
    [% INCLUDE 'columns_settings.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt (-1 / +4 lines)
Lines 117-122 Link Here
117
            </form>
117
            </form>
118
        [% END %]
118
        [% END %]
119
119
120
          <div class="row" id="intranet-members-home-html">
121
              [% Koha.Preference('IntranetPatronsHomeHTML') | $raw %]
122
          </div>
123
120
            </main>
124
            </main>
121
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
125
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
122
126
Lines 385-389 Link Here
385
    [% PROCESS patron_search_js table_id => 'memberresultst', categories => categories, libraries => libraries, extended_attribute_types => attribute_type_codes, columns => columns,actions => ['edit', 'checkout'], redirect_if_one_result => 1, redirect_url => redirect_url, sticky_header => "searchheader", sticky_to => "searchresults", default_sort_column => 'name-address', display_search_description => 1, remember_selections => 1 %]
389
    [% PROCESS patron_search_js table_id => 'memberresultst', categories => categories, libraries => libraries, extended_attribute_types => attribute_type_codes, columns => columns,actions => ['edit', 'checkout'], redirect_if_one_result => 1, redirect_url => redirect_url, sticky_header => "searchheader", sticky_to => "searchresults", default_sort_column => 'name-address', display_search_description => 1, remember_selections => 1 %]
386
390
387
[% END %]
391
[% END %]
388
389
[% INCLUDE 'intranet-bottom.inc' %]
392
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt (-1 / +4 lines)
Lines 159-164 Link Here
159
            </div>
159
            </div>
160
        </form>
160
        </form>
161
        [% END %]
161
        [% END %]
162
163
        <div class="row" id="intranet-pos-home-html">
164
            [% Koha.Preference('IntranetPOSHomeHTML') | $raw %]
165
        </div>
162
    </div>
166
    </div>
163
167
164
    <div class="col-md-2 col-md-pull-10">
168
    <div class="col-md-2 col-md-pull-10">
Lines 477-481 Link Here
477
    });
481
    });
478
    </script>
482
    </script>
479
[% END %]
483
[% END %]
480
481
[% INCLUDE 'intranet-bottom.inc' %]
484
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt (-1 / +4 lines)
Lines 39-44 Link Here
39
            </aside>
39
            </aside>
40
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
40
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
41
     </div> <!-- /.row -->
41
     </div> <!-- /.row -->
42
43
     <div class="row" id="intranet-serials-home-html">
44
         [% Koha.Preference('IntranetSerialsHomeHTML') | $raw %]
45
     </div>
42
</div>
46
</div>
43
47
44
[% MACRO jsinclude BLOCK %]
48
[% MACRO jsinclude BLOCK %]
Lines 48-52 Link Here
48
        var subscriptionid = "[% subscriptionid | html %]";
52
        var subscriptionid = "[% subscriptionid | html %]";
49
    </script>
53
    </script>
50
[% END %]
54
[% END %]
51
52
[% INCLUDE 'intranet-bottom.inc' %]
55
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-2 / +4 lines)
Lines 544-549 Link Here
544
    </div> <!-- /.col-sm-10.col-sm-push-2 -->
544
    </div> <!-- /.col-sm-10.col-sm-push-2 -->
545
</div> <!-- /.row -->
545
</div> <!-- /.row -->
546
546
547
    <div class="row" id="intranet-lists-home-html">
548
        [% Koha.Preference('IntranetListsHomeHTML') | $raw %]
549
    </div>
550
547
[% IF ( can_add_biblios ) %]
551
[% IF ( can_add_biblios ) %]
548
    <!-- Modal -->
552
    <!-- Modal -->
549
    <div class="modal" id="addToList" tabindex="-1" role="dialog" aria-labelledby="addToListLabel">
553
    <div class="modal" id="addToList" tabindex="-1" role="dialog" aria-labelledby="addToListLabel">
Lines 990-994 Link Here
990
994
991
    </script>
995
    </script>
992
[% END %]
996
[% END %]
993
994
[% INCLUDE 'intranet-bottom.inc' %]
997
[% INCLUDE 'intranet-bottom.inc' %]
995
- 

Return to bug 6419