Skip to content

Commit

Permalink
generate-html: Add 'mscproject' and 'bscproject'
Browse files Browse the repository at this point in the history
This commit adds virtual types 'bscproject' and 'mscproject' to the
generate-html command. This gets rid of several warnings, and is a first
step towards #28.
  • Loading branch information
tkw1536 committed Jul 22, 2022
1 parent 7b257d2 commit 15a3fe2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
10 changes: 10 additions & 0 deletions src/html/bibliography.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@
select="//ltx:bibentry[contains(ltx:bib-data[@role='pubs'],$pubs) and
(@type='inbook' or @type='incollection')]"/>
</xsl:when>
<xsl:when test="$type='mscproject'">
<xsl:apply-templates
select="//ltx:bibentry[contains(ltx:bib-data[@role='pubs'],$pubs) and
contains(ltx:bib-data[@role='pubs'],'mscproject')]"/>
</xsl:when>
<xsl:when test="$type='bscproject'">
<xsl:apply-templates
select="//ltx:bibentry[contains(ltx:bib-data[@role='pubs'],$pubs) and
contains(ltx:bib-data[@role='pubs'],'bscproject')]"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates
select="//ltx:bibentry[contains(ltx:bib-data[@role='pubs'],$pubs) and
Expand Down
5 changes: 3 additions & 2 deletions src/html/generate-html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ SRC="$1"
DIST="$2"
KWARC="$3"

PARALLELISM=11

echo "Generating html from $SRC into $DIST"

Expand All @@ -34,7 +33,9 @@ function convert_types() {
}

## now we extract all the HTML from kcr.bib
TYPES='article incollection conference workshop thesis report unpublished misc wproceedings cproceedings cbook'
TYPES='article incollection conference workshop thesis report unpublished misc wproceedings cproceedings cbook mscproject bscproject'
PARALLELISM=($TYPES)
PARALLELISM=${#PARALLELISM[@]}
(
for i in $KWARC; do
for j in $TYPES; do
Expand Down

0 comments on commit 15a3fe2

Please sign in to comment.