Active development of JAMWiki has ceased, and bug fixes and support will be limited at best. If you are interested in taking over management of JAMWiki please send an email to the jamwiki-devel mailing list.

Tech comments:OrphanedPages

Orphaned Pages

Archived from the Feedback page:

I have changed my viewOrphanedPages in ItemsServlet a bit, so that some namespaces (user, user_comments, e.g.) aren't displayed. This should also increase performance a little, although in my tests it changes very, very little. Of couse, querying less entries from db would be great, but this one was easier to implement and needs no testing on database-layer...

 private void viewOrphanedPages(HttpServletRequest request, ModelAndView next, WikiPageInfo pageInfo) throws Exception {
	String virtualWiki = pageInfo.getVirtualWikiName();
	Pagination pagination = ServletUtil.loadPagination(request, next);
	Set<String> allItems = new TreeSet<String>();
	List<String> unlinkedTopics = WikiBase.getDataHandler().getAllTopicNames(virtualWiki);
	Topic topic;
	List<SearchResultEntry> topicLinks;
	ParserInput parserInput;
	ParserOutput parserOutput;
	for (String topicName : unlinkedTopics) {
	  if (!isInNamespace(topicName, 
			     NamespaceHandler.NAMESPACE_IMAGE_COMMENTS)) {

the helping method isInNamespace:

 private boolean isInNamespace(String input, String... namespaces) {
   for (String ns : namespaces) {
	if (StringUtils.startsWith(input, ns + NamespaceHandler.NAMESPACE_SEPARATOR))
	  return true;
   return false;

I don't know if anyone else is interested in this interpretation of orphaned pages, for me it doesn't make sense displaying category-comments here. --hp 07-Jan-2010 01:49 PST

One of the changes that I'd like to make for 0.9.0 is to split out namespaces from topic names. This would allow localization of the namespace names, search within namespaces, easier Mediawiki import, and a number of other nice features. Would that help out your implementation? I'm hoping to get that done soon, although I start a new job on Monday and don't know how much time it will take up.
Also, feel free to update the "orphaned pages" code on trunk if you're interested - it's not functionality that I use much, so at this point I'm sure you're the expert on it and I'm more than comfortable with you making changes. -- Ryan • (comments) • 07-Jan-2010 22:09 PST