ok, I've made some progress here. the page mentioned calls a script from:
http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/scripts/Bibsonomy
Which is also available here:
http://code.xwiki.org/xwiki/bin/view/Macros/BibsonomyMacro
that script pulls data from
bibsonomy.org using RSS and parses the feed:
#set($feed = $xwiki.feed.getFeeds("
http://www.bibsonomy.org/publrssN/tag/${tag}?items=1000"))
#foreach ($entry in $feed.entries)
#set($val = $entry.getDescription().value)
## get title
#set($index = $val.indexOf("bmtitle") +10)
#set($val = $val.substring($index))
#set($index = $val.indexOf("</div>"))
#set($headline = $val.substring(0, $index))
#set($index = $index +6)
#set($val = $val.substring($index))
ugly hack, but I was in a rush to get the feature out..
As was bound to happen at some point, the format of the feed content has
changed, and the code is now broken. As a quick fix, I replaced it with:
#set($feed = $xwiki.feed.getFeeds("
http://www.bibsonomy.org/publrssN/tag/${tag}?items=1000"))
#foreach ($entry in $feed.entries)
$entry.getDescription().value)
I don't know if the change in the feed format is on the provider's side
(i.e. bibsonomy) or on XWiki's side. In any case, I should use bibsonomy's
API instead:
http://www.bibsonomy.org/help/doc/api.html
Anyone interested in helping?
___________________________
Yishay Mor, Researcher, London Knowledge Lab
http://www.lkl.ac.uk/people/mor.html
http://www.google.com/calendar/embed?src=yishaym%40gmail.com
+44-20-78378888 x5737
2009/1/22 Yishay Mor <yishaym(a)gmail.com>
This:
http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/scripts/BibsonomyD…
used to work, now it throws a vicious exception - I can't even track down
the line number. any ideas?
org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'exists' in class com.xpn.xwiki.api.XWiki threw exception
java.lang.StringIndexOutOfBoundsException: String index out of range: -16 @
scripts.BibsonomyDemo31,15?
___________________________
Yishay Mor, Researcher, London Knowledge Lab
http://www.lkl.ac.uk/people/mor.html
http://www.google.com/calendar/embed?src=yishaym%40gmail.com
+44-20-78378888 x5737