[Project_owners] Status reports (Week of 1 December, 2003)

Neil Rashbrook neil at parkwaycc.co.uk
Thu Dec 4 18:24:49 EST 2003


Neil wrote:

> Andy Edmonds wrote:
>
>> Neil wrote:
>>
>>> Andy Edmonds wrote:
>>>
>>>> This release also features a separate function for serializing 
>>>> bookmarks to RDF in hopes of bootstrapping RDF work outside of Mozilla.
>>>
>>> Doesn't export bookmarks already have this feature?
>>
>> Nope, not that I could find anyway -- see 
>> http://bugzilla.mozilla.org/show_bug.cgi?id=177886.
>
> Actually http://bugzilla.mozilla.org/show_bug.cgi?id=180423 
> implemented the feature but there's no UI for it.

This patch makes it so that if you export to a .rdf file then you get 
RDF (although I don't know if it's valid RDF).
-------------- next part --------------
Index: bookmarks.js
===================================================================
RCS file: /cvsroot/mozilla/xpfe/components/bookmarks/resources/bookmarks.js,v
retrieving revision 1.124
diff -p -u -d -r1.124 bookmarks.js
--- bookmarks.js	30 Oct 2003 05:04:44 -0000	1.124
+++ bookmarks.js	4 Dec 2003 14:00:55 -0000
@@ -704,6 +704,8 @@ var BookmarksCommand = {
     }
     var selection = RDF.GetResource("NC:BookmarksRoot");
     var args = [{ property: NC_NS+"URL", literal: fileName}];
+    if (/\.(.*)$/.test(fileName))
+      args.push({ property: RDF_NS+"type", literal: RegExp.$1});
     this.doBookmarksCommand(selection, NC_NS_CMD+"export", args);
   },
 


More information about the Project_owners mailing list