),
);
} else {
+ if( $frameworkcode ne q{} ) {
+ # BZ 19096: Overwrite kohafield from Default when adding a new record
+ my $rec = Koha::MarcSubfieldStructures->find( q{}, $tagfield, $tagsubfield );
+ $kohafield = $rec->kohafield if $rec;
+ }
$sth_insert->execute(
$tagfield,
$tagsubfield,
<dt><a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC bibliographic framework</a></dt>
<dd>Create and manage Bibliographic frameworks that define the characteristics of your MARC Records (field and subfield definitions) as well as templates for the MARC editor.</dd>
<dt><a href="/cgi-bin/koha/admin/koha2marclinks.pl">Koha to MARC mapping</a></dt>
- <dd>Define the mapping between the Koha transactional database (SQL) and the MARC Bibliographic records. Note that the mapping can be defined through MARC Bibliographic Framework. This tool is just a shortcut to speed up linkage.</dd>
+ <dd>Define the mapping between the Koha transactional database (SQL) and the MARC Bibliographic records.</dd>
<dt><a href="/cgi-bin/koha/admin/fieldmapping.pl">Keywords to MARC mapping</a></dt>
<dd>Define the mapping between keywords and MARC fields. The keywords are used to find some data independently of the framework.</dd>
<dt><a href="/cgi-bin/koha/admin/checkmarc.pl">MARC Bibliographic framework test</a></dt>
<li><label for="link[% loo.row %]">Link:</label><input type="text" id="link[% loo.row %]" name="link" value="[% loo.link %]" size="10" maxlength="80" /> (e.g., Title or Local-Number) <span class="error"><em>NOTE: If you change this value you must ask your administrator to run misc/batchRebuildBiblioTables.pl.</em></span></li>
<li>
<label for="kohafield[% loo.row %]">Koha link:</label>
- <select name="kohafield" id="kohafield[% loo.row %]" size="1">
+ <!-- This select should be DISABLED; value is submitted by the following hidden input -->
+ <select name="kohafield" id="kohafield[% loo.row %]" size="1" disabled>
[% FOREACH value IN loo.kohafields %]
[% IF ( value == loo.kohafield ) %]
<option value="[% value %]" selected="selected">[% value %]</option>
[% END %]
[% END %]
</select>
+ <!-- Do NOT remove this next hidden input! We need it to save kohafield. -->
+ <input type="hidden" name="kohafield" value="[% loo.kohafield %]"/>
</li>
</ol>
</fieldset>