- linting correction in pagination.ts

- npm updates for core-js and webpack
- xslt transformations for bounding boxes
This commit is contained in:
Arno Kaimbacher 2022-06-02 14:56:38 +02:00
parent 43fb919064
commit f1de1c30e7
4 changed files with 68 additions and 59 deletions

View File

@ -159,7 +159,7 @@
</contributor> </contributor>
</contributors> </contributors>
<dates> <dates>
<date dateType="created">2020-09-11</date> <date dateType="Created">2020-09-11</date>
</dates> </dates>
<resourceType resourceTypeGeneral="Dataset">Dataset</resourceType> <resourceType resourceTypeGeneral="Dataset">Dataset</resourceType>
<alternateIdentifiers> <alternateIdentifiers>

24
package-lock.json generated
View File

@ -5269,9 +5269,9 @@
"dev": true "dev": true
}, },
"node_modules/core-js": { "node_modules/core-js": {
"version": "3.22.7", "version": "3.22.8",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.22.7.tgz", "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.22.8.tgz",
"integrity": "sha512-Jt8SReuDKVNZnZEzyEQT5eK6T2RRCXkfTq7Lo09kpm+fHjgGewSbNjV+Wt4yZMhPDdzz2x1ulI5z/w4nxpBseg==", "integrity": "sha512-UoGQ/cfzGYIuiq6Z7vWL1HfkE9U9IZ4Ub+0XSiJTCzvbZzgPA69oDF2f+lgJ6dFFLEdjW5O6svvoKzXX23xFkA==",
"hasInstallScript": true, "hasInstallScript": true,
"funding": { "funding": {
"type": "opencollective", "type": "opencollective",
@ -12757,9 +12757,9 @@
"dev": true "dev": true
}, },
"node_modules/webpack": { "node_modules/webpack": {
"version": "5.72.1", "version": "5.73.0",
"resolved": "https://registry.npmjs.org/webpack/-/webpack-5.72.1.tgz", "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.73.0.tgz",
"integrity": "sha512-dXG5zXCLspQR4krZVR6QgajnZOjW2K/djHvdcRaDQvsjV9z9vaW6+ja5dZOYbqBBjF6kGXka/2ZyxNdc+8Jung==", "integrity": "sha512-svjudQRPPa0YiOYa2lM/Gacw0r6PvxptHj4FuEKQ2kX05ZLkjbVc5MnPs6its5j7IZljnIqSVo/OsY2X0IpHGA==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@types/eslint-scope": "^3.7.3", "@types/eslint-scope": "^3.7.3",
@ -17475,9 +17475,9 @@
"dev": true "dev": true
}, },
"core-js": { "core-js": {
"version": "3.22.7", "version": "3.22.8",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.22.7.tgz", "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.22.8.tgz",
"integrity": "sha512-Jt8SReuDKVNZnZEzyEQT5eK6T2RRCXkfTq7Lo09kpm+fHjgGewSbNjV+Wt4yZMhPDdzz2x1ulI5z/w4nxpBseg==" "integrity": "sha512-UoGQ/cfzGYIuiq6Z7vWL1HfkE9U9IZ4Ub+0XSiJTCzvbZzgPA69oDF2f+lgJ6dFFLEdjW5O6svvoKzXX23xFkA=="
}, },
"core-js-compat": { "core-js-compat": {
"version": "3.22.7", "version": "3.22.7",
@ -23129,9 +23129,9 @@
"dev": true "dev": true
}, },
"webpack": { "webpack": {
"version": "5.72.1", "version": "5.73.0",
"resolved": "https://registry.npmjs.org/webpack/-/webpack-5.72.1.tgz", "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.73.0.tgz",
"integrity": "sha512-dXG5zXCLspQR4krZVR6QgajnZOjW2K/djHvdcRaDQvsjV9z9vaW6+ja5dZOYbqBBjF6kGXka/2ZyxNdc+8Jung==", "integrity": "sha512-svjudQRPPa0YiOYa2lM/Gacw0r6PvxptHj4FuEKQ2kX05ZLkjbVc5MnPs6its5j7IZljnIqSVo/OsY2X0IpHGA==",
"dev": true, "dev": true,
"requires": { "requires": {
"@types/eslint-scope": "^3.7.3", "@types/eslint-scope": "^3.7.3",

View File

@ -1,6 +1,6 @@
import { Dataset } from "./dataset"; import { Dataset } from "./dataset";
export interface Pagination { export interface Pagination {
total: number; total: number;
per_page?: number; per_page?: number;
current_page: number; current_page: number;

View File

@ -6,50 +6,59 @@
xmlns:math="http://www.w3.org/2005/xpath-functions/math" xmlns:math="http://www.w3.org/2005/xpath-functions/math"
expand-text="yes" expand-text="yes"
version="3.0"> version="3.0">
<!-- exclude-result-prefixes="#all" --> <!-- exclude-result-prefixes="#all" -->
<xsl:output method="text" indent="yes"/> <xsl:output method="text" indent="yes"/>
<xsl:mode on-no-match="shallow-copy"/> <xsl:mode on-no-match="shallow-copy"/>
<!-- <xsl:variable name="datacite-titles" select="//*[name() = 'titles']"/> --> <!-- <xsl:variable name="datacite-titles" select="//*[name() = 'titles']"/> -->
<xsl:variable name="datacite-records" select="//*[name() = 'resource']"/> <xsl:variable name="datacite-records" select="//*[name() = 'resource']"/>
<xsl:template match="/*" mode="#all"> <xsl:template match="/*" mode="#all">
<!-- <xsl:copy> <!-- <xsl:copy>
<xsl:apply-templates select="@*, node()" mode="#current"/> <xsl:apply-templates select="@*, node()" mode="#current"/>
</xsl:copy> --> </xsl:copy> -->
<!-- <xsl:for-each select="$datacite-records/*[name() = 'record']"> --> <!-- <xsl:for-each select="$datacite-records/*[name() = 'record']"> -->
<xsl:for-each select="$datacite-records"> <xsl:for-each select="$datacite-records">
<!-- definbe variables -->
{{ <xsl:variable name="identifier" select="*[name() = 'identifier']"/>
<!-- <xsl:variable name="identifier" select="*[name() = 'identifier']"/> --> <xsl:variable name="datacite-titles" select="*[name() = 'titles']"/>
<!-- identifier: <xsl:value-of select="$identifier"/>, --> <xsl:variable name="main_title">
<xsl:value-of select="*[name() = 'identifier']"/> <xsl:for-each select="$datacite-titles/*[name() = 'title']">
}}, <xsl:choose>
<xsl:when test="not(count(@titleType) &gt; 0)">
<xsl:value-of select="."/>
</xsl:for-each> </xsl:when>
</xsl:choose>
<!-- <xsl:apply-templates select="//*[name() = 'resource']" /> --> </xsl:for-each>
</xsl:variable>
<!-- <xsl:value-of select="$datacite-titles" separator="&#x20;"/> --> <!-- <xsl:value-of select="*[name() = 'identifier']"/> -->
{{
</xsl:template> "doi": "{$identifier}",
"title": "{$main_title}"
<!-- <xsl:template match="metadata/resource/identifier"> }},
</xsl:for-each>
<xsl:value-of select="."/>
<!-- <xsl:apply-templates select="//*[name() = 'resource']" /> -->
</xsl:template> -->
<xsl:template match="//*[name() = 'resource']"> <!-- <xsl:value-of select="$datacite-titles" separator="&#x20;"/> -->
<xsl:apply-templates select="identifier" />
</xsl:template>
<xsl:template match="identifier" >
<xsl:text>test</xsl:text>
<!-- <xsl:value-of select="@identifierType" />
<xsl:value-of select="string(.)"/> -->
</xsl:template> </xsl:template>
<!-- <xsl:template match="metadata/resource/identifier">
<xsl:value-of select="."/>
</xsl:template> -->
<xsl:template match="//*[name() = 'resource']">
<xsl:apply-templates select="identifier" />
</xsl:template>
<xsl:template match="identifier" >
<xsl:text>test</xsl:text>
<!-- <xsl:value-of select="@identifierType" />
<xsl:value-of select="string(.)"/> -->
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>