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

(-)a/C4/XSLT.pm (-3 / +10 lines)
Lines 164-169 sub _get_best_default_xslt_filename { Link Here
164
    return $xslfilename;
164
    return $xslfilename;
165
}
165
}
166
166
167
=head2 get_xslt_sysprefs
168
169
    returns XML xslt sysprefs.
170
171
=cut
172
167
sub get_xslt_sysprefs {
173
sub get_xslt_sysprefs {
168
    my $sysxml = "<sysprefs>\n";
174
    my $sysxml = "<sysprefs>\n";
169
    foreach my $syspref ( qw/ hidelostitems OPACURLOpenInNewWindow
175
    foreach my $syspref ( qw/ hidelostitems OPACURLOpenInNewWindow
Lines 268-274 sub XSLTParse4Display { Link Here
268
    }
274
    }
269
    my $xmlrecord = $record->as_xml(C4::Context->preference('marcflavour'));
275
    my $xmlrecord = $record->as_xml(C4::Context->preference('marcflavour'));
270
276
271
    $variables ||= {};
277
    my $variables ||= {};
272
    if (C4::Context->preference('OPACShowOpenURL')) {
278
    if (C4::Context->preference('OPACShowOpenURL')) {
273
        my @biblio_itemtypes;
279
        my @biblio_itemtypes;
274
        my $biblio = Koha::Biblios->find($biblionumber);
280
        my $biblio = Koha::Biblios->find($biblionumber);
Lines 426-432 sub CustomXSLTExportList { Link Here
426
                      '/' . C4::Context->preference( $opac ? "opacthemes" : "template") .
432
                      '/' . C4::Context->preference( $opac ? "opacthemes" : "template") .
427
                      '/' . C4::Languages::getlanguage() .
433
                      '/' . C4::Languages::getlanguage() .
428
                      '/xslt/biblioexport';
434
                      '/xslt/biblioexport';
429
    my @files = <$dir/*.xsl>;
435
    my @files = glob qq("$dir/*.xsl");
430
    foreach my $file (@files) {
436
    foreach my $file (@files) {
431
        if ( -f "$file" ) {
437
        if ( -f "$file" ) {
432
            (my $text = $file) =~ s/.*\///g;
438
            (my $text = $file) =~ s/.*\///g;
Lines 443-449 sub CustomXSLTExportList { Link Here
443
            # Get output format
449
            # Get output format
444
            # There should only be one xsl:output node, so taking the first one only is OK
450
            # There should only be one xsl:output node, so taking the first one only is OK
445
            $node = @{$node->findnodes("xsl:output")}[0];
451
            $node = @{$node->findnodes("xsl:output")}[0];
446
            my $outputformat = $node->{"method"} if $node;
452
            my $outputformat= "";
453
            $outputformat = $node->{"method"} if $node;
447
            $outputformat = "txt" if ($outputformat eq "" || $outputformat eq "text");
454
            $outputformat = "txt" if ($outputformat eq "" || $outputformat eq "text");
448
455
449
            my %row = (
456
            my %row = (
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc (-1 / +1 lines)
Lines 98-104 CAN_user_serials_create_subscription ) %] Link Here
98
        <li><a href="/cgi-bin/koha/catalogue/export.pl?format=mods&amp;op=export&amp;bib=[% biblionumber | uri %]">MODS (XML)</a></li>
98
        <li><a href="/cgi-bin/koha/catalogue/export.pl?format=mods&amp;op=export&amp;bib=[% biblionumber | uri %]">MODS (XML)</a></li>
99
        <li><a href="/cgi-bin/koha/catalogue/export.pl?format=ris&amp;op=export&amp;bib=[% biblionumber | uri %]">RIS</a></li>
99
        <li><a href="/cgi-bin/koha/catalogue/export.pl?format=ris&amp;op=export&amp;bib=[% biblionumber | uri %]">RIS</a></li>
100
        [% FOREACH filesOption IN filesOptions %]
100
        [% FOREACH filesOption IN filesOptions %]
101
            <li><a href="/cgi-bin/koha/catalogue/export.pl?format=[% filesOption.format %]&amp;op=exportxsl&amp;file=[% filesOption.value %]&amp;bib=[% biblionumber | html %]">[% filesOption.filename %]</a></li>
101
            <li><a href="/cgi-bin/koha/catalogue/export.pl?format=[% filesOption.format | uri %]&amp;op=exportxsl&amp;file=[% filesOption.value | uri %]&amp;bib=[% biblionumber | uri %]">[% filesOption.filename | html %]</a></li>
102
        [% END %]
102
        [% END %]
103
    </ul>
103
    </ul>
104
    </div>
104
    </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/virtualshelves-toolbar.inc (-1 / +1 lines)
Lines 32-38 Link Here
32
                        <li><a href="/cgi-bin/koha/virtualshelves/downloadshelf.pl?format=[% csv_profile.export_format_id | uri %]&amp;shelfid=[% shelf.shelfnumber | uri %]">CSV - [% csv_profile.profile | html %]</a></li>
32
                        <li><a href="/cgi-bin/koha/virtualshelves/downloadshelf.pl?format=[% csv_profile.export_format_id | uri %]&amp;shelfid=[% shelf.shelfnumber | uri %]">CSV - [% csv_profile.profile | html %]</a></li>
33
                    [% END %]
33
                    [% END %]
34
                    [% FOREACH xsl_export IN xsl_exports %]
34
                    [% FOREACH xsl_export IN xsl_exports %]
35
                        <li><a href="/cgi-bin/koha/virtualshelves/downloadshelf.pl?format=xsl.[% xsl_export.value %]&amp;shelfid=[% shelf.shelfnumber %]">XSL - [% xsl_export.filename %]</a></li>
35
                        <li><a href="/cgi-bin/koha/virtualshelves/downloadshelf.pl?format=xsl.[% xsl_export.value | uri %]&amp;shelfid=[% shelf.shelfnumber | uri %]">XSL - [% xsl_export.filename | html %]</a></li>
36
                    [% END %]
36
                    [% END %]
37
                </ul>
37
                </ul>
38
        </div>
38
        </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt (-1 / +1 lines)
Lines 57-63 Link Here
57
                                <li><a href="/cgi-bin/koha/basket/downloadcart.pl?format=[% csv_profile.export_format_id | uri %]&amp;bib_list=[% bib_list | uri %]">CSV - [% csv_profile.profile | html %]</a></li>
57
                                <li><a href="/cgi-bin/koha/basket/downloadcart.pl?format=[% csv_profile.export_format_id | uri %]&amp;bib_list=[% bib_list | uri %]">CSV - [% csv_profile.profile | html %]</a></li>
58
                            [% END %]
58
                            [% END %]
59
                            [% FOREACH xsl_export IN xsl_exports %]
59
                            [% FOREACH xsl_export IN xsl_exports %]
60
                                <li><a href="/cgi-bin/koha/basket/downloadcart.pl?format=xsl.[% xsl_export.value %]&amp;bib_list=[% bib_list %]">XSL - [% xsl_export.filename %]</a></li>
60
                                <li><a href="/cgi-bin/koha/basket/downloadcart.pl?format=xsl.[% xsl_export.value | uri %]&amp;bib_list=[% bib_list | uri %]">XSL - [% xsl_export.filename | html %]</a></li>
61
                            [% END %]
61
                            [% END %]
62
                            </ul>
62
                            </ul>
63
                        </div>
63
                        </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-1 / +1 lines)
Lines 949-955 Note that permanent location is a code, and location may be an authval. Link Here
949
        <option value="marc8">MARC (non-Unicode/MARC-8)</option>
949
        <option value="marc8">MARC (non-Unicode/MARC-8)</option>
950
        <option value="utf8">MARC (Unicode/UTF-8)</option>
950
        <option value="utf8">MARC (Unicode/UTF-8)</option>
951
        [% FOREACH filesOption IN filesOptions %]
951
        [% FOREACH filesOption IN filesOptions %]
952
            <option value="[% filesOption.value %]">[% filesOption.filename %]</option>
952
            <option value="[% filesOption.value | html %]">[% filesOption.filename | html %]</option>
953
        [% END %]</select>
953
        [% END %]</select>
954
        <input type="submit" name="save" value="Download Record" /></td>
954
        <input type="submit" name="save" value="Download Record" /></td>
955
  </tr>
955
  </tr>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/downloadshelf.tt (-1 / +1 lines)
Lines 37-43 Link Here
37
	    <option value="[% csv_profile.export_format_id | html %]">CSV - [% csv_profile.profile | html %]</option>
37
	    <option value="[% csv_profile.export_format_id | html %]">CSV - [% csv_profile.profile | html %]</option>
38
	    [% END %]
38
	    [% END %]
39
        [% FOREACH xsl_export IN xsl_exports %]
39
        [% FOREACH xsl_export IN xsl_exports %]
40
            <option value="xsl.[% xsl_export.value %]">XSL - [% xsl_export.filename %]</option>
40
            <option value="xsl.[% xsl_export.value | html %]">XSL - [% xsl_export.filename | html %]</option>
41
        [% END %]
41
        [% END %]
42
	</select>
42
	</select>
43
	</li></ol>
43
	</li></ol>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc (-1 / +1 lines)
Lines 109-115 Link Here
109
                                </li>
109
                                </li>
110
                                [% ELSE %]
110
                                [% ELSE %]
111
                                    [% FOREACH filesOption IN filesOptions %]
111
                                    [% FOREACH filesOption IN filesOptions %]
112
                                        <li><a role="menuitem" href="/cgi-bin/koha/opac-export.pl?format=[% filesOption.format %]&amp;op=exportxsl&amp;file=[% filesOption.value %]&amp;bib=[% biblionumber %]">[% filesOption.filename %]</a></li>
112
                                        <li><a role="menuitem" href="/cgi-bin/koha/opac-export.pl?format=[% filesOption.format | html %]&amp;op=exportxsl&amp;file=[% filesOption.value | html %]&amp;bib=[% biblionumber | html %]">[% filesOption.filename | html %]</a></li>
113
                                    [% END %]
113
                                    [% END %]
114
                                [% END %]
114
                                [% END %]
115
                            [% END %]
115
                            [% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-downloadcart.tt (-1 / +1 lines)
Lines 21-27 Link Here
21
                                    <option value="[% csv_profile.export_format_id | html %]">CSV - [% csv_profile.profile | html %]</option>
21
                                    <option value="[% csv_profile.export_format_id | html %]">CSV - [% csv_profile.profile | html %]</option>
22
                                [% END %]
22
                                [% END %]
23
                                [% FOREACH xsl_export IN xsl_exports %]
23
                                [% FOREACH xsl_export IN xsl_exports %]
24
                                    <option value="xsl.[% xsl_export.value %]">XSL - [% xsl_export.filename %]</option>
24
                                    <option value="xsl.[% xsl_export.value | html %]">XSL - [% xsl_export.filename | html %]</option>
25
                                [% END %]
25
                                [% END %]
26
                            </select>
26
                            </select>
27
                            <fieldset class="action">
27
                            <fieldset class="action">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-downloadshelf.tt (-2 / +1 lines)
Lines 66-72 Link Here
66
                                            <option value="[% csv_profile.export_format_id | html %]">CSV - [% csv_profile.profile | html %]</option>
66
                                            <option value="[% csv_profile.export_format_id | html %]">CSV - [% csv_profile.profile | html %]</option>
67
                                            [% END %]
67
                                            [% END %]
68
                                            [% FOREACH xsl_export IN xsl_exports %]
68
                                            [% FOREACH xsl_export IN xsl_exports %]
69
                                                <option value="xsl.[% xsl_export.value %]">XSL - [% xsl_export.filename %]</option>
69
                                                <option value="xsl.[% xsl_export.value | html %]">XSL - [% xsl_export.filename | html %]</option>
70
                                            [% END %]
70
                                            [% END %]
71
                                        </select>
71
                                        </select>
72
                                        <span class="required">Required</span>
72
                                        <span class="required">Required</span>
73
- 

Return to bug 17385