Bugzilla – Attachment 177414 Details for
Bug 39012
Koha fails to import default MARC bibliographic framework
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39012: Koha fails to import default MARC bibliographic framework
Bug-39012-Koha-fails-to-import-default-MARC-biblio.patch (text/plain), 1.44 KB, created by
Janusz Kaczmarek
on 2025-01-31 21:42:00 UTC
(
hide
)
Description:
Bug 39012: Koha fails to import default MARC bibliographic framework
Filename:
MIME Type:
Creator:
Janusz Kaczmarek
Created:
2025-01-31 21:42:00 UTC
Size:
1.44 KB
patch
obsolete
>From 302bb62fa3b48d3cff5b9dd6d9af287f8cc73f2b Mon Sep 17 00:00:00 2001 >From: Janusz Kaczmarek <januszop@gmail.com> >Date: Fri, 31 Jan 2025 21:35:34 +0000 >Subject: [PATCH] Bug 39012: Koha fails to import default MARC bibliographic > framework > >Test plan: >========== >1. In Administration > MARC bibliographic, from framework menu on the > right, prepare a csv file with framework export. >2. Try to import the fili into Default framework. >3. This should fail, with a redirect to a strange looking page, and > with lots of errors in the logs. >4. Apply the patch ; restart all. >5. Repeat p. 2. You should succeed and you should be able to see the > differences in the framework (if you exported from a different > framework). >--- > admin/import_export_framework.pl | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/admin/import_export_framework.pl b/admin/import_export_framework.pl >index 159ff08f59..d95edae1c8 100755 >--- a/admin/import_export_framework.pl >+++ b/admin/import_export_framework.pl >@@ -79,6 +79,7 @@ if ($op eq 'export') { > if ($uploadFd && !$input->cgi_error) { > my $tmpfilename = $input->tmpFileName(scalar $input->param($fieldname)); > $filename = $tmpfilename . '.' . $extension; # rename the tmp file with the extension >+ $frameworkcode = '' if $frameworkcode eq 'default'; > $ok = ImportFramework($filename, $frameworkcode, 1, 'biblio') if (rename($tmpfilename, $filename)); > } > } >-- >2.39.5
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 39012
:
177414
|
177433
|
178448
|
178449