- index = lookup_index_from_string_attr(attributes);
-
- /* Attempt to fix bug #2978: Look for a relation attribute */
+ {
+ Odr_int use_attribute = -1;
+ index = lookup_index_from_string_attr(attributes, &use_attribute);
+ if (!index)
+ {
+ wrbuf_rewind(w);
+ if (use_attribute != -1)
+ wrbuf_printf(w, ODR_INT_PRINTF, use_attribute);
+ return YAZ_BIB1_UNSUPP_USE_ATTRIBUTE;
+ }
+ }