uncontrolled attribute values that consistent only of spaces are normalized away
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
New
|
Undecided
|
Unassigned |
Bug Description
This is the same as bug 1414112, but for attributes and attribute values that are not backed by config.
One example of this is the biography flag (008/34 for BKS), where at present if the 008/34 in a bib contains a blank, no "biog" key is added to the set of record attributes. This means that creating a search filter on non-biographies, i.e., "biog( )" is impossible.
This can readily be corrected as follows in the metabib.
@@ -133,7 +133,7 @@ BEGIN
-- Create unknown uncontrolled values and find the IDs of the values
IF ccvm_row.id IS NULL THEN
- IF tmp_val IS NOT NULL AND BTRIM(tmp_val) <> '' THEN
+ IF tmp_val IS NOT NULL AND tmp_val <> '' THEN
However, that would result in *all* such fixed fields that can contain only blanks showing up as attributes:
"biog"=>" ", "conf"=>" ", "ctry"=>" ", "fest"=>" ", "gpub"=>" ", "ills"=>" ", "indx"=>" ", "mrec"=>" ", "date1"=>"2015", "date2"=>" ", "audience"=>" ", "cat_form"=>"a", "language"=>"eng", "bib_level"=>"m", "enc_level"=>"K", "item_lang"=>"eng", "item_type"=>"a", "vr_format"=>"s", "pub_status"=>"s", "icon_format"
It is not necessarily clear to me that this is desirable for attributes like date2. For some attributes, like "conf" and "fest", a space is not actually a valid value.
Consequently, some additional eyes on this are desired.
Evergreen
tags: | added: cataloging |
For the example of "biog", I would argue (pretty strenuously) that we're simply lacking seed data for ccvm, since there are prescribed values. Conf and Fest would fall into the same catagory as Biog, IMO.
I agree with the implication that it's not desirable for date2, or for that matter any uncontrolled attribute, to be tracked when the value is all-spaces.