diff --git a/gatsby/lobid/src/components/helpers.js b/gatsby/lobid/src/components/helpers.js
index 08343d0c..fc3685c8 100644
--- a/gatsby/lobid/src/components/helpers.js
+++ b/gatsby/lobid/src/components/helpers.js
@@ -1,3 +1,7 @@
export function simpleId(url) {
return url.slice(url.lastIndexOf("/") + 1);
}
+
+export function stripLobidOrg(url) {
+ return url.replace(/https?:\/\/lobid.org\//, '/');
+}
diff --git a/gatsby/lobid/src/components/product.html.js b/gatsby/lobid/src/components/product.html.js
index 3df1f419..90c18f4a 100644
--- a/gatsby/lobid/src/components/product.html.js
+++ b/gatsby/lobid/src/components/product.html.js
@@ -1,6 +1,6 @@
import React from "react";
-import md5 from 'md5';
-import { simpleId } from './helpers.js'
+import md5 from "md5";
+import { simpleId } from "./helpers.js";
import Header from "./header.html";
import Footer from "./footer.html";
diff --git a/gatsby/lobid/src/components/project.html.js b/gatsby/lobid/src/components/project.html.js
index 3f45be6f..5037db85 100644
--- a/gatsby/lobid/src/components/project.html.js
+++ b/gatsby/lobid/src/components/project.html.js
@@ -1,6 +1,6 @@
import React from "react";
-import md5 from 'md5';
-import { simpleId } from './helpers.js'
+import md5 from "md5";
+import { simpleId } from "./helpers.js";
import Header from "./header.html";
import Footer from "./footer.html";
diff --git a/gatsby/lobid/src/components/publications.html.js b/gatsby/lobid/src/components/publications.html.js
index 2d4ee598..3d20ffdd 100644
--- a/gatsby/lobid/src/components/publications.html.js
+++ b/gatsby/lobid/src/components/publications.html.js
@@ -1,5 +1,5 @@
import React from "react"
-
+import { simpleId, stripLobidOrg } from "./helpers.js";
import jsonLdPng from "./images/json-ld.png";
export default class Publications extends React.Component {
@@ -19,7 +19,7 @@ export default class Publications extends React.Component {
{publication.datePublished} |
{publication.name.de || publication.name.en || publication.id} |
{publication.about && publication.about.map(a =>
- {a.id.slice(a.id.lastIndexOf("/")+1, a.id.lastIndexOf("."))}
+ {simpleId(a.id)}
)} |
{publication.type} |
|
diff --git a/gatsby/lobid/src/templates/product.js b/gatsby/lobid/src/templates/product.js
index ccf0c25b..4aaf7a6d 100644
--- a/gatsby/lobid/src/templates/product.js
+++ b/gatsby/lobid/src/templates/product.js
@@ -1,6 +1,7 @@
import React from "react";
import { graphql } from "gatsby";
import { Product } from "../components/product.html";
+import { simpleId } from '../components/helpers.js'
export default function ProductPage({ data, location, pageContext }) {
const product = data.allFile.edges.slice(-1).pop().node.childProductJson
@@ -8,7 +9,7 @@ export default function ProductPage({ data, location, pageContext }) {
product={product}
pubs={data.allPublicationJson.edges
.map(edge => edge.node)
- .filter(p => p.about && p.about.find(a => a.id.includes(pageContext.id)))
+ .filter(p => p.about && p.about.find(a => simpleId(a.id) === pageContext.id))
.sort((a, b) => b.datePublished.localeCompare(a.datePublished))
}
contactName="Kontakt"
diff --git a/gatsby/lobid/src/templates/project.js b/gatsby/lobid/src/templates/project.js
index 7e90da47..d3212182 100644
--- a/gatsby/lobid/src/templates/project.js
+++ b/gatsby/lobid/src/templates/project.js
@@ -1,6 +1,7 @@
import React from "react";
import { graphql } from "gatsby";
import { Project } from "../components/project.html";
+import { simpleId } from '../components/helpers.js'
export default function ProjectPage({ data, location, pageContext }) {
const project = data.allFile.edges.slice(-1).pop().node.childProjectJson
@@ -8,7 +9,7 @@ export default function ProjectPage({ data, location, pageContext }) {
project={project}
pubs={data.allPublicationJson.edges
.map(edge => edge.node)
- .filter(p => p.about && p.about.find(a => a.id.includes(pageContext.id)))
+ .filter(p => p.about && p.about.find(a => simpleId(a.id) === pageContext.id))
.sort((a, b) => b.datePublished.localeCompare(a.datePublished))
}
contactName="Kontakt"
diff --git a/gatsby/lobid/static/publication/2020-02-oerdindex.json b/gatsby/lobid/static/publication/2020-02-oerdindex.json
index 51785295..bca43a6b 100644
--- a/gatsby/lobid/static/publication/2020-02-oerdindex.json
+++ b/gatsby/lobid/static/publication/2020-02-oerdindex.json
@@ -16,7 +16,7 @@
},
"about": [
{
- "id": "https://oersi.de"
+ "id": "https://lobid.org/project/oersi"
}
],
"keywords": [
diff --git a/gatsby/lobid/static/publication/2020-08-oersi-skohub.json b/gatsby/lobid/static/publication/2020-08-oersi-skohub.json
index f1d860c7..41fcb8a9 100644
--- a/gatsby/lobid/static/publication/2020-08-oersi-skohub.json
+++ b/gatsby/lobid/static/publication/2020-08-oersi-skohub.json
@@ -23,10 +23,10 @@
],
"about": [
{
- "id": "https://oersi.de"
+ "id": "https://lobid.org/project/oersi"
},
{
- "id": "https://skohub.io"
+ "id": "https://lobid.org/product/skohub"
}
],
"id": "http://slides.lobid.org/2020-08-oersi-skohub/",
diff --git a/gatsby/lobid/static/publication/2020-zbiw.json b/gatsby/lobid/static/publication/2020-zbiw.json
index a8294f21..cfceadb8 100644
--- a/gatsby/lobid/static/publication/2020-zbiw.json
+++ b/gatsby/lobid/static/publication/2020-zbiw.json
@@ -25,7 +25,7 @@
"id": "https://slides.lobid.org/2020-zbiw/",
"about": [
{
- "id": "https://lobid.org"
+ "id": "https://lobid.org/product/lobid"
}
],
"datePublished": "2020-10-08",
diff --git a/gatsby/lobid/static/publication/bibcast16.json b/gatsby/lobid/static/publication/bibcast16.json
index 0f38fb7a..12736d05 100644
--- a/gatsby/lobid/static/publication/bibcast16.json
+++ b/gatsby/lobid/static/publication/bibcast16.json
@@ -23,7 +23,7 @@
],
"about": [
{
- "id": "https://lobid.org"
+ "id": "https://lobid.org/product/lobid"
}
],
"id": "https://slides.lobid.org/bibcast16/",
diff --git a/gatsby/lobid/static/publication/bibframe-dataset.json b/gatsby/lobid/static/publication/bibframe-dataset.json
index 90599950..9f8c0ccb 100644
--- a/gatsby/lobid/static/publication/bibframe-dataset.json
+++ b/gatsby/lobid/static/publication/bibframe-dataset.json
@@ -13,7 +13,7 @@
],
"about": [
{
- "id": "https://skohub.io"
+ "id": "https://lobid.org/product/skohub"
}
],
"id": "https://blog.lobid.org/2019/01/31/bibframe-dataset.html",
diff --git a/gatsby/lobid/static/publication/bibtag18.json b/gatsby/lobid/static/publication/bibtag18.json
index d29fd98c..0fb214bb 100644
--- a/gatsby/lobid/static/publication/bibtag18.json
+++ b/gatsby/lobid/static/publication/bibtag18.json
@@ -21,7 +21,7 @@
],
"about": [
{
- "id": "https://lobid.org"
+ "id": "https://lobid.org/product/lobid"
}
],
"id": "https://slides.lobid.org/bibtag18/",
diff --git a/gatsby/lobid/static/publication/ebook-packages.json b/gatsby/lobid/static/publication/ebook-packages.json
index b413c19e..9cb44b92 100644
--- a/gatsby/lobid/static/publication/ebook-packages.json
+++ b/gatsby/lobid/static/publication/ebook-packages.json
@@ -13,7 +13,7 @@
],
"about": [
{
- "id": "https://lobid.org"
+ "id": "https://lobid.org/product/lobid"
}
],
"id": "https://blog.lobid.org/2020/04/15/ebook-packages.html",
diff --git a/gatsby/lobid/static/publication/gemeinfreie-titel-finden.json b/gatsby/lobid/static/publication/gemeinfreie-titel-finden.json
index 55feff71..b49c5e15 100644
--- a/gatsby/lobid/static/publication/gemeinfreie-titel-finden.json
+++ b/gatsby/lobid/static/publication/gemeinfreie-titel-finden.json
@@ -13,7 +13,7 @@
],
"about": [
{
- "id": "https://lobid.org"
+ "id": "https://lobid.org/product/lobid"
}
],
"id": "https://blog.lobid.org/2020/04/27/gemeinfreie-titel-finden.html",
diff --git a/gatsby/lobid/static/publication/gndcon18.json b/gatsby/lobid/static/publication/gndcon18.json
index 560211ea..59e07030 100644
--- a/gatsby/lobid/static/publication/gndcon18.json
+++ b/gatsby/lobid/static/publication/gndcon18.json
@@ -26,7 +26,7 @@
],
"about": [
{
- "id": "https://lobid.org"
+ "id": "https://lobid.org/product/lobid"
}
],
"id": "https://slides.lobid.org/gndcon18",
diff --git a/gatsby/lobid/static/publication/htw-chur-2019.json b/gatsby/lobid/static/publication/htw-chur-2019.json
index 4dea3726..b36a6efb 100644
--- a/gatsby/lobid/static/publication/htw-chur-2019.json
+++ b/gatsby/lobid/static/publication/htw-chur-2019.json
@@ -27,7 +27,7 @@
],
"about": [
{
- "id": "https://lobid.org"
+ "id": "https://lobid.org/product/lobid"
}
],
"id": "https://slides.lobid.org/htw-chur-2019/",
diff --git a/gatsby/lobid/static/publication/infoprax-2018.json b/gatsby/lobid/static/publication/infoprax-2018.json
index 238a509b..2c9fe77d 100644
--- a/gatsby/lobid/static/publication/infoprax-2018.json
+++ b/gatsby/lobid/static/publication/infoprax-2018.json
@@ -36,7 +36,7 @@
],
"about": [
{
- "id": "https://lobid.org"
+ "id": "https://lobid.org/product/lobid"
}
],
"id": "https://doi.org/10.11588/ip.2018.1.52445",
diff --git a/gatsby/lobid/static/publication/infoprax-2019.json b/gatsby/lobid/static/publication/infoprax-2019.json
index d0daf32a..23d5d148 100644
--- a/gatsby/lobid/static/publication/infoprax-2019.json
+++ b/gatsby/lobid/static/publication/infoprax-2019.json
@@ -36,7 +36,7 @@
],
"about": [
{
- "id": "https://lobid.org"
+ "id": "https://lobid.org/product/lobid"
}
],
"id": "https://doi.org/10.11588/ip.2019.1.52673",
diff --git a/gatsby/lobid/static/publication/libreas2016.json b/gatsby/lobid/static/publication/libreas2016.json
index 315df7d5..d59d53a3 100644
--- a/gatsby/lobid/static/publication/libreas2016.json
+++ b/gatsby/lobid/static/publication/libreas2016.json
@@ -21,7 +21,7 @@
},
"about": [
{
- "id": "https://nwbib.de"
+ "id": "https://lobid.org/product/nwbib"
}
],
"id": "https://libreas.eu/ausgabe29/04pohl/",
diff --git a/gatsby/lobid/static/publication/lobid-at-htw.json b/gatsby/lobid/static/publication/lobid-at-htw.json
index f819c871..132d9486 100644
--- a/gatsby/lobid/static/publication/lobid-at-htw.json
+++ b/gatsby/lobid/static/publication/lobid-at-htw.json
@@ -18,7 +18,7 @@
],
"about": [
{
- "id": "https://nwbib.de"
+ "id": "https://lobid.org/product/nwbib"
}
],
"id": "https://blog.lobid.org/2019/04/04/lobid-at-htw.html",
diff --git a/gatsby/lobid/static/publication/lobid-entwicklungsprozess.json b/gatsby/lobid/static/publication/lobid-entwicklungsprozess.json
index 3427c18d..ccac1dfa 100644
--- a/gatsby/lobid/static/publication/lobid-entwicklungsprozess.json
+++ b/gatsby/lobid/static/publication/lobid-entwicklungsprozess.json
@@ -17,7 +17,7 @@
],
"about": [
{
- "id": "https://lobid.org"
+ "id": "https://lobid.org/product/lobid"
}
],
"id": "https://slides.lobid.org/lobid-entwicklungsprozess/",
diff --git a/gatsby/lobid/static/publication/lobid-gnd-https-change.json b/gatsby/lobid/static/publication/lobid-gnd-https-change.json
index ebe097bb..103c29af 100644
--- a/gatsby/lobid/static/publication/lobid-gnd-https-change.json
+++ b/gatsby/lobid/static/publication/lobid-gnd-https-change.json
@@ -13,7 +13,7 @@
],
"about": [
{
- "id": "https://lobid.org"
+ "id": "https://lobid.org/product/lobid"
}
],
"id": "https://blog.lobid.org/2019/11/29/lobid-gnd-https-change.html",
diff --git a/gatsby/lobid/static/publication/metafacture-2020.json b/gatsby/lobid/static/publication/metafacture-2020.json
index 1afa8ce2..3511f879 100644
--- a/gatsby/lobid/static/publication/metafacture-2020.json
+++ b/gatsby/lobid/static/publication/metafacture-2020.json
@@ -2,7 +2,7 @@
"@context": "https://schema.org",
"type": "PresentationDigitalDocument",
"name": {
- "en": "MetIntroduction to Metafactureafacture"
+ "en": "Introduction to Metafacture"
},
"creator": [
{
@@ -17,7 +17,7 @@
],
"about": [
{
- "id": "https://metafacture.org"
+ "id": "https://lobid.org/product/metafacture"
}
],
"id": "https://slides.lobid.org/metafacture-2020/",
diff --git a/gatsby/lobid/static/publication/nrw-quiz-idee.json b/gatsby/lobid/static/publication/nrw-quiz-idee.json
index 0e4e8446..889c8901 100644
--- a/gatsby/lobid/static/publication/nrw-quiz-idee.json
+++ b/gatsby/lobid/static/publication/nrw-quiz-idee.json
@@ -13,7 +13,7 @@
],
"about": [
{
- "id": "https://nwbib.de"
+ "id": "https://lobid.org/product/nwbib"
}
],
"id": "https://blog.lobid.org/2019/10/22/nrw-quiz-idee.html",
diff --git a/gatsby/lobid/static/publication/nwbib-at-cdv.json b/gatsby/lobid/static/publication/nwbib-at-cdv.json
index 16b4f7aa..1a74873d 100644
--- a/gatsby/lobid/static/publication/nwbib-at-cdv.json
+++ b/gatsby/lobid/static/publication/nwbib-at-cdv.json
@@ -23,7 +23,7 @@
],
"about": [
{
- "id": "https://nwbib.de"
+ "id": "https://lobid.org/product/nwbib"
}
],
"id": "https://blog.lobid.org/2019/10/08/nwbib-at-cdv.html",
diff --git a/gatsby/lobid/static/publication/nwbib-wikidatacon.json b/gatsby/lobid/static/publication/nwbib-wikidatacon.json
index ba5d2cb2..5d0bb8c8 100644
--- a/gatsby/lobid/static/publication/nwbib-wikidatacon.json
+++ b/gatsby/lobid/static/publication/nwbib-wikidatacon.json
@@ -21,7 +21,7 @@
],
"about": [
{
- "id": "https://nwbib.de"
+ "id": "https://lobid.org/product/nwbib"
}
],
"id": "http://slides.lobid.org/nwbib-wikidatacon/",
diff --git a/gatsby/lobid/static/publication/open-api-lookup.json b/gatsby/lobid/static/publication/open-api-lookup.json
index 208316c9..af1c6336 100644
--- a/gatsby/lobid/static/publication/open-api-lookup.json
+++ b/gatsby/lobid/static/publication/open-api-lookup.json
@@ -13,7 +13,7 @@
],
"about": [
{
- "id": "https://lobid.org"
+ "id": "https://lobid.org/product/lobid"
}
],
"id": "https://blog.lobid.org/2019/07/19/open-api-lookup.html",
diff --git a/gatsby/lobid/static/publication/openrefine-examples.json b/gatsby/lobid/static/publication/openrefine-examples.json
index a570bfb3..6c2b0eb8 100644
--- a/gatsby/lobid/static/publication/openrefine-examples.json
+++ b/gatsby/lobid/static/publication/openrefine-examples.json
@@ -13,7 +13,7 @@
],
"about": [
{
- "id": "https://lobid.org"
+ "id": "https://lobid.org/product/lobid"
}
],
"id": "https://blog.lobid.org/2019/09/30/openrefine-examples.html",
diff --git a/gatsby/lobid/static/publication/openrefine.json b/gatsby/lobid/static/publication/openrefine.json
index e5d73774..3b8c5491 100644
--- a/gatsby/lobid/static/publication/openrefine.json
+++ b/gatsby/lobid/static/publication/openrefine.json
@@ -13,7 +13,7 @@
],
"about": [
{
- "id": "https://lobid.org"
+ "id": "https://lobid.org/product/lobid"
}
],
"id": "https://blog.lobid.org/2019/08/19/openrefine.html",
diff --git a/gatsby/lobid/static/publication/presenting-skohub-vocabs.json b/gatsby/lobid/static/publication/presenting-skohub-vocabs.json
index 828882a3..4751c223 100644
--- a/gatsby/lobid/static/publication/presenting-skohub-vocabs.json
+++ b/gatsby/lobid/static/publication/presenting-skohub-vocabs.json
@@ -18,7 +18,7 @@
],
"about": [
{
- "id": "https://skohub.io"
+ "id": "https://lobid.org/product/skohub"
}
],
"id": "https://blog.lobid.org/2019/09/27/presenting-skohub-vocabs.html",
diff --git a/gatsby/lobid/static/publication/skohub-apconf.json b/gatsby/lobid/static/publication/skohub-apconf.json
index c696e5d4..ec49e25b 100644
--- a/gatsby/lobid/static/publication/skohub-apconf.json
+++ b/gatsby/lobid/static/publication/skohub-apconf.json
@@ -18,7 +18,7 @@
],
"about": [
{
- "id": "https://skohub.io"
+ "id": "https://lobid.org/product/skohub"
}
],
"id": "https://blog.lobid.org/2020/10/09/skohub-apconf.html",
diff --git a/gatsby/lobid/static/publication/skohub-editor.json b/gatsby/lobid/static/publication/skohub-editor.json
index 6215e609..fd84f182 100644
--- a/gatsby/lobid/static/publication/skohub-editor.json
+++ b/gatsby/lobid/static/publication/skohub-editor.json
@@ -18,7 +18,7 @@
],
"about": [
{
- "id": "https://skohub.io"
+ "id": "https://lobid.org/product/skohub"
}
],
"id": "https://blog.lobid.org/2020/03/31/skohub-editor.html",
diff --git a/gatsby/lobid/static/publication/skohub-ffm.json b/gatsby/lobid/static/publication/skohub-ffm.json
index 94ae00f6..64e9bac3 100644
--- a/gatsby/lobid/static/publication/skohub-ffm.json
+++ b/gatsby/lobid/static/publication/skohub-ffm.json
@@ -23,7 +23,7 @@
],
"about": [
{
- "id": "https://skohub.io"
+ "id": "https://lobid.org/product/skohub"
}
],
"id": "https://slides.lobid.org/skohub-ffm/",
diff --git a/gatsby/lobid/static/publication/skohub-pubsub.json b/gatsby/lobid/static/publication/skohub-pubsub.json
index 958f1e05..7bda9375 100644
--- a/gatsby/lobid/static/publication/skohub-pubsub.json
+++ b/gatsby/lobid/static/publication/skohub-pubsub.json
@@ -18,7 +18,7 @@
],
"about": [
{
- "id": "https://skohub.io"
+ "id": "https://lobid.org/product/skohub"
}
],
"id": "https://blog.lobid.org/2020/06/25/skohub-pubsub.html",
diff --git a/gatsby/lobid/static/publication/skohub-talk-at-swib19.json b/gatsby/lobid/static/publication/skohub-talk-at-swib19.json
index e001dc59..6b1fcf4a 100644
--- a/gatsby/lobid/static/publication/skohub-talk-at-swib19.json
+++ b/gatsby/lobid/static/publication/skohub-talk-at-swib19.json
@@ -13,7 +13,7 @@
],
"about": [
{
- "id": "https://skohub.io"
+ "id": "https://lobid.org/product/skohub"
}
],
"id": "https://blog.lobid.org/2020/01/29/skohub-talk-at-swib19.html",
diff --git a/gatsby/lobid/static/publication/skohub.json b/gatsby/lobid/static/publication/skohub.json
index 45cdd31b..a45a266b 100644
--- a/gatsby/lobid/static/publication/skohub.json
+++ b/gatsby/lobid/static/publication/skohub.json
@@ -18,7 +18,7 @@
],
"about": [
{
- "id": "https://skohub.io"
+ "id": "https://lobid.org/product/skohub"
}
],
"id": "https://blog.lobid.org/2019/05/17/skohub.html",