Lines 71-88
Link Here
|
71 |
<script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu_[% KOHA_VERSION %].js"></script> |
71 |
<script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu_[% KOHA_VERSION %].js"></script> |
72 |
<script type="text/javascript"> |
72 |
<script type="text/javascript"> |
73 |
function AddFld(kohafield) { |
73 |
function AddFld(kohafield) { |
74 |
var fieldstr = prompt( _("Adding a mapping for: ") + kohafield + ".\n" + _("Please enter field tag and subfield code, separated by a comma. (For control fields: add '@' as subfield code.)\nThe change will be applied immediately.") ); |
74 |
var fieldstr = prompt( _("Adding a mapping for: %s.").format(kohafield) + "\n" + _("Please enter field tag and subfield code, separated by a comma. (For control fields: add '@' as subfield code.)\nThe change will be applied immediately.") ); |
75 |
var temp = fieldstr.split(','); |
75 |
var temp = fieldstr.split(','); |
76 |
if( temp.length == 2 ) { |
76 |
if( temp.length == 2 ) { |
77 |
$('#add_field').val( kohafield+','+fieldstr ); |
77 |
$('#add_field').val( kohafield+','+fieldstr ); |
78 |
$('#koha2marc').submit(); |
78 |
$('#koha2marc').submit(); |
79 |
} else { |
79 |
} else { |
80 |
alert( "Invalid input. Enter something like: 245,a" ); |
80 |
alert( _("Invalid input. Enter something like: 245,a") ); |
81 |
} |
81 |
} |
82 |
} |
82 |
} |
83 |
|
83 |
|
84 |
function RemFld(tagfield, subfield ) { |
84 |
function RemFld(tagfield, subfield ) { |
85 |
if( confirm( _("Mapping will be removed for: ") + tagfield + subfield + ".\n" + _("The change will be applied immediately." ))) { |
85 |
if( confirm( _("Mapping will be removed for: %s.").format(tagfield + subfield) + "\n" + _("The change will be applied immediately." ))) { |
86 |
$('#remove_field').val(tagfield+','+subfield); |
86 |
$('#remove_field').val(tagfield+','+subfield); |
87 |
$('#koha2marc').submit(); |
87 |
$('#koha2marc').submit(); |
88 |
} |
88 |
} |
89 |
- |
|
|