I'm trying to manipulate bibtex files using biber in tool mode: given the source file source.bib:
@article{key1,
group = {A}
}
@article{key2,
group = {A, B}
}
I need to produce:
@article{key1,
group = {A},
keywords = {RG;Group A}
}
@article{key2,
group = {A, B},
keywords = {RG;Group A; Group B}
}
I type "biber --tool --configfile=group.conf source.bib" with the configuration file group.conf:
<?xml version="1.0" encoding="UTF-8"?>
<config>
<sourcemap>
<maps datatype="bibtex" level="user">
<map map_overwrite="1">
<map_step map_field_source="group" map_final="1"/>
<map_step map_field_set="keywords" map_field_value="RG" map_append="1"/>
</map>
<map map_overwrite="1" map_foreach="group">
<map_step map_field_set="keywords" map_field_value=";Group $MAPLOOP" map_append="1"/>
</map>
</maps>
</sourcemap>
</config>
and I'm getting:
@ARTICLE{key1,
GROUP = {A},
KEYWORDS = {RG;Group $MAPLOOP},
}
@ARTICLE{key2,
GROUP = {A, B},
KEYWORDS = {RG;Group $MAPLOOP},
}
Can someone tell me where I'm doing wrong?
groupfield is dropped. – gusbrs Feb 13 '18 at 15:32