Bugzilla – Attachment 7006 Details for
Bug 7345
Should be possible to export MARC records without private fields
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7345: Follow up: Adding the new export option to staff interface
Bug-7345-Follow-up-Adding-the-new-export-option-to.patch (text/plain), 2.52 KB, created by
Katrin Fischer
on 2012-01-01 19:35:52 UTC
(
hide
)
Description:
Bug 7345: Follow up: Adding the new export option to staff interface
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2012-01-01 19:35:52 UTC
Size:
2.52 KB
patch
obsolete
>From d3ecce40bcc84297b9f7c7de2d777564f8c7d529 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Sun, 1 Jan 2012 20:32:47 +0100 >Subject: [PATCH] Bug 7345: Follow up: Adding the new export option to staff > interface > >This patch adds the new export option 'marcstd' for exporting MARC >records without 9xx, x9x and xx9 fields and subfields to the staff >detail page. > >Patch applies on top of first patch for this bug. >--- > catalogue/export.pl | 3 ++- > .../intranet-tmpl/prog/en/includes/cat-toolbar.inc | 3 ++- > 2 files changed, 4 insertions(+), 2 deletions(-) > >diff --git a/catalogue/export.pl b/catalogue/export.pl >index db69af9..d832fbb 100755 >--- a/catalogue/export.pl >+++ b/catalogue/export.pl >@@ -27,6 +27,7 @@ if ($op eq "export") { > if ($biblionumber){ > > my $marc = GetMarcBiblio($biblionumber, 1); >+ my $error = ''; > > if ($format =~ /endnote/) { > $marc = marc2endnote($marc); >@@ -53,7 +54,7 @@ if ($op eq "export") { > } > elsif ($format =~ /marcstd/) { > C4::Charset::SetUTF8Flag($marc,1); >- ($error,$marc) = marc2marc($marc, 'marcstd', C4::Context->preference('marcflavour')); >+ ($error, $marc) = marc2marc($marc, 'marcstd', C4::Context->preference('marcflavour')); > } > print $query->header( > -type => 'application/octet-stream', >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >index 413d7f4..114f345 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >@@ -122,7 +122,8 @@ function confirm_items_deletion() { > { text: _("Dublin Core (XML)"), url: "/cgi-bin/koha/catalogue/export.pl?format=dc&op=export&bib=[% biblionumber %]" }, > { text: _("MARCXML"), url: "/cgi-bin/koha/catalogue/export.pl?format=marcxml&op=export&bib=[% biblionumber %]" }, > { text: _("MARC (non-Unicode/MARC-8)"), url: "/cgi-bin/koha/catalogue/export.pl?format=marc8&op=export&bib=[% biblionumber %]" }, >- { text: _("MARC (Unicode/UTF-8)"), url: "/cgi-bin/koha/catalogue/export.pl?format=utf8&op=export&bib=[% biblionumber %]" } >+ { text: _("MARC (Unicode/UTF-8)"), url: "/cgi-bin/koha/catalogue/export.pl?format=utf8&op=export&bib=[% biblionumber %]" }, >+ { text: _("MARC (Unicode/UTF-8, Standard)"), url: "/cgi-bin/koha/catalogue/export.pl?format=marcstd&op=export&bib=[% biblionumber %]" } > ]; > > new YAHOO.widget.Button({ >-- >1.7.5.4
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 7345
:
6704
|
6707
|
6738
|
7001
|
7006
|
7017
|
7460
|
7462
|
7566
|
7612