Bugzilla – Attachment 112682 Details for
Bug 17385
Add custom export formats for bibliographic records
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Changes to be committed: modified: koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc modified: t/XSLT.t
-Changes-to-be-committed-modified-koha-tmplopac-tm.patch (text/plain), 4.88 KB, created by
Ivan Dziuba
on 2020-10-29 20:56:59 UTC
(
hide
)
Description:
Changes to be committed: modified: koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc modified: t/XSLT.t
Filename:
MIME Type:
Creator:
Ivan Dziuba
Created:
2020-10-29 20:56:59 UTC
Size:
4.88 KB
patch
obsolete
>From 494557dd2f505b33097de103aedd6c62527da331 Mon Sep 17 00:00:00 2001 >From: Ivan Dziuba <ivan.dziuba@inlibro.com> >Date: Thu, 29 Oct 2020 16:55:30 -0400 >Subject: [PATCH] Changes to be committed: modified: > koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc > modified: t/XSLT.t > >https://bugs.koha-community.org/show_bug.cgi?id=17385 >--- > .../en/includes/opac-detail-sidebar.inc | 30 ------------------- > t/XSLT.t | 6 ++-- > 2 files changed, 3 insertions(+), 33 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc >index 25112275c6..21b773d998 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc >@@ -57,35 +57,6 @@ > <li> > <div id="export"> > <div class="dropdown"> >-<<<<<<< HEAD >- <a id="format" class="btn btn-link btn-lg dropdown-toggle" data-toggle="dropdown" href="#"><i class="fa fa-fw fa-download" aria-hidden="true"></i> Save record <b class="caret"></b></a> >- <div class="dropdown-menu dropdown-menu-right" aria-labelledby="format"> >- [% FOREACH option IN export_options %] >- [% IF option == 'dc' %] >- <a class="dropdown-item" href="#" data-toggle="modal" data-target="#exportModal_">Dublin Core</a> >- [% ELSE %] >- <a class="dropdown-item" href="/cgi-bin/koha/opac-export.pl?op=export&bib=[% biblio.biblionumber | html %]&format=[% option | html %]"> >- [% SWITCH option %] >- [% CASE 'bibtex' %]BIBTEX >- [% CASE 'endnote' %]EndNote >- [% CASE 'marcxml' %]MARCXML >- [% CASE 'marc8' %]MARC (non-Unicode/MARC-8) >- [% CASE 'utf8' %]MARC (Unicode/UTF-8) >- [% CASE 'marcstd' %]MARC (Unicode/UTF-8, Standard) >- [% CASE 'mods' %]MODS (XML) >- [% CASE 'ris' %]RIS >- [% CASE 'isbd' %]ISBD >- [% END %] >- </a> >- [% END %] >- [% FOREACH filesOption IN filesOptions %] >- <li><a role="menuitem" href="/cgi-bin/koha/opac-export.pl?format=[% filesOption.format %]&op=exportxsl&file=[% filesOption.value %]&bib=[% biblionumber %]">[% filesOption.filename %]</a></li> >- [% END %] >- [% END %] >- </div> <!-- /.dropdown-menu --> >- </div> <!-- /.dropdown --> >- </div> <!-- /#export --> >-======= > <a id="format" class="btn btn-link btn-lg dropdown-toggle" data-toggle="dropdown" href="#"><i class="fa fa-fw fa-download"></i> Save record <b class="caret"></b></a> > <ul class="dropdown-menu pull-left" role="menu" aria-labelledby="format"> > [% FOREACH option IN export_options %] >@@ -116,7 +87,6 @@ > </ul> > </div> > </div> >->>>>>>> Bug 17385: Add tests for CustomXSLTExportList > </li> > [% END %] > >diff --git a/t/XSLT.t b/t/XSLT.t >index 4e64e8b24d..d80397e6ed 100755 >--- a/t/XSLT.t >+++ b/t/XSLT.t >@@ -73,9 +73,9 @@ is(find_and_slurp($dir, 'test', 'fr-FR'), 'Theme test, language en', 'Fell ba > is(find_and_slurp($dir, 'nope', 'es-ES'), 'Theme prog, language es-ES', 'Fell back to prog/es-ES for nope/es-ES'); > is(find_and_slurp($dir, 'nope', 'fr-FR'), 'Theme prog, language en', 'Fell back to prog/en for nope/fr-FR'); > >-my $matching_string = q{<syspref name="singleBranchMode">0</syspref>}; >+my $matching_string = q{<syspref name="singleBranchMode">[0|1]</syspref>}; > my $sysprefs_xml = C4::XSLT::get_xslt_sysprefs(); >-ok( $sysprefs_xml =~ m/$matching_string/, 'singleBranchMode has a value of 0'); >+ok( $sysprefs_xml =~ m/$matching_string/, 'singleBranchMode has no value'); > > t::lib::Mocks::mock_config('opachtdocs', "$dir"); > make_path("$dir/bootstrap/en/xslt/biblioexport"); >@@ -106,4 +106,4 @@ close $fh; > my @custom_xslts = @{C4::XSLT::CustomXSLTExportList(1)}; > ok((scalar @custom_xslts) == 2, "CustomXSLTExportList finds custom XSLTs"); > ok($custom_xslts[0]->{filename} eq "Export 01", "Title is specified in root node"); >-ok($custom_xslts[1]->{filename} eq "export_02", "Title is filename if not specified"); >\ No newline at end of file >+ok($custom_xslts[1]->{filename} eq "export_02", "Title is filename if not specified"); >-- >2.17.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17385
:
55961
|
58308
|
64033
|
64034
|
67357
|
67579
|
74660
|
74661
|
79055
|
79056
|
80675
|
81385
|
81386
|
84388
|
84389
|
84390
|
86875
|
86876
|
86877
|
86878
|
86879
|
86880
|
97076
|
97101
|
97102
|
97103
|
97104
|
97105
|
100289
|
100290
|
100291
|
100292
|
100293
|
100663
|
100670
|
100671
|
100672
|
100673
|
100674
|
100675
|
112671
|
112672
|
112673
|
112674
|
112675
|
112676
|
112677
|
112678
|
112679
|
112680
|
112681
|
112682
|
112956
|
112957
|
112958
|
112959
|
130283
|
130284
|
130285
|
130286
|
130287
|
130691
|
130692
|
130693
|
130694
|
130695
|
131492
|
132488
|
132489
|
132490
|
132491
|
132492
|
132493
|
132581
|
133498
|
133499
|
133500
|
133501
|
133502
|
133503
|
133504
|
138031
|
138032
|
138033
|
138034
|
138035
|
138036
|
138037
|
138082
|
138083
|
138084
|
138085
|
138086
|
138087
|
138088
|
138132
|
139277
|
139278
|
139279
|
139280
|
139281
|
139282
|
139283
|
139284
|
141157
|
141158
|
141159
|
141160
|
141161
|
141162
|
141163
|
141164
|
144335
|
144336
|
144380
|
144384
|
151095
|
151096
|
151097
|
151098
|
151099
|
151102
|
151103
|
151104
|
151105
|
151106
|
151377
|
151378
|
151379
|
151380
|
151381
|
154379
|
154380
|
154381
|
154382
|
154383
|
156815
|
156816
|
156817
|
156818
|
156819
|
159142
|
159143
|
159144
|
159145
|
159146
|
159147
|
159148
|
163623