From 11f7da06ed8e3f430d692ef94f5367677434a648 Mon Sep 17 00:00:00 2001 From: orbiter Date: Tue, 3 Nov 2009 21:18:19 +0000 Subject: [PATCH] - fixes to csv parser - automatic OAI-PMH import by just clicking on one link from the provided resource list git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6449 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/IndexImportOAIPMHList_p.java | 2 +- htroot/IndexImportOAIPMH_p.html | 4 +-- htroot/IndexImportOAIPMH_p.java | 7 +++-- .../document/importer/OAIPMHImporter.java | 4 ++- .../net/yacy/document/parser/csvParser.java | 26 ++++++++++++++++++- 5 files changed, 36 insertions(+), 7 deletions(-) diff --git a/htroot/IndexImportOAIPMHList_p.java b/htroot/IndexImportOAIPMHList_p.java index 4f39cda82..7ff7592d6 100644 --- a/htroot/IndexImportOAIPMHList_p.java +++ b/htroot/IndexImportOAIPMHList_p.java @@ -49,7 +49,7 @@ public class IndexImportOAIPMHList_p { int cnt = 0; for (String root: oaiRoots) { prop.put("source_table_" + cnt + "_dark", (dark) ? "1" : "0"); - prop.put("source_table_" + cnt + "_source", root); + prop.put("source_table_" + cnt + "_source", "" + root+ ""); dark = !dark; cnt++; } diff --git a/htroot/IndexImportOAIPMH_p.html b/htroot/IndexImportOAIPMH_p.html index 00049abe4..325bedf01 100644 --- a/htroot/IndexImportOAIPMH_p.html +++ b/htroot/IndexImportOAIPMH_p.html @@ -35,14 +35,14 @@ Import all records that follow according to resumption elements into index
- or  + #(optiongetlist)#::or #(/optiongetlist)# #(status)#::

Import started!

::

Bad input data: #[message]#

#(/status)#