MARC21 plugins fixed

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Paul POULAIN 2007-10-05 16:37:44 -05:00 committed by Joshua Ferraro
parent c6b086c165
commit 40b8937717
5 changed files with 10 additions and 41 deletions

View file

@ -68,13 +68,8 @@ function Blur$function_name(index) {
}
function Focus$function_name(subfield_managed) {
// TODO FIXME :: HTML code has changed
for (i=0 ; i<document.f.field_value.length ; i++) {
if (document.f.tag[i].value == '003') {
document.f.field_value[i].value = '$org';
}
}
return 0;
document.getElementById(\"$field_number\").value='$org';
return 0;
}
function Clic$function_name(subfield_managed) {

View file

@ -89,14 +89,8 @@ function Blur$function_name(index) {
}
function Focus$function_name(subfield_managed) {
// TODO FIXME :: HTML code has changed
for (i=0 ; i<document.f.field_value.length ; i++) {
if (document.f.tag[i].value == '005') {
document.f.field_value[i].value = '$date';
}
}
return 0;
document.getElementById(\"$field_number\").value='$date';
return 0;
}
function Clic$function_name(subfield_managed) {

View file

@ -52,16 +52,8 @@ sub plugin_javascript {
//<![CDATA[
function Focus$function_name(subfield_managed) {
// TODO FIXME :: HTML code has changed
for (i=0 ; i<document.f.field_value.length ; i++) {
if (document.f.tag[i].value == '008') {
if (!document.f.field_value[i].value) {
document.f.field_value[i].value = '$dateentered' + 't xxu||||| |||| 00| 0 eng d';
}
}
}
return 1;
document.getElementById(\"$field_number\").value='$dateentered' + 't xxu||||| |||| 00| 0 eng d';
return 1;
}
function Blur$function_name(subfield_managed) {

View file

@ -70,14 +70,8 @@ function Blur$function_name(index) {
}
function Focus$function_name(subfield_managed) {
// TODO FIXME :: HTML code has changed
for (i=0 ; i<document.f.field_value.length ; i++) {
if (document.f.tag[i].value == '040' && document.f.subfield[i].value == 'c') {
document.f.field_value[i].value = '$org';
}
}
return 0;
document.getElementById(\"$field_number\").value='$org';
return 0;
}
function Clic$function_name(subfield_managed) {

View file

@ -70,14 +70,8 @@ function Blur$function_name(index) {
}
function Focus$function_name(subfield_managed) {
// TODO FIXME :: HTML code has changed
for (i=0 ; i<document.f.field_value.length ; i++) {
if (document.f.tag[i].value == '040' && document.f.subfield[i].value == 'd') {
document.f.field_value[i].value = '$org';
}
}
return 0;
document.getElementById(\"$field_number\").value='$org';
return 0;
}
function Clic$function_name(subfield_managed) {