| commit | 568240f96f058976b16ded39f2b2500d90528764 | [log] [tgz] |
|---|---|---|
| author | Marc Kupietz <kupietz@ids-mannheim.de> | Fri Apr 19 19:20:55 2024 +0200 |
| committer | Marc Kupietz <kupietz@ids-mannheim.de> | Fri Apr 19 19:20:55 2024 +0200 |
| tree | eb5bd9bf39af802f58e63a0dbf668793a9894990 | |
| parent | 2badfb19b78ccaffa8f0231fed6702869d4255e4 [diff] [blame] |
Use last 5 digits of ISBN as text number
diff --git a/xslt/epub2i5.xsl b/xslt/epub2i5.xsl index 70d91a7..c2da43a 100644 --- a/xslt/epub2i5.xsl +++ b/xslt/epub2i5.xsl
@@ -202,7 +202,7 @@ </xsl:variable> - <xsl:variable name="text_sigle" select="substring($isbn, 8, 5)"/> + <xsl:variable name="text_sigle" select="replace($isbn, '.*([0-9]{5})[0-9X]$', '$1')"/> <xsl:variable name="sigle" select="concat($corpus_sigle, '/', $doc_sigle, '.', $text_sigle)"/> <!-- fuer BOT+xy: (?) -->