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

(-)a/C4/Installer/PerlDependencies.pm (-4 / +9 lines)
Lines 518-527 our $PERL_DEPS = { Link Here
518
        'min_ver'  => '2.05',
518
        'min_ver'  => '2.05',
519
    },
519
    },
520
    'Template' => {
520
    'Template' => {
521
	'usage'    => 'Core',
521
        'usage'    => 'Core',
522
	'required' => '1',
522
        'required' => '1',
523
	'min_ver'  => '2.22',
523
        'min_ver'  => '2.22',
524
    },
524
      },
525
    'Template::Plugin::Stash' => {
526
        'usage'    => 'Debugging',
527
        'required' => '1',
528
        'min_ver'  => '1.006',
529
      },
525
    'Gravatar::URL' => {
530
    'Gravatar::URL' => {
526
        'usage'    => 'Photos in OPAC reviews',
531
        'usage'    => 'Photos in OPAC reviews',
527
        'required' => '0',
532
        'required' => '0',
(-)a/installer/data/mysql/sysprefs.sql (+2 lines)
Lines 115-120 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
115
('DisplayMultiPlaceHold','1','','Display the ability to place multiple holds or not','YesNo'),
115
('DisplayMultiPlaceHold','1','','Display the ability to place multiple holds or not','YesNo'),
116
('DisplayOPACiconsXSLT','1','','If ON, displays the format, audience, and material type icons in XSLT MARC21 results and detail pages in the OPAC.','YesNo'),
116
('DisplayOPACiconsXSLT','1','','If ON, displays the format, audience, and material type icons in XSLT MARC21 results and detail pages in the OPAC.','YesNo'),
117
('dontmerge','1',NULL,'If ON, modifying an authority record will not update all associated bibliographic records immediately, ask your system administrator to enable the merge_authorities.pl cron job','YesNo'),
117
('dontmerge','1',NULL,'If ON, modifying an authority record will not update all associated bibliographic records immediately, ask your system administrator to enable the merge_authorities.pl cron job','YesNo'),
118
('DumpTemplateVarsIntranet',  '0', NULL ,  'If enabled, dump all Template Toolkit variable to a comment in the html source for the staff intranet.',  'YesNo'),
119
('DumpTemplateVarsOpac',  '0', NULL ,  'If enabled, dump all Template Toolkit variable to a comment in the html source for the opac.',  'YesNo'),
118
('EasyAnalyticalRecords','0','','If on, display in the catalogue screens tools to easily setup analytical record relationships','YesNo'),
120
('EasyAnalyticalRecords','0','','If on, display in the catalogue screens tools to easily setup analytical record relationships','YesNo'),
119
('emailLibrarianWhenHoldIsPlaced','0',NULL,'If ON, emails the librarian whenever a hold is placed','YesNo'),
121
('emailLibrarianWhenHoldIsPlaced','0',NULL,'If ON, emails the librarian whenever a hold is placed','YesNo'),
120
('EnableBorrowerFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo'),
122
('EnableBorrowerFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo'),
(-)a/installer/data/mysql/updatedatabase.pl (-1 / +23 lines)
Lines 38-44 use C4::Context; Link Here
38
use C4::Installer;
38
use C4::Installer;
39
use C4::Dates;
39
use C4::Dates;
40
use Koha::Database;
40
use Koha::Database;
41
42
use Koha;
41
use Koha;
43
42
44
use MARC::Record;
43
use MARC::Record;
Lines 10554-10559 if ( CheckVersion($DBversion) ) { Link Here
10554
    SetVersion($DBversion);
10553
    SetVersion($DBversion);
10555
}
10554
}
10556
10555
10556
$DBversion = "XXX";
10557
if ( CheckVersion($DBversion) ) {
10558
    my $rs = Koha::Database->new()->schema()->resultset('Systempreference');
10559
    $rs->find_or_create(
10560
        {
10561
            variable => 'DumpTemplateVarsIntranet',
10562
            value    => 0,
10563
            explanation => 'If enabled, dump all Template Toolkit variable to a comment in the html source for the staff intranet.',
10564
            type => 'YesNo',
10565
        }
10566
    );
10567
    $rs->find_or_create(
10568
        {
10569
            variable => 'DumpTemplateVarsOpac',
10570
            value    => 0,
10571
            explanation => 'If enabled, dump all Template Toolkit variable to a comment in the html source for the opac.',
10572
            type => 'YesNo',
10573
        }
10574
    );
10575
    print "Upgrade to $DBversion done (Bug 13948 - Add ability to dump template toolkit variables to html comment)\n";
10576
    SetVersion($DBversion);
10577
}
10578
10557
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
10579
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
10558
# SEE bug 13068
10580
# SEE bug 13068
10559
# if there is anything in the atomicupdate, read and execute it.
10581
# if there is anything in the atomicupdate, read and execute it.
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc (+14 lines)
Lines 1-4 Link Here
1
<!DOCTYPE html>
1
<!DOCTYPE html>
2
<!-- TEMPLATE FILE: [% template.name.split('/').last %] -->
2
<!-- TEMPLATE FILE: [% template.name.split('/').last %] -->
3
4
[% USE Koha %]
5
[% IF Koha.Preference('DumpTemplateVarsIntranet') %]
6
    [% USE Stash %]
7
    [% USE Dumper %]
8
    <!--
9
    [% FILTER replace('<!--', '<!- -') %]
10
        [% FILTER replace('-->', '- ->') %]
11
            [% Dumper.dump( Stash.stash() ) %]
12
        [% END %]
13
    [% END %]
14
    -->
15
[% END %]
16
3
[% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]">[% ELSE %]<html lang="[% lang %]">[% END %]
17
[% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]">[% ELSE %]<html lang="[% lang %]">[% END %]
4
<head>
18
<head>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/logs.pref (-60 / +74 lines)
Lines 1-61 Link Here
1
Logging:
1
Logging:
2
    -
2
    Logging:
3
        - pref: LetterLog
3
        -
4
          choices:
4
            - pref: LetterLog
5
              on: Log
5
              choices:
6
              off: "Don't log"
6
                  on: Log
7
        - when an automatic claim notice is sent.
7
                  off: "Don't log"
8
    -
8
            - when an automatic claim notice is sent.
9
        - pref: BorrowersLog
9
        -
10
          choices:
10
            - pref: BorrowersLog
11
              on: Log
11
              choices:
12
              off: "Don't log"
12
                  on: Log
13
        - changes to patron records.
13
                  off: "Don't log"
14
    -
14
            - changes to patron records.
15
        - pref: CataloguingLog
15
        -
16
          choices:
16
            - pref: CataloguingLog
17
              on: Log
17
              choices:
18
              off: "Don't log"
18
                  on: Log
19
        - any changes to bibliographic or item records. Since this occurs whenever a book is checked in or out as well, it is not advisable to turn this on.
19
                  off: "Don't log"
20
    -
20
            - any changes to bibliographic or item records. Since this occurs whenever a book is checked in or out as well, it is not advisable to turn this on.
21
        - pref: AuthoritiesLog
21
        -
22
          choices:
22
            - pref: AuthoritiesLog
23
              on: Log
23
              choices:
24
              off: "Don't log"
24
                  on: Log
25
        - changes to authority records.
25
                  off: "Don't log"
26
    -
26
            - changes to authority records.
27
        - pref: FinesLog
27
        -
28
          choices:
28
            - pref: FinesLog
29
              on: Log
29
              choices:
30
              off: "Don't log"
30
                  on: Log
31
        - when fines are charged, paid, or forgiven.
31
                  off: "Don't log"
32
    -
32
            - when fines are charged, paid, or forgiven.
33
        - pref: IssueLog
33
        -
34
          choices:
34
            - pref: IssueLog
35
              on: Log
35
              choices:
36
              off: "Don't log"
36
                  on: Log
37
        - when items are checked out.
37
                  off: "Don't log"
38
    -
38
            - when items are checked out.
39
        - pref: ReturnLog
39
        -
40
          choices:
40
            - pref: ReturnLog
41
              on: Log
41
              choices:
42
              off: "Don't log"
42
                  on: Log
43
        - when items are returned.
43
                  off: "Don't log"
44
    -
44
            - when items are returned.
45
        - pref: SubscriptionLog
45
        -
46
          choices:
46
            - pref: SubscriptionLog
47
              on: Log
47
              choices:
48
              off: "Don't log"
48
                  on: Log
49
        - when serials are added, deleted or changed.
49
                  off: "Don't log"
50
    -
50
            - when serials are added, deleted or changed.
51
        - pref: CronjobLog
51
        -
52
          choices:
52
            - pref: CronjobLog
53
              on: Log
53
              choices:
54
              off: "Don't log"
54
                  on: Log
55
        - information from cron jobs.
55
                  off: "Don't log"
56
    -
56
            - information from cron jobs.
57
        - pref: ReportsLog
57
        -
58
          choices:
58
            - pref: ReportsLog
59
              on: Log
59
              choices:
60
              off: "Don't log"
60
                  on: Log
61
        - when reports are added, deleted or changed.
61
                  off: "Don't log"
62
            - when reports are added, deleted or changed.
63
    Debugging:
64
        -
65
            - pref: DumpTemplateVarsIntranet
66
              choices:
67
                  on: Do
68
                  off: "Don't"
69
            - dump all Template Toolkit variable to a comment in the html source for the staff intranet.
70
        -
71
            - pref: DumpTemplateVarsOpac
72
              choices:
73
                  on: Do
74
                  off: "Don't"
75
            - dump all Template Toolkit variable to a comment in the html source for the OPAC.
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-open.inc (-1 / +14 lines)
Lines 1-5 Link Here
1
<!DOCTYPE html>
1
<!DOCTYPE html>
2
<!-- TEMPLATE FILE: [% template.name.split('/').last %] -->
2
<!-- TEMPLATE FILE: [% template.name.split('/').last %] -->
3
4
[% USE Koha %]
5
[% IF Koha.Preference('DumpTemplateVarsOpac') %]
6
    [% USE Stash %]
7
    [% USE Dumper %]
8
    <!--
9
    [% FILTER replace('<!--', '<!- -') %]
10
        [% FILTER replace('-->', '- ->') %]
11
            [% Dumper.dump( Stash.stash() ) %]
12
        [% END %]
13
    [% END %]
14
    -->
15
[% END %]
16
3
[% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]" class="no-js">[% ELSE %]<html lang="[% lang %]" class="no-js">[% END %]
17
[% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]" class="no-js">[% ELSE %]<html lang="[% lang %]" class="no-js">[% END %]
4
<head>
18
<head>
5
<title>
19
<title>
6
- 

Return to bug 13948