From: Lady Date: Wed, 3 Jul 2024 01:10:31 +0000 (-0400) Subject: Allow including entire directories X-Git-Tag: 0.12.1~1 X-Git-Url: https://git.ladys.computer/Shushe/commitdiff_plain/155d175a24d3bccf25677cc7e33314dc963da766?ds=inline;hp=12c64c8b59e7e572988aa4fa39964043bdf67bfe Allow including entire directories This commit enables `@xlink:href`s pointing to entire directories (ending in `/`) in `<书社:link>`s as an alias for providing a link to each file in the directory individually. This was always planned, but apparently never actually implemented before now. --- diff --git a/lib/catalog2transform.xslt b/lib/catalog2transform.xslt index 1cc6bad..88644aa 100644 --- a/lib/catalog2transform.xslt +++ b/lib/catalog2transform.xslt @@ -347,38 +347,42 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one - + + - - - - - - - - - - - itemscope - - - &书社;:embed - - + + + + + + + + + + + + + itemscope + - + &书社;:embed - - - - - - - - - - + + + + + + + + + + + + + + + diff --git a/lib/expandmetadata.xslt b/lib/expandmetadata.xslt index dd39355..2501355 100644 --- a/lib/expandmetadata.xslt +++ b/lib/expandmetadata.xslt @@ -57,22 +57,29 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one - - <书社:recursive-dependency> - - - - - <书社:dependency> - - - + + + + + + + <书社:recursive-dependency> + + + + + <书社:dependency> + + + + + - +