Commit a15b0eaa authored by User expired's avatar User expired
Browse files

Series in key and filename for Incollection records

For Incollection, Journal is not defined so use Series.
parent b37b6df3
Pipeline #26512 passed with stage
in 1 minute and 10 seconds
--------------
missings tests
--------------
bib-keyinsert:
* add comma after citation key if missing
* citation key creation for Incollection
bib-name:
* bibtex filename creation for Incollection
......@@ -163,13 +163,18 @@ do
fauthor=$(getvalue Author "$bibfile" | bib-conva \
| sed 's/ and .*//;s/ *,.*//;s/.*[ ~]//')
if [ $SKIPJ -eq 1 ]
# Obtain Journal (default) or Series (Incollection).
if grep -q @Incollection "$bibfile"
then
# Quick key creation without journal abbreviation.
journal=$(getvalue Journal "$bibfile")
journal=$(getvalue Series "$bibfile")
else
journal=$(getvalue Journal "$bibfile")
fi
if [ $SKIPJ -eq 0 ]
then
# Stable key creation with journal abbreviation.
journal=$(bib-jabbr -j $(getvalue Journal "$bibfile"))
journal=$(bib-jabbr -j "$journal")
fi
journal=$(bib-conva <<< "$journal" \
| sed -r \
......
......@@ -87,13 +87,18 @@ do
fauthor=$(getvalue Author "$bibfile" | bib-conva \
| sed 's/ and .*//;s/ *,.*//;s/.*[ ~]//')
if [ $SKIPJ -eq 1 ]
# Obtain Journal (default) or Series (Incollection).
if grep -q @Incollection "$bibfile"
then
# Quick key creation without journal abbreviation.
journal=$(getvalue Journal "$bibfile")
journal=$(getvalue Series "$bibfile")
else
journal=$(getvalue Journal "$bibfile")
fi
if [ $SKIPJ -eq 0 ]
then
# Stable key creation with journal abbreviation.
journal=$(bib-jabbr -j $(getvalue Journal "$bibfile"))
journal=$(bib-jabbr -j "$journal")
fi
journal=$(bib-conva <<< "$journal" \
| sed -r \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment