single datafieldset in config file gives "Not an ARRAY reference" error
u-fischer opened this issue · 3 comments
u-fischer commented
I was trying to change some bib fields with biber's tool mode using a datafieldset and got the error Not an ARRAY reference
.
As an example. With this config file
<?xml version="1.0" encoding="UTF-8"?>
<config>
<output_fieldcase>title</output_fieldcase>
<datafieldset name="field">
<member fieldtype="field"/>
</datafieldset>
<sourcemap>
<maps datatype="bibtex" level="user">
<map map_overwrite="1" map_foreach="field">
<map_step map_field_set="$MAPLOOP" map_null="1"/>
</map>
</maps>
</sourcemap>
</config>
running biber --tool --configfile biber-test.conf test.bib
outputs
Not an ARRAY reference at C:\Users\NILILA~1\AppData\Local\Temp\par-4e696c696c616e6432303230\cache-96d297aa7563e182b1dd640f406e913a11204801\inc\lib/Biber/Config.pm line 405.
Everything works fine if I add a second arbitrary datafieldset:
<?xml version="1.0" encoding="UTF-8"?>
<config>
<output_fieldcase>title</output_fieldcase>
<datafieldset name="blub">
</datafieldset>
<datafieldset name="field">
<member fieldtype="field"/>
</datafieldset>
<sourcemap>
<maps datatype="bibtex" level="user">
<map map_overwrite="1" map_foreach="field">
<map_step map_field_set="$MAPLOOP" map_null="1"/>
</map>
</maps>
</sourcemap>
</config>
plk commented
I think I know what this is - will fix shortly.
plk commented
Should be fixed in DEV and updated DEV binaries on SF.
plk commented
2.20 is now released