Bugzilla – Attachment 138132 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]
Bug 17385: Add missing imports and equivalent code for GetMarcBiblio
Bug-17385-Add-missing-imports-and-equivalent-code-.patch (text/plain), 2.57 KB, created by
Shi Yao Wang
on 2022-07-26 14:14:30 UTC
(
hide
)
Description:
Bug 17385: Add missing imports and equivalent code for GetMarcBiblio
Filename:
MIME Type:
Creator:
Shi Yao Wang
Created:
2022-07-26 14:14:30 UTC
Size:
2.57 KB
patch
obsolete
>From b9e5a8f253a37fd9e2bcf28a2363f3025acee4f6 Mon Sep 17 00:00:00 2001 >From: Shi Yao Wang <shi-yao.wang@inlibro.com> >Date: Tue, 26 Jul 2022 10:08:33 -0400 >Subject: [PATCH] Bug 17385: Add missing imports and equivalent code for > GetMarcBiblio > >--- > basket/basket.pl | 2 +- > catalogue/export.pl | 5 +++-- > opac/opac-export.pl | 3 ++- > virtualshelves/shelves.pl | 2 +- > 4 files changed, 7 insertions(+), 5 deletions(-) > >diff --git a/basket/basket.pl b/basket/basket.pl >index 7f6a776717..ebbc9df673 100755 >--- a/basket/basket.pl >+++ b/basket/basket.pl >@@ -28,7 +28,7 @@ use C4::Biblio qw( > use C4::Items qw( GetItemsInfo ); > use C4::Auth qw( get_template_and_user ); > use C4::Output qw( output_html_with_http_headers ); >-use C4::XSLT; >+use C4::XSLT qw( CustomXSLTExportList ); > > > use Koha::AuthorisedValues; >diff --git a/catalogue/export.pl b/catalogue/export.pl >index 541000b037..34bf7857e1 100755 >--- a/catalogue/export.pl >+++ b/catalogue/export.pl >@@ -8,7 +8,7 @@ use C4::Biblio qw( GetMarcControlnumber ); > use CGI qw ( -utf8 ); > use C4::Ris qw( marc2ris ); > use C4::XSLT qw( XSLTParse4Display ); >- >+use Koha::Biblios; > > > >@@ -92,7 +92,8 @@ if ($op eq "export") { > my $biblionumber = $query->param("bib"); > if ($biblionumber){ > my $xslFile = $query->param("file"); >- my $marc = GetMarcBiblio( { biblionumber => $biblionumber, embed_items => 1 } ); >+ my $biblio = Koha::Biblios->find($biblionumber); >+ my $marc = $biblio->metadata->record( { embed_items => 1 } ); > my $format=$query->param("format")||'txt'; > my @hiddenitems; > >diff --git a/opac/opac-export.pl b/opac/opac-export.pl >index 7d5920de33..af951c5563 100755 >--- a/opac/opac-export.pl >+++ b/opac/opac-export.pl >@@ -142,7 +142,8 @@ elsif ( $format =~ /isbd/ ) { > elsif ($format =~ /html/ ) { > if ($biblionumber){ > my $xslFile = $query->param("file"); >- $marc = C4::Biblio::GetMarcBiblio({biblionumber => $biblionumber}); >+ my $biblio = Koha::Biblios->find($biblionumber); >+ $marc = $biblio->metadata->record; > my @hiddenitems; > > $marc = XSLTParse4Display( >diff --git a/virtualshelves/shelves.pl b/virtualshelves/shelves.pl >index a76b60c938..6b7acddff4 100755 >--- a/virtualshelves/shelves.pl >+++ b/virtualshelves/shelves.pl >@@ -31,7 +31,7 @@ use C4::Koha qw( > use C4::Items qw( GetItemsLocationInfo ); > use C4::Members; > use C4::Output qw( pagination_bar output_html_with_http_headers ); >-use C4::XSLT qw( XSLTParse4Display ); >+use C4::XSLT qw( XSLTParse4Display CustomXSLTExportList ); > > use Koha::Biblios; > use Koha::Biblioitems; >-- >2.25.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
|
170014
|
170015
|
170016
|
170017
|
170018
|
170019
|
170026
|
170027
|
170028
|
170029
|
170030
|
170031
|
170983
|
170984
|
170985
|
170986
|
170987
|
170988