Only display the default entry when registering new patrons.
Otherwise, display the saved value for the patron or nothing.
Signed-off-by: Scott Prater <sprater@gmail.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
sc_widget._wtype = 'statcat';
sc_widget._statcat = stat.id();
- // set default value: first choice is patron table entry,
- // then the default entry for the stat_cat
+ // set value: first choice is patron table entry,
+ // then the default entry for the stat_cat if new patron
if(patmap) {
sc_widget.attr(p_opt, patmap.stat_cat_entry());
- } else if(entrymap) {
+ } else if(entrymap && patron.isnew()) {
sc_widget.attr('value', e_field);
}