Map<String, JSoupMapper> postMappings = new HashMap<String, JSoupMapper>();
if (params.containsKey("start")) {
// when start is set, we only take the replies; we are in a second or further
// page of the topic
postMappings.put(Namespaces.NS_SIOC + "container_of", new PHPBBTopicHrefMapper("a.topictitle"));
} else {
// otherwise we also take the initial title, creator and date for the topic
postMappings.put(Namespaces.NS_DC + "title", new CssTextLiteralMapper("div#pageheader a.titles"));
postMappings.put(Namespaces.NS_DC + "description", new CssTextLiteralMapper("div#pageheader span.forumdesc"));
postMappings.put(Namespaces.NS_SIOC + "container_of", new PHPBBTopicHrefMapper("a.topictitle"));
postMappings.put(Namespaces.NS_SIOC + "parent_of", new PHPBBForumHrefMapper("a.forumlink, a.forumtitle"));
}
return postMappings;