X-Git-Url: https://git.ladys.computer/Shushe/blobdiff_plain/fc985b7f5cf58d16b6d5d81bde7cebbd1747dd27..5a363a0a9e519b88fed12252328acd4bfa7689e5:/lib/catalog2parser.xslt?ds=inline

diff --git a/lib/catalog2parser.xslt b/lib/catalog2parser.xslt
index f3afd7f..a2eab12 100644
--- a/lib/catalog2parser.xslt
+++ b/lib/catalog2parser.xslt
@@ -4,9 +4,9 @@ SPDX-FileCopyrightText: 2023, 2024 Lady <https://www.ladys.computer/about/#lady>
 SPDX-License-Identifier: MPL-2.0
 -->
 <!--
-⁌ ⛩️📰 书社 ∷ lib/catalog2parser.xslt
+⁌ ⛩📰 书社 ∷ lib/catalog2parser.xslt
 
-© 2023–2024 Lady [@ Lady’s Computer].
+© 2023–2024 Lady [@ Ladys Computer].
 
 This Source Code Form is subject to the terms of the Mozilla Public License, v 2.0.
 If a copy of the M·P·L was not distributed with this file, You can obtain one at <https://mozilla.org/MPL/2.0/>.
@@ -122,30 +122,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
 				</xslt:for-each>
 			</xslt:template>
 			<xslt:template match="/">
-				<xslt:variable name="parsedroot">
-					<xslt:apply-templates select="node()" mode="书社:parse"/>
-				</xslt:variable>
-				<xslt:for-each select="exsl:node-set($parsedroot)/node()">
-					<xslt:choose>
-						<xslt:when test="self::*">
-							<xslt:copy>
-								<xslt:attribute name="书社:cksum">
-									<xslt:value-of select="document('metadata')//*[@rdf:about=$IDENTIFIER]/nfo:hasHash[@nfo:hashAlgorithm='CRC32']/@nfo:hashValue"/>
-								</xslt:attribute>
-								<xslt:attribute name="书社:identifier">
-									<xslt:value-of select="$IDENTIFIER"/>
-								</xslt:attribute>
-								<xslt:attribute name="书社:mtime">
-									<xslt:value-of select="document('metadata')//*[@rdf:about=$IDENTIFIER]/nfo:fileLastModified"/>
-								</xslt:attribute>
-								<xslt:copy-of select="@*[namespace-uri()!='urn:fdc:ladys.computer:20231231:Shu1She4' or not(contains(' cksum identifier mtime ', concat(' ', local-name(), ' ')))]|node()"/>
-							</xslt:copy>
-						</xslt:when>
-						<xslt:otherwise>
-							<xslt:copy-of select="."/>
-						</xslt:otherwise>
-					</xslt:choose>
-				</xslt:for-each>
+				<xslt:apply-templates select="node()" mode="书社:parse"/>
 			</xslt:template>
 			<xslt:template match="@*|node()" priority="-1">
 				<xslt:copy>