Skip to content

Commit

Permalink
moving ISBNs into the build script
Browse files Browse the repository at this point in the history
  • Loading branch information
alexduryee committed Mar 10, 2021
1 parent 0826da0 commit dea0b88
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions build/generate_tag_libraries.bat
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ goto END
:EAC
echo Generating EAC-CPF tag libraries
java -cp vendor\SaxonHE10-2J\saxon-he-10.2.jar net.sf.saxon.Transform -s:%2 -xsl:..\transformations\tagLibrary2html.xsl -o:%1.html SAA="yes"
java -cp vendor\SaxonHE10-2J\saxon-he-10.2.jar net.sf.saxon.Transform -s:%2 -xsl:..\transformations\tagLibrary2pdf.xsl -o:%1.xml SAA="yes"
java -cp vendor\SaxonHE10-2J\saxon-he-10.2.jar net.sf.saxon.Transform -s:%2 -xsl:..\transformations\tagLibrary2pdf.xsl -o:%1.xml SAA="yes" ISBN="PLACEHOLDER ISBN VALUE"
goto MAIN

:EAD
echo Generating EAD tag libraries
java -cp vendor\SaxonHE10-2J\saxon-he-10.2.jar net.sf.saxon.Transform -s:%2 -xsl:..\transformations\tagLibrary2html.xsl -o:%1.html SAA="yes"
java -cp vendor\SaxonHE10-2J\saxon-he-10.2.jar net.sf.saxon.Transform -s:%2 -xsl:..\transformations\tagLibrary2pdf.xsl -o:%1.xml SAA="yes"
java -cp vendor\SaxonHE10-2J\saxon-he-10.2.jar net.sf.saxon.Transform -s:%2 -xsl:..\transformations\tagLibrary2pdf.xsl -o:%1.xml SAA="yes" ISBN="PLACEHOLDER ISBN VALUE"
goto MAIN

:PREMIS
echo Generating PREMIS tag libraries
java -cp vendor\SaxonHE10-2J\saxon-he-10.2.jar net.sf.saxon.Transform -s:%2 -xsl:..\transformations\tagLibrary2html.xsl -o:%1.html SAA="no"
java -cp vendor\SaxonHE10-2J\saxon-he-10.2.jar net.sf.saxon.Transform -s:%2 -xsl:..\transformations\tagLibrary2pdf.xsl -o:%1.xml SAA="no"
java -cp vendor\SaxonHE10-2J\saxon-he-10.2.jar net.sf.saxon.Transform -s:%2 -xsl:..\transformations\tagLibrary2pdf.xsl -o:%1.xml SAA="no" ISBN="PLACEHOLDER ISBN VALUE"
goto MAIN

:: error out if Java is not installed
Expand Down
6 changes: 3 additions & 3 deletions build/generate_tag_libraries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ outfile=$(basename "$2" .xml)
case $1 in
"eac")
echo "generating EAC-CPF tag libraries"
java -cp $saxon net.sf.saxon.Transform -s:$2 -xsl:../transformations/tagLibrary2pdf.xsl -o:"$outfile"-tmp.xml SAA="yes"
java -cp $saxon net.sf.saxon.Transform -s:$2 -xsl:../transformations/tagLibrary2pdf.xsl -o:"$outfile"-tmp.xml SAA="yes" ISBN="PLACEHOLDER ISBN VALUE"
java -cp $saxon net.sf.saxon.Transform -s:$2 -xsl:../transformations/tagLibrary2html.xsl -o:"$outfile".html SAA="yes"
;;
"ead")
echo "generating EAD3 tag libraries"
java -cp $saxon net.sf.saxon.Transform -s:$2 -xsl:../transformations/tagLibrary2pdf.xsl -o:"$outfile"-tmp.xml SAA="yes"
java -cp $saxon net.sf.saxon.Transform -s:$2 -xsl:../transformations/tagLibrary2pdf.xsl -o:"$outfile"-tmp.xml SAA="yes" ISBN="PLACEHOLDER ISBN VALUE"
java -cp $saxon net.sf.saxon.Transform -s:$2 -xsl:../transformations/tagLibrary2html.xsl -o:"$outfile".html SAA="yes"
;;
"premis")
echo "generating PREMIS tag libraries"
java -cp $saxon net.sf.saxon.Transform -s:$2 -xsl:../transformations/tagLibrary2pdf.xsl -o:"$outfile"-tmp.xml SAA="no"
java -cp $saxon net.sf.saxon.Transform -s:$2 -xsl:../transformations/tagLibrary2pdf.xsl -o:"$outfile"-tmp.xml SAA="no" ISBN="PLACEHOLDER ISBN VALUE"
java -cp $saxon net.sf.saxon.Transform -s:$2 -xsl:../transformations/tagLibrary2html.xsl -o:"$outfile".html SAA="no"
;;
*)
Expand Down
1 change: 0 additions & 1 deletion tei/EAD3-TL-eng.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
<addrLine>www.archivists.org</addrLine>
</address>
<date when="2015"/>
<idno>ISBN 1-931666-89-X</idno>
<availability>
<licence>This work is licensed under a Creative Commons Attribution 4.0 International License (CC BY 4.0). See <ref target="http://creativecommons.org/licenses/by/4.0/"
>http://creativecommons.org/licenses/by/4.0/</ref>. Some rights reserved. No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means,
Expand Down
3 changes: 2 additions & 1 deletion transformations/tagLibrary2pdf.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

<!-- variables passed from the build script to the XSLT -->
<xsl:param name="SAA" as="xs:string" required="yes"/>
<xsl:param name="ISBN" as="xs:string" required="yes"/>

<xsl:output indent="yes"/>
<!-- Used for inserting SAA logo or not Values: yes | no -->
Expand Down Expand Up @@ -418,7 +419,7 @@
</fo:table>
</fo:block>
<fo:block padding-before=".5cm">
<xsl:value-of select="$TheWholeDocument/tei:publicationStmt/tei:idno"/>
<xsl:value-of select="$ISBN"/>
</fo:block>
<fo:block page-break-after="always"/>
</xsl:template>
Expand Down

0 comments on commit dea0b88

Please sign in to comment.