From 03a7a29db3c4bfab526ee81366872950381e5f73 Mon Sep 17 00:00:00 2001 From: reger Date: Sun, 14 Sep 2014 01:38:27 +0200 Subject: [PATCH] limit OAI import urn resolver try for Deutsche National Library The resolver service of National Library uses name space nbn, limit use of nbn-resolving.de accordingly to urn:nbn: - add resolver for rfc's --- source/net/yacy/document/content/DCEntry.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/net/yacy/document/content/DCEntry.java b/source/net/yacy/document/content/DCEntry.java index 731b9181a..ae403e533 100644 --- a/source/net/yacy/document/content/DCEntry.java +++ b/source/net/yacy/document/content/DCEntry.java @@ -191,7 +191,10 @@ public class DCEntry extends MultiMapSolrParams { //urn identifier koennen ueber den resolver der d-nb aufgeloest werden: //http://nbn-resolving.de/urn:nbn:de:bsz:960-opus-1860 - if (uu.startsWith("urn:")) return "http://nbn-resolving.de/" + uu; + if (uu.startsWith("urn:nbn:")) return "http://nbn-resolving.de/" + uu; + + // resolver service http://wm-urn.org/ (for nbn, isbn,issn,rfc) example http://wm-urn.org/urn:ietf:rfc:2141 + if (uu.startsWith("urn:ietf:rfc")) return "http://wm-urn.org/" + uu; } return urls[0]; }