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 283-288 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
283
('IndependentBranchesPatronModifications','0', NULL, 'Show only modification request for the logged in branch','YesNo'),
283
('IndependentBranchesPatronModifications','0', NULL, 'Show only modification request for the logged in branch','YesNo'),
284
('IndependentBranchesTransfers','0', NULL, 'Allow non-superlibrarians to transfer items between libraries','YesNo'),
284
('IndependentBranchesTransfers','0', NULL, 'Allow non-superlibrarians to transfer items between libraries','YesNo'),
285
('IntranetAddMastheadLibraryPulldown','0', NULL, 'Add a library select pulldown menu on the staff header search','YesNo'),
285
('IntranetAddMastheadLibraryPulldown','0', NULL, 'Add a library select pulldown menu on the staff header search','YesNo'),
286
('IntranetAcquisitionsHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the acquisitions home page', 'Free'),
287
('IntranetAuthoritiesHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the authorities home page', 'Free'),
288
('IntranetCatalogingHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the cataloging home page', 'Free'),
286
('IntranetCatalogSearchPulldown','0', NULL, 'Show a search field pulldown for \"Search the catalog\" boxes','YesNo'),
289
('IntranetCatalogSearchPulldown','0', NULL, 'Show a search field pulldown for \"Search the catalog\" boxes','YesNo'),
287
('RecordedBooksClientSecret','','30','Client key for RecordedBooks integration','Free'),
290
('RecordedBooksClientSecret','','30','Client key for RecordedBooks integration','Free'),
288
('RecordedBooksDomain','','','RecordedBooks domain','Free'),
291
('RecordedBooksDomain','','','RecordedBooks domain','Free'),
Lines 296-306 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
296
('IntranetCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the staff interface', 'YesNo'),
299
('IntranetCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the staff interface', 'YesNo'),
297
('intranetcolorstylesheet','','50','Define the color stylesheet to use in the staff interface','free'),
300
('intranetcolorstylesheet','','50','Define the color stylesheet to use in the staff interface','free'),
298
('IntranetFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the staff interface','free'),
301
('IntranetFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the staff interface','free'),
302
('IntranetListsHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the lists home page', 'Free'),
299
('IntranetmainUserblock','','70|10','Add a block of HTML that will display on the intranet home page','Textarea'),
303
('IntranetmainUserblock','','70|10','Add a block of HTML that will display on the intranet home page','Textarea'),
300
('IntranetNav','','70|10','Use HTML tabs to add navigational links to the top-hand navigational bar in the staff interface','Textarea'),
304
('IntranetNav','','70|10','Use HTML tabs to add navigational links to the top-hand navigational bar in the staff interface','Textarea'),
301
('IntranetNumbersPreferPhrase','0',NULL,'Control the use of phr operator in callnumber and standard number staff interface searches','YesNo'),
305
('IntranetNumbersPreferPhrase','0',NULL,'Control the use of phr operator in callnumber and standard number staff interface searches','YesNo'),
306
('IntranetPatronsHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the patrons home page', 'Free'),
307
('IntranetPOSHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the point of sale home page', 'Free'),
302
('intranetreadinghistory','1','','If ON, Checkout history is enabled for all patrons','YesNo'),
308
('intranetreadinghistory','1','','If ON, Checkout history is enabled for all patrons','YesNo'),
303
('IntranetReportsHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the reports home page', 'Free'),
309
('IntranetReportsHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the reports home page', 'Free'),
310
('IntranetSerialsHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the serials home page', 'Free'),
304
('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'),
311
('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'),
305
('intranetstylesheet','','50','Enter a complete URL to use an alternate layout stylesheet in Intranet','free'),
312
('intranetstylesheet','','50','Enter a complete URL to use an alternate layout stylesheet in Intranet','free'),
306
('IntranetUserCSS','',NULL,'Add CSS to be included in the intranet in an embedded <style> tag.','free'),
313
('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
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
8
<title>Acquisitions &rsaquo; Koha</title>
9
<title>Acquisitions &rsaquo; Koha</title>
Lines 198-203 Link Here
198
    </div>
199
    </div>
199
    [% END %]
200
    [% END %]
200
201
202
    <div class="row" id="intranet-acqui-home-html">
203
        [% Koha.Preference('IntranetAcquisitionsHomeHTML') | $raw %]
204
    </div>
205
201
</main>
206
</main>
202
</div> <!-- /.col-sm-10.col-sm-push-2 -->
207
</div> <!-- /.col-sm-10.col-sm-push-2 -->
203
208
Lines 206-211 Link Here
206
        [% INCLUDE 'acquisitions-menu.inc' %]
211
        [% INCLUDE 'acquisitions-menu.inc' %]
207
    </aside>
212
    </aside>
208
</div>
213
</div>
214
209
</div> <!-- /.row -->
215
</div> <!-- /.row -->
210
216
211
[% MACRO jsinclude BLOCK %]
217
[% MACRO jsinclude BLOCK %]
Lines 290-294 Link Here
290
        });
296
        });
291
    </script>
