Skip to content

Commit

Permalink
added stub for PHPBB3 extraction code using direct access to mySQL
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5979 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed May 26, 2009
1 parent e735d3a commit c72a5cf
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .classpath
Expand Up @@ -45,5 +45,6 @@
<classpathentry exported="true" kind="lib" path="lib/sbbi-upnplib-1.0.4.jar"/>
<classpathentry kind="lib" path="lib/xerces.jar"/>
<classpathentry kind="lib" path="lib/bzip2.jar"/>
<classpathentry kind="lib" path="libx/mysql-connector-java-5.1.7-bin.jar"/>
<classpathentry kind="output" path="gen"/>
</classpath>
Binary file added libx/mysql-connector-java-5.1.7-bin.jar
Binary file not shown.
21 changes: 21 additions & 0 deletions source/de/anomic/content/DCEntry.java
Expand Up @@ -43,6 +43,19 @@ public DCEntry() {
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
Expand Down Expand Up @@ -101,6 +114,14 @@ public String title() {
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");
Expand Down

0 comments on commit c72a5cf

Please sign in to comment.