From 1cdbedb4b361bd8ff89e273c89ddef4f4cf657b5 Mon Sep 17 00:00:00 2001 From: Frederic Demians 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 --- .../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) {
  • - - - - - - + +
  • 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