isbnval = clean_isbn(isbnval)
# And for every library we have enabled
for lib in options['libraries']:
+ if lib == 'boreal':
+ return False
found = check_for_isbn(options, lib, isbnval)
if found:
# Add the $9 subfield to mark this as a good one
if ebrary and data['ebrary_code'] != 'boreal':
subs.extend(['u', url])
else:
- subs.extend(['u', data['proxy'] + field['u']])
+ if data['ebrary_code'] == 'boreal' and re.search(r'ra.ocls.ca', field['u']):
+ subs.extend(['u', field['u']])
+ else:
+ subs.extend(['u', data['proxy'] + field['u']])
# Check for a $z as the first 856; in Springer records, at least, this
# indicates a multi-volume set that requires keeping the $z around