diff --git a/.classpath b/.classpath
index 0ac94d62e..3c777feb9 100644
--- a/.classpath
+++ b/.classpath
@@ -45,5 +45,6 @@
+
diff --git a/libx/mysql-connector-java-5.1.7-bin.jar b/libx/mysql-connector-java-5.1.7-bin.jar
new file mode 100644
index 000000000..ebfe06861
Binary files /dev/null and b/libx/mysql-connector-java-5.1.7-bin.jar differ
diff --git a/source/de/anomic/content/DCEntry.java b/source/de/anomic/content/DCEntry.java
index 09df00279..fed53f933 100644
--- a/source/de/anomic/content/DCEntry.java
+++ b/source/de/anomic/content/DCEntry.java
@@ -43,6 +43,19 @@ public class DCEntry extends HashMap {
super();
}
+ public DCEntry(
+ yacyURL url,
+ String title,
+ String author,
+ String body
+ ) {
+ super();
+ this.put("url", url.toNormalform(true, false));
+ this.put("title", title);
+ this.put("author", author);
+ this.put("body", body);
+ }
+
/*
DC according to rfc 5013
@@ -101,6 +114,14 @@ public class DCEntry extends HashMap {
return t;
}
+ public String author() {
+ String t = this.get("author");
+ if (t == null) t = this.get("dc:Creator");
+ t = stripCDATA(t);
+ if (t == null) return "";
+ return t;
+ }
+
public String body() {
String t = this.get("body");
if (t == null) t = this.get("dc:Description");