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",
@Override
public void fillFields() {
// TODO Auto-generated method stub
-
+
}
}
\ No newline at end of file