"FAULTY_MARC": "A MARC tag must be identified by three digits, and the subfield must be one non-whitespace, non-control character.",
"WORKING_MP_HERE": "Choose from among the three buttons above to add a new match point.",
"WORKING_QM_HERE": "Use buttons above and to the right to add new quality metrics.",
- "SVF": "Record Attribute"
+ "SVF": "Record Attribute",
+ "MATCH_SCORE": "Match score ${0}"
}
}
function render_vmsp_label(point, minimal) {
- /* "minimal" has this implication:
+ /* "minimal" has these implications:
* for svf, only show the code, not the longer label.
+ * no quality display
*/
if (point.bool_op()) {
return point.bool_op();
} else if (point.svf()) {
return (openils.Util.isTrue(point.negate()) ? "NOT " : "") + (
minimal ? point.svf() :
- (point.svf() + " / " + find_crad_by_name(point.svf()).label())
+ (point.svf() + " / " + find_crad_by_name(point.svf()).label()) +
+ " | " + dojo.string.substitute(
+ localeStrings.MATCH_SCORE, [point.quality()]
+ )
);
} else {
return (openils.Util.isTrue(point.negate()) ? "NOT " : "") +
- point.tag() + " \u2021" + point.subfield();
+ point.tag() + " \u2021" + point.subfield() + (minimal ? "" : " | " +
+ dojo.string.substitute(
+ localeStrings.MATCH_SCORE, [point.quality()]
+ )
+ );
}
}