Merge branch 'master' of git://github.com/f1ori/yacy

pull/1/head
admin 13 years ago
commit 23afee58fe

@ -143,14 +143,40 @@ To see a list of all APIs, please visit the <a href="http://www.yacy-websuche.de
<input type="hidden" value="/YMarks.html" name="redirect"> <input type="hidden" value="/YMarks.html" name="redirect">
<h4>Bookmark Importer<img alt="help" title="If you put in your bookmarks here, you can access them anywhere where you have access to your YaCy peer. Think of it as your 'personal cloud' for bookmarking." class="help" src="/yacy/ui/img-2/question_blue.png"></h4> <h4>Bookmark Importer<img alt="help" title="If you put in your bookmarks here, you can access them anywhere where you have access to your YaCy peer. Think of it as your 'personal cloud' for bookmarking." class="help" src="/yacy/ui/img-2/question_blue.png"></h4>
<p> <p>
<input type="radio" name="importer" value="html" checked="checked" /> Netscape HTML<br /> <table cellspacing="3">
<input type="radio" name="importer" value="json" /> Firefox JSON<br /> <tr>
<input type="radio" name="importer" value="xbel" /> XBEL<br /> <td> <input type="radio" name="importer" value="html" checked="checked" /> </td>
<input type="radio" name="importer" value="surro" /> Surrogate XML<br /> <td>Netscape HTML</td>
<input type="radio" name="importer" value="dmoz" disabled="disabled" /> DMOZ XML<br /> </tr>
<input type="radio" name="importer" value="list" disabled="disabled"/> YaCy White/Black List<br /> <tr>
<input type="radio" name="importer" value="bmks" /> YaCy old bookmarks.db (admin)<br /> <td><input type="radio" name="importer" value="json" /></td>
<input type="radio" name="importer" value="crawls" /> YaCy Crawl Starts (admin)<br /> <td>Firefox JSON</td>
</tr>
<tr>
<td><input type="radio" name="importer" value="xbel" /></td>
<td>XBEL</td>
</tr>
<tr>
<td><input type="radio" name="importer" value="surro" /></td>
<td>Surrogate XML</td>
</tr>
<tr>
<td><input type="radio" name="importer" value="dmoz" disabled="disabled" /></td>
<td>DMOZ XML</td>
</tr>
<tr>
<td><input type="radio" name="importer" value="list" disabled="disabled"/></td>
<td>YaCy White/Black List</td>
</tr>
<tr>
<td><input type="radio" name="importer" value="bmks" /></td>
<td>YaCy bookmarks.db (admin)</td>
</tr>
<tr>
<td><input type="radio" name="importer" value="crawls" /></td>
<td>YaCy Crawl Starts (admin)</td>
</tr>
</table>
</p> </p>
<p> <p>
<small>Bookmark file</small> <small>Bookmark file</small>
@ -169,26 +195,50 @@ To see a list of all APIs, please visit the <a href="http://www.yacy-websuche.de
<hr /> <hr />
<h4>Automatic tagging<img alt="help" title="Tags are words that are attached to documents as metadata. It is possible to read all the documents and find the attached tags automatically." class="help" src="/yacy/ui/img-2/question_blue.png"></h4> <h4>Automatic tagging<img alt="help" title="Tags are words that are attached to documents as metadata. It is possible to read all the documents and find the attached tags automatically." class="help" src="/yacy/ui/img-2/question_blue.png"></h4>
<p> <p>
<input type="radio" name="autotag" value="off" checked="checked" /> Off <table cellspacing="5">
<br /> <tr>
<input type="radio" name="autotag" value="empty" /> Only for empty tags <td><input type="radio" name="autotag" value="off" checked="checked" /></td>
<br /> <td>Off</td>
<input type="radio" name="autotag" value="overwrite" /> Overwriting existing tags </tr>
<br /> <tr>
<input type="radio" name="autotag" value="merge" /> Merging with existing tags <td><input type="radio" name="autotag" value="empty" /></td>
<td>Only for empty tags</td>
</tr>
<tr>
<td><input type="radio" name="autotag" value="overwrite" /></td>
<td>Overwriting existing tags</td>
</tr>
<tr>
<td><input type="radio" name="autotag" value="merge" /></td>
<td>Merging with existing tags</td>
</tr>
</table>
</p> </p>
<hr /> <hr />
<h4>Automatic Indexing<img alt="help" title="While doing the bookmark import, YaCy can push all URLs to the indexing process" class="help" src="/yacy/ui/img-2/question_blue.png"></h4> <h4>Automatic Indexing<img alt="help" title="While doing the bookmark import, YaCy can push all URLs to the indexing process" class="help" src="/yacy/ui/img-2/question_blue.png"></h4>
<p> <p>
<input type="radio" name="indexing" value="off" checked="checked" /> No indexing <table cellspacing="5">
<br /> <tr>
<input type="radio" name="indexing" value="single" /> Index every bookmark entry <td><input type="radio" name="indexing" value="off" checked="checked" /></td>
<br /> <td>No indexing</td>
<input type="radio" name="indexing" value="onelink" /> Index every bookmark entry plus all directly linked pages </tr>
<br /> <tr>
<input type="radio" name="indexing" value="fulldomain" /> Index all domains from all bookmarks completely <td><input type="radio" name="indexing" value="single" /></td>
<br /><br /> <td>Index every bookmark entry</td>
<input type="checkbox" name="medialink" /> also all media (image/movie/document) links </tr>
<tr>
<td><input type="radio" name="indexing" value="onelink" /></td>
<td>Index every bookmark entry plus all directly linked pages</td>
</tr>
<tr>
<td><input type="radio" name="indexing" value="fulldomain" /></td>
<td>Index all domains from all bookmarks completely</td>
</tr>
<tr>
<td><input type="checkbox" name="medialink" /></td>
<td><br />include all media (image/movie/document) links</td>
</tr>
</table>
</p> </p>
<hr /> <hr />
<p style="text-align: right"> <p style="text-align: right">

