avinash-k / gwtwiki

Automatically exported from code.google.com/p/gwtwiki
0 stars 0 forks source link

WikiArticle missing revision information #71

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
In WikiArticle.java, there is no getRevisionId function.

I'm using the WikiXMLParser which reads the xml dump into a WikiArticle object. 
I would like to get the revision for each article.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
3.0.16

Original issue reported on code.google.com by tommy.ch...@gmail.com on 2 Aug 2011 at 11:42

GoogleCodeExporter commented 8 years ago

Original comment by axelclk@gmail.com on 3 Aug 2011 at 2:46

GoogleCodeExporter commented 8 years ago
Suggested solution:

Add a new 
  private String revisisonId = null;
attribute to the WikiArticle class and corresponding setter/getter methods:
  getRevisionId()
  setRevisionId(String revId)

Extend the endElement(() method for the case   
  fArticle!=null:

...
else if (fRevision && WIKIPEDIA_ID.equals(qName)) {
  // get the id from revision, not the id from the wiki PAGE
  fArticle.setRevisionId(getString());
}
...

Original comment by axelclk@gmail.com on 3 Aug 2011 at 2:59

GoogleCodeExporter commented 8 years ago
Commited the change:
http://code.google.com/p/gwtwiki/source/detail?r=3669

Original comment by axelclk@gmail.com on 14 Aug 2011 at 6:24

GoogleCodeExporter commented 8 years ago

Original comment by axelclk@gmail.com on 14 Aug 2011 at 9:20