This sets the stage for differentiating between validated fields that
match authority records, and validated fields with a controlling $0
subfield that match an authority record. This also gives sites a bit
of an easier entry point to customize their MARC editor - say, for example,
to support accessibility requirements if red vs. black doesn't satisfy
the needs of those who are colour-blind.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17234
dcc99617-32d9-48b4-a31d-
7c20da2025e4
}
grid[name="-none-"] * label { color: black; }
+
+.marcValidated { color: black; }
+.marcUnvalidated { color: red; }
// XXX If adt, etc should be validated separately from vxz, etc then move this up into the above for loop
for (var j = 0; j < subfields.length; j++) {
var sf = subfields[j];
- if (!found) {
- sf.childNodes[2].inputField.style.color = 'red';
+ if (!found) {
+ dojo.removeClass(sf.childNodes[2], 'marcValidated');
+ dojo.addClass(sf.childNodes[2], 'marcUnvalidated');
} else {
- sf.childNodes[2].inputField.style.color = 'black';
+ dojo.removeClass(sf.childNodes[2], 'marcUnvalidated');
+ dojo.addClass(sf.childNodes[2], 'marcValidated');
}
}
}