Index: /trunk/psLib/src/types/psMetadataItemCompare.c
===================================================================
--- /trunk/psLib/src/types/psMetadataItemCompare.c	(revision 16644)
+++ /trunk/psLib/src/types/psMetadataItemCompare.c	(revision 16645)
@@ -87,5 +87,9 @@
 		  return true;
 		}
-		if (!strcasecmp(compare->data.V, template->data.V)) {
+		if (!strcasecmp(entry->data.V, template->data.V)) {
+		  return true;
+		}
+		// XXX this is a hack : also compare with the comment field (for HISTORY, COMMENT)
+		if (!strcasecmp(entry->comment, template->data.V)) {
 		  return true;
 		}