297
    </script>
292
[% END %]
298
[% END %]
293
294
[% INCLUDE 'intranet-bottom.inc' %]
299
[% 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 (-5 / +9 lines)
Lines 1-3 Link Here
1
[% USE raw %]
2
[% USE Koha %]
1
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
2
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Authorities &rsaquo; Koha</title>
5
<title>Authorities &rsaquo; Koha</title>
Lines 24-38 Link Here
24
<div class="main container-fluid">
26
<div class="main container-fluid">
25
    <div class="row">
27
    <div class="row">
26
        <div class="col-md-8 col-md-offset-2">
28
        <div class="col-md-8 col-md-offset-2">
29
            [% INCLUDE 'authorities-toolbar.inc' %]
27
30
28
    [% INCLUDE 'authorities-toolbar.inc' %]
31
            <h1>Authorities</h1>
29
32
30
    <h1>Authorities</h1>
33
            <div id="merge_in_progress"></div>
31
34
        </div>
32
    <div id="merge_in_progress"></div>
35
    </div>
33
36
37
    <div class="row" id="intranet-authorities-home-html">
38
        [% Koha.Preference('IntranetAuthoritiesHomeHTML') | $raw %]
34
    </div>
39
    </div>
35
  </div>
36
40
37
[% MACRO jsinclude BLOCK %]
41
[% MACRO jsinclude BLOCK %]
38
    [% INCLUDE 'authorities_js.inc' %]
42
    [% INCLUDE 'authorities_js.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt (+4 lines)
Lines 267-272 Link Here
267
            </div> <!-- /.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 -->
267
            </div> <!-- /.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 -->
268
        </div> <!-- /.row -->
268
        </div> <!-- /.row -->
269
269
270
        <div class="row" id="intranet-cataloging-home-html">
271
            [% Koha.Preference('IntranetCatalogingHomeHTML') | $raw %]
272
        </div>
273
270
[% MACRO jsinclude BLOCK %]
274
[% MACRO jsinclude BLOCK %]
271
    [% INCLUDE 'datatables.inc' %]
275
    [% INCLUDE 'datatables.inc' %]
272
    [% INCLUDE 'columns_settings.inc' %]
276
    [% INCLUDE 'columns_settings.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt (-1 / +4 lines)
Lines 109-114 Link Here
109
            [% PROCESS patron_search_table table_id => 'memberresultst' columns => columns %]
109
            [% PROCESS patron_search_table table_id => 'memberresultst' columns => columns %]
110
          </div>
110
          </div>
111
111
112
          <div class="row" id="intranet-members-home-html">
113
              [% Koha.Preference('IntranetPatronsHomeHTML') | $raw %]
114
          </div>
115
112
            </main>
116
            </main>
113
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
117
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
114
118
Lines 361-365 Link Here
361
    [% 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 %]
365
    [% 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 %]
362
366
363
[% END %]
367
[% END %]
364
365
[% INCLUDE 'intranet-bottom.inc' %]
368
[% 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 444-448 Link Here
444
    });
448
    });
445
    </script>
449
    </script>
446
[% END %]
450
[% END %]
447
448
[% INCLUDE 'intranet-bottom.inc' %]
451
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt (-1 / +4 lines)
Lines 42-47 Link Here
42
            </aside>
42
            </aside>
43
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
43
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
44
     </div> <!-- /.row -->
44
     </div> <!-- /.row -->
45
46
     <div class="row" id="intranet-serials-home-html">
47
         [% Koha.Preference('IntranetSerialsHomeHTML') | $raw %]
48
     </div>
45
</div>
49
</div>
46
50
47
[% MACRO jsinclude BLOCK %]
51
[% MACRO jsinclude BLOCK %]
Lines 50-54 Link Here
50
        var subscriptionid = "[% subscriptionid | html %]";
54
        var subscriptionid = "[% subscriptionid | html %]";
51
    </script>
55
    </script>
52
[% END %]
56
[% END %]
53
54
[% INCLUDE 'intranet-bottom.inc' %]
57
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-2 / +4 lines)
Lines 491-496 Link Here
491
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
491
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
492
    </div> <!-- /.row -->
492
    </div> <!-- /.row -->
493
493
494
    <div class="row" id="intranet-lists-home-html">
495
        [% Koha.Preference('IntranetListsHomeHTML') | $raw %]
496
    </div>
497
494
[% IF ( can_add_biblios ) %]
498
[% IF ( can_add_biblios ) %]
495
    <!-- Modal -->
499
    <!-- Modal -->
496
    <div class="modal" id="addToList" tabindex="-1" role="dialog" aria-labelledby="addToListLabel">
500
    <div class="modal" id="addToList" tabindex="-1" role="dialog" aria-labelledby="addToListLabel">
Lines 917-921 Link Here
917
921
918
    </script>
922
    </script>
919
[% END %]
923
[% END %]
920
921
[% INCLUDE 'intranet-bottom.inc' %]
924
[% INCLUDE 'intranet-bottom.inc' %]
922
- 

Return to bug 6419