Citing subpages of websites with licenses

by 927589452   Last Updated September 11, 2019 10:23 AM

I am trying to cite subpages of webpages and I need some data to be inherited. The idea is to use crossref, to stop entering data multiple times like this,

@Online{stack:tex:some-question,
author={Some Person},
title={Citing subpages of websites with licenses},
crossref={stack:tex},
url={tex.stackexchange.com/questions/123456/some-text},
urldate={2019-09-01},
date={1800-01-01},
}

@Online{stack:tex,
title={\TeX - \LaTeX StackExchange},
url={tex.stackexchange.com},
crossref={stack},
timestamp={2019-09-11},
}

@Online{stack,
title={StackExchange},
url={StackExchange},
license={CC-BY-SA-4.0},
date={1800-01-01},
timestamp={2019-09-11},
author={{Some Person somewhere on StackExchange: Please replace me}},
}

this is done in connection with a dedicated driver for the license entry

<?xml version="1.0" encoding="UTF-8"?>
<config>
<datamodel>
<fields>
<field fieldtype="field" datatype="literal">license</field>
<field fieldtype="field" datatype="literal">owner</field>
<field fieldtype="field" datatype="string">timestamp</field>
</fields>
<entryfields>
<field>license</field>
<field>timestamp</field>
<field>owner</field>
<field>date</field>
<field>day</field>
<field>month</field>
<field>year</field>
</entryfields>
</datamodel>
<sourcemap>
<maps datatype="bibtex" map_overwrite="0">
<map map_overwrite="0">
<!-- fallback urldate -->
<map_step map_field_source="URL" map_final="1"/>
<map_step map_field_source="TIMESTAMP" map_field_target="URLDATE"/>
<map_step map_field_source="DATE" map_field_target="URLDATE"/>
</map>
<map>
<per_type>ONLINE</per_type>
<!-- drop extra data -->
<map_step map_field_set="DATE" map_field_null="1"/>
<map_step map_field_set="DAY" map_field_null="1"/>
<map_step map_field_set="MONTH" map_field_null="1"/>
<map_step map_field_set="YEAR" map_field_null="1"/>
</map>
<map map_overwrite="0">
<per_type>LATEXPACKAGE</per_type>
<map_step map_type_source="LATEXPACKAGE" map_type_target="SOFTWARE" map_final="1"/>
<map_step map_field_set="KEYWORD" map_field_value=",software" map_append="1"/>
<map_step map_field_set="KEYWORD" map_field_value=",latexpackage" map_append="1"/>
</map>
<map map_overwrite="0">
<per_type>SOFTWARE</per_type>
<map_step map_type_source="SOFTWARE" map_type_target="ONLINE" map_final="1"/>
<map_step map_field_set="KEYWORD" map_field_value=",software" map_append="1"/>
</map>
</maps>
</sourcemap>
<inheritance>
<defaults inherit_all="true" override_target="false">
</defaults>
</inheritance>
</config>

for biber in tool mode

What is missing to have the test.bibertool.bib have all needed data fields through inheritance?



Related Questions


Updated April 15, 2018 19:23 PM

Updated July 19, 2015 13:10 PM

Updated July 01, 2015 13:10 PM

Updated November 05, 2017 19:23 PM