Hi,
I've been taking a look to the filter
at bibharvest/bibfilter_oaiarXiv2inspire.py from Inspire project to
understand how that works. I've seen that, when there are fields to
"append" or "correct", if the record contains a DOI, a separate record is
created for the DOI (with the same recid) and the rest of fields in another
record.
Does anyone know what is the reason why the DOI is put in an independent
record in the generated files?
if len(fields_to_add) > 0:
> #Check if DOI is included in fields_to_add
> fields_without_DOI = []
> record_with_DOI = {}
> for tag, value in fields_to_add:
> if tag == '024':
> DOI_field = [(tag, value)]
> #Create record just with DOI field
> record_with_DOI = create_record_from_list(recid,
> DOI_field)
> else:
> fields_without_DOI.append((tag, value))
> # Append extra DOI record
> append_records.append(create_record_from_list(recid,
> fields_without_DOI))
> if record_with_DOI:
> append_records.append(record_with_DOI)
>
>
Thanks
*Christian Estévez*
Senior Software Engineer
Frontiers <http://www.frontiersin.org/>
Centro de Empresas - UPM
Campus de Montegancedo
28223 Pozuelo de Alarcón
Madrid
twitter.com/FrontiersIn <http://twitter.com/frontiersin>
facebook.com/FrontiersIn <https://www.facebook.com/Frontiersin>