So that they will match what shows up in the search box, thus removing
patron confusion.
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
XMLATTRIBUTES(
key AS name,
cvm.value AS "coded-value",
+ cvm.search_label AS "search-value",
rad.filter,
rad.sorter
),
'//*[local-name()="attributes"]/*[local-name()="field"][@name="' _ icon_style _ '"]');
IF node AND node.textContent;
type = node.textContent;
- args.format_label = node.getAttribute('coded-value')
+ args.format_label = node.getAttribute('coded-value');
+ IF node.getAttribute('search-value');
+ args.format_label = node.getAttribute('search-value');
+ END;
args.schema.itemtype = schema_typemap.$type || 'CreativeWork';
args.format_icon = ctx.media_prefix _ '/images/format_icons/' _ icon_style _ '/' _ type _ '.png';
LAST;