Question
I'm trying to capture headlines from
http://bioinformatics.oxfordjournals.org/
-- however the journal uses square brackets in the item title lines to specify categories ([EDITORIAL], etc). The square brackets cause problems with twiki notation for the line format ![![$link]![$title]]. Does anyone have any recommendations for getting around such a setup?
DanaCarrington
Environment
--
DanaCarrington - 31 Jan 2006
Answer
The latest HeadlinesPlugin version (2.0) contains a subroutine called 'recode'. This area allows for modification of text including replacement of square brackets with something less problematic. This is simply a hack at this point since it must be modified on all upgrades/installations until a better solution is available.
No, that's not the right thing to do. The
HeadlinesPlugin comes with HEADER and FORMAT
format strings that do a
[[$link][$title]] which then gets confused. So simply replace that
with a more robust
<a href="$link">$title</a> and you are done. Here are the new format strings
that will come with the next
HeadlinesPlugin release:
* Set HEADER = <div class="headlinesChannel"><div class="headlinesLogo"><img src="$imageurl" alt="$imagetitle" border="0" />%BR%</div><div class="headlinesTitle">$n---+!! <a href="$link">$title</a></div><div class="headlinesDate">$date</div><div class="headlinesDescription">$description</div><div class="headlinesRight">$rights</div></div>
* Set FORMAT = <div class="headlinesArticle"><div class="headlinesTitle"><a href="$link">$title</a></div>$n<hr /><span class="headlinesDate">$date</span> <span class="headlinesCreator"> $creator</span> <span class="headlinesSubject"> $subject </span>$n<div class="headlinesText"> $description</div></div>
--
MichaelDaum - 03 Feb 2006