ref #10291: remove publisher informations for journals in details view
authorKatja Luther <k.luther@bgbm.org>
Fri, 14 Apr 2023 06:06:51 +0000 (08:06 +0200)
committerKatja Luther <k.luther@bgbm.org>
Fri, 14 Apr 2023 06:06:51 +0000 (08:06 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/reference/ReferenceDetailElement.java

index 19d1dd214316d4e0927e25ac5efa98801b92617c..a0e0982f8fb80251532a55aaaaf63c515428cbb4 100644 (file)
@@ -299,25 +299,27 @@ public class ReferenceDetailElement extends AbstractIdentifiableEntityDetailElem
        private void createPublicationControls(ICdmFormElement element,
                        ReferenceType referenceType, Reference reference, int style) {
 
-               // placePublished
-               text_placePublished = formFactory.createTextWithLabelElement(element,
-                               "Place Published", reference.getPlacePublished(), style);
-
-               // publisher
-               text_publisher = formFactory.createTextWithLabelElement(element,
-                               "Publisher", reference.getPublisher(), style);
-               
-               // placePublished2
-               text_placePublished2 = formFactory.createTextWithLabelElement(element,
-                                               "2nd Place Published", reference.getPlacePublished2(), style);
-               
-               text_placePublished2.setEditable(!(reference.getPlacePublished() == null && reference.getPublisher() == null));
-               
-
-               // publisher2
-               text_publisher2 = formFactory.createTextWithLabelElement(element,
-                               "2nd Publisher", reference.getPublisher2(), style);
-               text_publisher2.setEditable(!(getEntity().getPlacePublished() == null && getEntity().getPublisher() == null));
+           if (!referenceType.equals(ReferenceType.Journal)) {
+               // placePublished
+               text_placePublished = formFactory.createTextWithLabelElement(element,
+                               "Place Published", reference.getPlacePublished(), style);
+
+               // publisher
+               text_publisher = formFactory.createTextWithLabelElement(element,
+                               "Publisher", reference.getPublisher(), style);
+
+               // placePublished2
+               text_placePublished2 = formFactory.createTextWithLabelElement(element,
+                                               "2nd Place Published", reference.getPlacePublished2(), style);
+
+               text_placePublished2.setEditable(!(reference.getPlacePublished() == null && reference.getPublisher() == null));
+
+
+               // publisher2
+               text_publisher2 = formFactory.createTextWithLabelElement(element,
+                               "2nd Publisher", reference.getPublisher2(), style);
+               text_publisher2.setEditable(!(getEntity().getPlacePublished() == null && getEntity().getPublisher() == null));
+           }
                if (referenceType.equals(ReferenceType.Journal)) {
                        // issn
                        text_issn = formFactory.createTextWithLabelElement(element, "ISSN",
@@ -604,6 +606,6 @@ public class ReferenceDetailElement extends AbstractIdentifiableEntityDetailElem
        @Override
        public void fillFields() {
                // TODO Auto-generated method stub
-               
+
        }
 }
\ No newline at end of file