View | Details | Raw Unified | Return to bug 18472
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_18472-Add_system_preference_CustomOnlineHelpStaff.perl (+14 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("INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES  ('CustomOnlineHelpStaff', 'filebased', 'none|filebased', 'Select custom online help system for staff client.', 'Choice')" );
5
6
    # or perform some test and warn
7
    # if( !column_exists( 'biblio', 'biblionumber' ) ) {
8
    #    warn "There is something wrong";
9
    # }
10
11
    # Always end with this (adjust the bug info)
12
    SetVersion( $DBversion );
13
    print "Upgrade to $DBversion done (Bug XXXXX - description)\n";
14
}
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 114-119 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
114
('CronjobLog','0',NULL,'If ON, log information from cron jobs.','YesNo'),
114
('CronjobLog','0',NULL,'If ON, log information from cron jobs.','YesNo'),
115
('CumulativeRestrictionPeriods',0,NULL,'Cumulate the restriction periods instead of keeping the highest','YesNo'),
115
('CumulativeRestrictionPeriods',0,NULL,'Cumulate the restriction periods instead of keeping the highest','YesNo'),
116
('CurrencyFormat','US','US|FR|CH','Determines the display format of currencies. eg: \'36000\' is displayed as \'360 000,00\'  in \'FR\' or \'360,000.00\'  in \'US\'.','Choice'),
116
('CurrencyFormat','US','US|FR|CH','Determines the display format of currencies. eg: \'36000\' is displayed as \'360 000,00\'  in \'FR\' or \'360,000.00\'  in \'US\'.','Choice'),
117
('CustomOnlineHelpStaff', 'filebased', 'none|filebased', 'Select custom online help system for staff client.', 'Choice'),
117
('dateformat','us','metric|us|iso|dmydot','Define global date format (us mm/dd/yyyy, metric dd/mm/yyy, ISO yyyy-mm-dd, dmydot dd.mm.yyyy)','Choice'),
118
('dateformat','us','metric|us|iso|dmydot','Define global date format (us mm/dd/yyyy, metric dd/mm/yyy, ISO yyyy-mm-dd, dmydot dd.mm.yyyy)','Choice'),
118
('DebugLevel','2','0|1|2','Define the level of debugging information sent to the browser when errors are encountered (set to 0 in production). 0=none, 1=some, 2=most','Choice'),
119
('DebugLevel','2','0|1|2','Define the level of debugging information sent to the browser when errors are encountered (set to 0 in production). 0=none, 1=some, 2=most','Choice'),
119
('decreaseLoanHighHolds',NULL,'','Decreases the loan period for items with number of holds above the threshold specified in decreaseLoanHighHoldsValue','YesNo'),
120
('decreaseLoanHighHolds',NULL,'','Decreases the loan period for items with number of holds above the threshold specified in decreaseLoanHighHoldsValue','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/help-bottom.inc (-1 / +3 lines)
Lines 2-8 Link Here
2
  <fieldset class="action"><input type="button" class="close" value="Close help window" />
2
  <fieldset class="action"><input type="button" class="close" value="Close help window" />
3
  <input type="hidden" name="type" value="modify" />
3
  <input type="hidden" name="type" value="modify" />
4
  <input type="hidden" name="referer" value="[% referer %]" />
4
  <input type="hidden" name="referer" value="[% referer %]" />
5
  <input type="submit" class="submit" value="Edit help" /></fieldset>
5
    [% IF Koha.Preference('CustomOnlineHelpStaff') == 'filebased' %]
6
        <input type="submit" class="submit" value="Edit help" /></fieldset>
7
    [% END %]
6
</form>
8
</form>
7
</body>
9
</body>
8
</html>
10
</html>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/help-top.inc (+1 lines)
Lines 1-3 Link Here
1
[% USE Koha %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Online help</title>
3
<title>Online help</title>
3
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref (+7 lines)
Lines 150-155 Staff Client: Link Here
150
                 no: "Don't enable"
150
                 no: "Don't enable"
151
            - audio alerts for events defined in the audio alerts section of administration.
151
            - audio alerts for events defined in the audio alerts section of administration.
152
        -
152
        -
153
            - "Custom online help system for staff client: "
154
            - pref: CustomOnlineHelpStaff
155
              default: filebased
156
              choices:
157
                  none: "None"
158
                  filebased: "File based"
159
        -
153
            - pref: IntranetCatalogSearchPulldown
160
            - pref: IntranetCatalogSearchPulldown
154
              choices:
161
              choices:
155
                  yes: Show
162
                  yes: Show
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/help/mainpage.tt (-5 / +6 lines)
Lines 17-29 Link Here
17
<li><a href="http://koha-community.org/get-involved/irc/">Chat with Koha users and developers</a></li>
17
<li><a href="http://koha-community.org/get-involved/irc/">Chat with Koha users and developers</a></li>
18
</ul>
18
</ul>
19
19
20
<h2>Can I edit the online help?</h2>
20
[% USE Koha %][% IF Koha.Preference('CustomOnlineHelpStaff') == 'filebased'  %]
21
    <h2>Can I edit the online help?</h2>
21
22
22
<p>You can edit the online help through the Koha Staff Client by clicking the &quot;Edit Help&quot; button. This feature has been designed so that library workflow and policies can be documented within Koha.</p>
23
    <p>You can edit the online help through the Koha Staff Client by clicking the &quot;Edit Help&quot; button. This feature has been designed so that library workflow and policies can be documented within Koha.</p>
23
24
24
<p><strong>IMPORTANT:</strong> Your online help will be overwritten by the new Help when there is an upgrade. If you want to keep a copy of your online help, you should instruct your System Administrator to upgrade the Online Help directory in the Koha file tree.</p>
25
    <p><strong>IMPORTANT:</strong> Your online help will be overwritten by the new Help when there is an upgrade. If you want to keep a copy of your online help, you should instruct your System Administrator to upgrade the Online Help directory in the Koha file tree.</p>
25
26
26
<p>The online help directory is: <pre>[% themelang %]/modules/help</pre></p>
27
    <p>The online help directory is: <pre>[% themelang %]/modules/help</pre></p>
28
[% END %]
27
29
28
<p><strong>See the full documentation for Koha in the <a href="http://manual.koha-community.org/[% helpVersion %]/en/">manual</a> (online).</strong></p>
30
<p><strong>See the full documentation for Koha in the <a href="http://manual.koha-community.org/[% helpVersion %]/en/">manual</a> (online).</strong></p>
29
31
30
- 

Return to bug 18472