diff --git a/.travis.yml b/.travis.yml index deea4fc2df7690138224830a0d4440c5fd8c5ef6..75f6843754c3ebacf7b402c53357e919b1135c37 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,6 +29,7 @@ deploy: file: - main.pdf - gipp.bib + - mendeley.bib - publist.html on: repo: ag-gipp/bib diff --git a/src/biber/mendeley.xml b/src/biber/mendeley.xml new file mode 100644 index 0000000000000000000000000000000000000000..9f652158ac4d0350cd5441cbd5c92674db19b52b --- /dev/null +++ b/src/biber/mendeley.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> +<config> + <output_fieldcase>lower</output_fieldcase> + <output_indent>2</output_indent> + <output_align>true</output_align> + <output_file>mendely.bib</output_file> + <output_encoding>utf-8</output_encoding> + <fixinits>1</fixinits> + <tool>1</tool> + <sourcemap> + <maps datatype="bibtex" level="user"> + <map map_overwrite="1"> + <map_step map_field_set="SHORTTITLE" map_field_null="1"/> + <map_step map_field_set="maintitle" map_field_null="1"/> + <map_step map_field_set="abstract" map_field_null="1"/> + <map_step map_field_set="file" map_field_null="1"/> + </map> + <map map_overwrite="1"> + <!-- remove month and day if set--> + <map_step map_field_source="date" map_match="(\d{4}).*" map_replace="$1"/> + </map> + <!-- if you find { or } in the xml output add the field names to the list below --> + <map map_overwrite="1" map_foreach="author,editor,translator,title,publisher,series,journaltitle,howpublished,booktitle,note"> + <map_step map_field_source="$MAPLOOP" map_match="[\{\}]" map_replace=""/> + <map_step map_field_source="$MAPLOOP" map_match="\\(href|url)" map_replace=""/> + <map_step map_field_source="$MAPLOOP" map_match="\\&" map_replace="&"/> + </map> + <map map_overwrite="1"> + <map_step map_field_source="doi" map_match="http(s)?://dx.doi.org/" map_replace=""/> + </map> + <map map_overwrite="0"> + <map_step map_field_source="publisher"/> + <map_step map_field_set="booktitle" map_origfieldval="1"/> + </map> + <map map_overwrite="0"> + <map_step map_field_source="journaltitle"/> + <map_step map_field_set="booktitle" map_origfieldval="1"/> + </map> + <map map_overwrite="0"> + <map_step map_field_source="institution"/> + <map_step map_field_set="booktitle" map_origfieldval="1"/> + <map_step map_field_source="type"/> + <map_step map_field_set="booktitle" map_append="1" map_origfieldval="1" /> + + </map> + </maps> + </sourcemap> + <sortingtemplate name="tool"> + <sort order="1" sort_direction="descending"> + <sortitem order="1" >year</sortitem> + </sort> + </sortingtemplate> +</config> diff --git a/support/compile.sh b/support/compile.sh index 775433d1a8d0eaf1ef61243868621a4d7e232473..5605147d17ac20d9ff226038278064a1f67cdb18 100755 --- a/support/compile.sh +++ b/support/compile.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash biber --tool --configfile=src/biber/reformat.xml gipp.bib --validate-datamodel +biber --tool --configfile=src/biber/mendeley.xml gipp.bib diff -w gipp.bib gipp_bibertool.bib || support/commitUp.sh cd src/tex latexmk