bugfix fore reference type isXXX methods
authorAndreas Müller <a.mueller@bgbm.org>
Tue, 13 Jul 2010 17:13:59 +0000 (17:13 +0000)
committerAndreas Müller <a.mueller@bgbm.org>
Tue, 13 Jul 2010 17:13:59 +0000 (17:13 +0000)
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/reference/ReferenceType.java

index c4b3b4493b941ec45c9ef28cb8a2501b57db9002..1859a0fe0b9569ba179e4f8a61ffd09ff11677f6 100644 (file)
@@ -136,7 +136,7 @@ public enum ReferenceType {
         * Returns true if references of this type have volume information.\r
         */\r
        public boolean isVolumeReference(){\r
-               return (this == Article || isPrintedUnit());\r
+               return (this == Article || isPrintedUnit() || this == Generic);\r
        }\r
        \r
        /**\r
@@ -146,8 +146,8 @@ public enum ReferenceType {
        public boolean isPublication(){\r
                return (this == CdDvd || this == Database || this == Generic\r
                                || this == Journal || isPrintedUnit() ||  this == PrintSeries\r
-                               || this == Proceedings || this == Report \r
-                               || this == Thesis || this == WebPage);                  \r
+                               || this == Report  || this == Thesis \r
+                               || this == WebPage || this == Map);                     \r
        }\r
        \r
        /**\r
@@ -156,7 +156,7 @@ public enum ReferenceType {
         * representing the series (seriesPart).\r
         */\r
        public boolean isPrintedUnit(){\r
-               return (this == Book);\r
+               return (this == Book || this == Proceedings);\r
        }\r
        \r
        /**\r
@@ -164,7 +164,8 @@ public enum ReferenceType {
         * {@link ISectionBase}) and therefore may have an in-reference and pages.\r
         */\r
        public boolean isSection(){\r
-               return (this == BookSection || this == InProceedings || isVolumeReference());\r
+               return (this == BookSection || this == InProceedings \r
+                               || isPrintedUnit() || this == Article );\r
        }\r
        \r
 }\r