This patch is writted by Paul Poulain.
It auto-select the marcflavour from syspref in the stage marc import.
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
</li>
<li>
<label for="syntax">Character encoding: </label>
- <select name="syntax" id="syntax"><option value="MARC21">MARC21</option><option value="UNIMARC">UNIMARC</option></select>
+ <!-- TMPL_IF name="UNIMARC" -->
+ <select name="syntax" id="syntax"><option value="MARC21">MARC21</option><option value="UNIMARC" selected="1">UNIMARC</option></select>
+ <!-- TMPL_ELSE -->
+ <select name="syntax" id="syntax"><option value="MARC21" selected="1">MARC21</option><option value="UNIMARC">UNIMARC</option></select>
+ <!-- /TMPL_IF -->
</li>
</ol></fieldset>
} else {
# initial form
+ if (C4::Context->preference("marcflavour") eq "UNIMARC") {
+ $template->param("UNIMARC" => 1);
+ }
my @matchers = C4::Matcher::GetMatcherList();
$template->param(available_matchers => \@matchers);
}