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

(-)a/C4/Installer/PerlDependencies.pm (-4 / +9 lines)
Lines 528-537 our $PERL_DEPS = { Link Here
528
        'min_ver'  => '2.05',
528
        'min_ver'  => '2.05',
529
    },
529
    },
530
    'Template' => {
530
    'Template' => {
531
	'usage'    => 'Core',
531
        'usage'    => 'Core',
532
	'required' => '1',
532
        'required' => '1',
533
	'min_ver'  => '2.22',
533
        'min_ver'  => '2.22',
534
    },
534
      },
535
    'Template::Plugin::Stash' => {
536
        'usage'    => 'Debugging',
537
        'required' => '1',
538
        'min_ver'  => '1.006',
539
      },
535
    'Gravatar::URL' => {
540
    'Gravatar::URL' => {
536
        'usage'    => 'Photos in OPAC reviews',
541
        'usage'    => 'Photos in OPAC reviews',
537
        'required' => '0',
542
        'required' => '0',
(-)a/installer/data/mysql/sysprefs.sql (+2 lines)
Lines 113-118 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
113
('DisplayMultiPlaceHold','1','','Display the ability to place multiple holds or not','YesNo'),
113
('DisplayMultiPlaceHold','1','','Display the ability to place multiple holds or not','YesNo'),
114
('DisplayOPACiconsXSLT','1','','If ON, displays the format, audience, and material type icons in XSLT MARC21 results and detail pages in the OPAC.','YesNo'),
114
('DisplayOPACiconsXSLT','1','','If ON, displays the format, audience, and material type icons in XSLT MARC21 results and detail pages in the OPAC.','YesNo'),
115
('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'),
115
('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'),
116
('DumpTemplateVarsIntranet',  '0', NULL ,  'If enabled, dump all Template Toolkit variable to a comment in the html source for the staff intranet.',  'YesNo'),
117
('DumpTemplateVarsOpac',  '0', NULL ,  'If enabled, dump all Template Toolkit variable to a comment in the html source for the opac.',  'YesNo'),
116
('EasyAnalyticalRecords','0','','If on, display in the catalogue screens tools to easily setup analytical record relationships','YesNo'),
118
('EasyAnalyticalRecords','0','','If on, display in the catalogue screens tools to easily setup analytical record relationships','YesNo'),
117
('emailLibrarianWhenHoldIsPlaced','0',NULL,'If ON, emails the librarian whenever a hold is placed','YesNo'),
119
('emailLibrarianWhenHoldIsPlaced','0',NULL,'If ON, emails the librarian whenever a hold is placed','YesNo'),
118
('EnableBorrowerFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo'),
120
('EnableBorrowerFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo'),
(-)a/installer/data/mysql/updatedatabase.pl (+24 lines)
Lines 37-42 use Getopt::Long; Link Here
37
use C4::Context;
37
use C4::Context;
38
use C4::Installer;
38
use C4::Installer;
39
use C4::Dates;
39
use C4::Dates;
40
use Koha::Database;
40
41
41
use MARC::Record;
42
use MARC::Record;
42
use MARC::File::XML ( BinaryEncoding => 'utf8' );
43
use MARC::File::XML ( BinaryEncoding => 'utf8' );
Lines 9971-9976 if ( CheckVersion($DBversion) ) { Link Here
9971
    SetVersion($DBversion);
9972
    SetVersion($DBversion);
9972
}
9973
}
9973
9974
9975
$DBversion = "XXX";
9976
if ( CheckVersion($DBversion) ) {
9977
    my $rs = Koha::Database->new()->schema()->resultset('Systempreference');
9978
    $rs->find_or_create(
9979
        {
9980
            variable => 'DumpTemplateVarsIntranet',
9981
            value    => 0,
9982
            explanation => 'If enabled, dump all Template Toolkit variable to a comment in the html source for the staff intranet.',
9983
            type => 'YesNo',
9984
        }
9985
    );
9986
    $rs->find_or_create(
9987
        {
9988
            variable => 'DumpTemplateVarsOpac',
9989
            value    => 0,
9990
            explanation => 'If enabled, dump all Template Toolkit variable to a comment in the html source for the opac.',
9991
            type => 'YesNo',
9992
        }
9993
    );
9994
    print "Upgrade to $DBversion done (Bug 13948 - Add ability to dump template toolkit variables to html comment)\n";
9995
    SetVersion($DBversion);
9996
}
9997
9974
9998
9975
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
9999
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
9976
# SEE bug 13068
10000
# SEE bug 13068
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc (+8 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
    <!-- [% Dumper.dump( Stash.stash() ) %] -->
9
[% END %]
10
3
[% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]">[% ELSE %]<html lang="[% lang %]">[% END %]
11
[% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]">[% ELSE %]<html lang="[% lang %]">[% END %]
4
<head>
12
<head>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/logs.pref (-48 / +62 lines)
Lines 1-49 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
            - when serials are added, deleted or changed.
51
    Debugging:
52
        -
53
            - pref: DumpTemplateVarsIntranet
54
              choices:
55
                  on: Do
56
                  off: "Don't"
57
            - dump all Template Toolkit variable to a comment in the html source for the staff intranet.
58
        -
59
            - pref: DumpTemplateVarsOpac
60
              choices:
61
                  on: Do
62
                  off: "Don't"
63
            - 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 / +8 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
    <!-- [% Dumper.dump( Stash.stash() ) %] -->
9
[% END %]
10
3
[% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]" class="no-js">[% ELSE %]<html lang="[% lang %]" class="no-js">[% END %]
11
[% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]" class="no-js">[% ELSE %]<html lang="[% lang %]" class="no-js">[% END %]
4
<head>
12
<head>
5
<title>
13
<title>
6
- 

Return to bug 13948