Bugzilla – Attachment 3511 Details for
Bug 5997
Use marcflavour to set default when staging import
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed Patch
0001-Bug-5997-Use-marcflavour-in-Stage-MARC-Records-For-I.patch (text/plain), 2.71 KB, created by
Chris Cormack
on 2011-03-29 21:37:14 UTC
(
hide
)
Description:
Proposed Patch
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-03-29 21:37:14 UTC
Size:
2.71 KB
patch
obsolete
>From 1cdbedb4b361bd8ff89e273c89ddef4f4cf657b5 Mon Sep 17 00:00:00 2001 >From: Frederic Demians <f.demians@tamil.fr> >Date: Mon, 19 Jan 2009 15:43:55 +0100 >Subject: [PATCH] Bug 5997 : Use marcflavour in Stage MARC Records For Import > >In Stage MARC Record For Import, after uploading the file >to stage, a Character encoding (MARC21/UNIMARC) must be >selected for the file. By default, this is MARC21. >This patch defaults to marcflavour system preference. > >Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com> >--- > .../prog/en/modules/tools/stage-marc-import.tmpl | 19 +++++++++++++------ > tools/stage-marc-import.pl | 8 +++++--- > 2 files changed, 18 insertions(+), 9 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tmpl >index 8660db0..ce296e5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tmpl >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tmpl >@@ -96,12 +96,19 @@ function CheckForm(f) { > > </li> > <li> >- <label for="syntax">Character encoding: </label> >- <!-- TMPL_IF name="UNIMARC" --> >- <select name="syntax" id="syntax"><option value="MARC21">MARC21</option><option value="UNIMARC" selected="selected">UNIMARC</option></select> >- <!-- TMPL_ELSE --> >- <select name="syntax" id="syntax"><option value="MARC21" selected="selected">MARC21</option><option value="UNIMARC">UNIMARC</option></select> >- <!-- /TMPL_IF --> >+ <label for="syntax">Marc Flavour: </label> >+ <select name="syntax" id="syntax"> >+ <!--TMPL_IF name="syntax_marc21" --> >+ <option selected="selected" value="MARC21">MARC21</option> >+ <!--TMPL_ELSE --> >+ <option value="MARC21">MARC21</option> >+ <!--/TMPL_IF--> >+ <!--TMPL_IF name="syntax_unimarc" --> >+ <option selected="selected" value="UNIMARC">UNIMARC</option> >+ <!--TMPL_ELSE --> >+ <option value="UNIMARC">UNIMARC</option> >+ <!--/TMPL_IF--> >+ </select> > > </li> > </ol></fieldset> >diff --git a/tools/stage-marc-import.pl b/tools/stage-marc-import.pl >index b113332..915e9a2 100755 >--- a/tools/stage-marc-import.pl >+++ b/tools/stage-marc-import.pl >@@ -65,9 +65,11 @@ my ($template, $loggedinuser, $cookie) > debug => 1, > }); > >-$template->param(SCRIPT_NAME => $ENV{'SCRIPT_NAME'}, >- uploadmarc => $fileID); >- >+$template->param( >+ SCRIPT_NAME => $ENV{'SCRIPT_NAME'}, >+ uploadmarc => $fileID, >+ "syntax_" . lc C4::Context->preference('marcflavour') => 1, >+ ); > my %cookies = parse CGI::Cookie($cookie); > my $sessionID = $cookies{'CGISESSID'}->value; > if ($completedJobID) { >-- >1.7.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 5997
: 3511