@ -131,7 +131,7 @@ public class get_xbel {
buffer.append(CharacterCoding.unicode2xml(date.toISO8601(), true)); buffer.append(CharacterCoding.unicode2xml(date.toISO8601(), true));
buffer.append(YMarkEntry.BOOKMARK.TAGS.xbel()); buffer.append(YMarkEntry.BOOKMARK.TAGS.xbel());
buffer.append(bmk_row.get(YMarkEntry.BOOKMARK.TAGS.key(), YMarkEntry.BOOKMARK.TAGS.deflt())); buffer.append(CharacterCoding.unicode2xml(bmk_row.get(YMarkEntry.BOOKMARK.TAGS.key(), YMarkEntry.BOOKMARK.TAGS.deflt()),true));
buffer.append(YMarkEntry.BOOKMARK.PUBLIC.xbel()); buffer.append(YMarkEntry.BOOKMARK.PUBLIC.xbel());
buffer.append(bmk_row.get(YMarkEntry.BOOKMARK.PUBLIC.key(), YMarkEntry.BOOKMARK.PUBLIC.deflt())); buffer.append(bmk_row.get(YMarkEntry.BOOKMARK.PUBLIC.key(), YMarkEntry.BOOKMARK.PUBLIC.deflt()));

@ -25,7 +25,7 @@ public class YMarkEntry extends TreeMap<String, String> {
DATE_ADDED ("date_added", "", "", "add_date", "added", "dateAdded", "date"), DATE_ADDED ("date_added", "", "", "add_date", "added", "dateAdded", "date"),
DATE_MODIFIED ("date_modified", "", "", "last_modified", "modified", "lastModified", "date"), DATE_MODIFIED ("date_modified", "", "", "last_modified", "modified", "lastModified", "date"),
DATE_VISITED ("date_visited", "", "", "last_visited", "visited", "", "date"), DATE_VISITED ("date_visited", "", "", "last_visited", "visited", "", "date"),
PUBLIC ("public", "", "flase", "private", "yacy:public", "", "lock"), PUBLIC ("public", "", "false", "private", "yacy:public", "", "lock"),
TAGS ("tags", "dc:subject", "unsorted", "shortcuturl", "yacy:tags", "keyword", "tag"), TAGS ("tags", "dc:subject", "unsorted", "shortcuturl", "yacy:tags", "keyword", "tag"),
VISITS ("visits", "", "0", "", "yacy:visits", "", "stat"), VISITS ("visits", "", "0", "", "yacy:visits", "", "stat"),
FOLDERS ("folders", "", "/unsorted", "", "", "", "folder"); FOLDERS ("folders", "", "/unsorted", "", "", "", "folder");

@ -161,6 +161,10 @@ public class YMarkXBELImporter extends DefaultHandler implements Runnable {
if (XBEL.BOOKMARK.tag().equals(tag)) { if (XBEL.BOOKMARK.tag().equals(tag)) {
this.bmk = new YMarkEntry(); this.bmk = new YMarkEntry();
this.bmk.put(YMarkEntry.BOOKMARK.URL.key(), atts.getValue(uri, YMarkEntry.BOOKMARK.URL.xbel_attrb())); this.bmk.put(YMarkEntry.BOOKMARK.URL.key(), atts.getValue(uri, YMarkEntry.BOOKMARK.URL.xbel_attrb()));
//TODO: include a dynamic loop over all annotation tags
this.bmk.put(YMarkEntry.BOOKMARK.TAGS.key(), atts.getValue(uri, YMarkEntry.BOOKMARK.TAGS.xbel_attrb()));
this.bmk.put(YMarkEntry.BOOKMARK.PUBLIC.key(), atts.getValue(uri, YMarkEntry.BOOKMARK.PUBLIC.xbel_attrb()));
this.bmk.put(YMarkEntry.BOOKMARK.VISITS.key(), atts.getValue(uri, YMarkEntry.BOOKMARK.VISITS.xbel_attrb()));
try { try {
date.parseISO8601(atts.getValue(uri, YMarkEntry.BOOKMARK.DATE_ADDED.xbel_attrb())); date.parseISO8601(atts.getValue(uri, YMarkEntry.BOOKMARK.DATE_ADDED.xbel_attrb()));
} catch (ParseException e) { } catch (ParseException e) {

Loading…
Cancel
Save