function add_harvest_field_form(id_field){ var nb = document.getElementById('unimarcfieldnumber_'+id_field).value *1; nb++; var mydiv = document.getElementById('add_zone_harvest_'+id_field); var newcontent = document.createElement('div'); var nom_id = 'unimarcfield_'+id_field+'_'+nb; newcontent.setAttribute('id',nom_id); var harvest_field_form_add =document.getElementById('harvest_field_form_add_'+id_field); var form=harvest_field_form_add.innerHTML; // replave !!nb!! par nb while (form.search('!!nb!!') != -1) form = form.replace('!!nb!!',nb); newcontent.innerHTML = form; mydiv.appendChild(newcontent); document.getElementById('unimarcfieldnumber_'+id_field).value=nb; } function del_harvest_field_form(id_field,nb){ var nom_id = 'unimarcfield_'+id_field+'_'+nb; var mydiv = document.getElementById('add_zone_harvest_'+id_field); mydiv.removeChild(document.getElementById(nom_id)); }
!!src_list!!
".htmlentities($msg["admin_harvest_build_srce"], ENT_QUOTES, $charset)." ".htmlentities($msg["admin_harvest_build_code"], ENT_QUOTES, $charset)."
!!elt_list!! "; $harvest_form_elt_tpl="
".$msg['admin_harvest_build_form_first_found']."
!!unimarcfield!! !!subfield!! !!sources!! !!pmb_unimarc_select!!
!!add_zone_harvest!!
!!harvest_field_form_add!! "; $harvest_form_elt_src_tpl="
!!unimarcfield!! !!subfield!! !!sources!! !!pmb_unimarc_select!! !!onlylastempty!!
"; $harvest_form_elt_ajax_tpl=" ";