From: Lars H. <he...@se...> - 2009-08-18 11:41:08
|
Hi Hannes, >> I see. Do you implement it (either (2) or (3))? > I will implement (3) tomorrow morning. Thanks. I changed a few lines, though: // remove tmdm:subject, because filter below doesn't work. tmdm:subject plays a role, so // _omitTopic returns false - we definitly don't want "tmdm:subject ." in our ctm file, do we? - Topic topic = topicMap.createTopicBySubjectIdentifier(TMDM.SUBJECT); - if ( (topic!=null) && (topics.contains(topic)) ) { + Topic topic = topicMap.getTopicBySubjectIdentifier(TMDM.SUBJECT); + if (topic != null) { topics.remove(topic); } I don't see a reason to create tmdm:subject if it does not exist in the topic map. If we create tmdm:subject, the topic will never be null. Committed in rev. 354. Best regards, Lars -- Semagia <http://www.semagia.com> |