marcrecord
record.removeVariableField

var fieldNo = this.fields.indexOf(variableField);
if (fieldNo >= 0) {
   this.fields.splice(fieldNo, 1);
}

 

for (var no=0; no<this.fields.length; no++) {
  if (this.fields[no].tag < “010”) {
    if (this.fields[no].tag == variableField.tag) {
      this.fields.splice(no, 1);
    }
  }
  else {
    if (this.fields[no].tag == variableField.tag && this.fields[no].ind1 == variableField.ind1 && this.fields[no].ind2 == variableField.ind2) {
      this.fields.splice(no, 1);
    }
  }
}