Series (Reihe) beim ArticleInCollectedVolume ausgeblendet, da dort unsinnig.

git-svn-id: https://svn.libreccm.org/ccm/trunk@2137 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2013-04-18 12:12:34 +00:00
parent 511840c637
commit 73a52b2433
3 changed files with 20 additions and 9 deletions

View File

@ -62,4 +62,5 @@ public class ArticleInCollectedVolumeCollectedVolumeStep
itemModel); itemModel);
setDisplayComponent(sheet); setDisplayComponent(sheet);
} }
} }

View File

@ -102,7 +102,7 @@ public class ArticleInCollectedVolumePropertiesStep
addStep(new ArticleInCollectedVolumeCollectedVolumeStep(itemModel, addStep(new ArticleInCollectedVolumeCollectedVolumeStep(itemModel,
parent), parent),
(String)PublicationGlobalizationUtil.globalize( (String) PublicationGlobalizationUtil.globalize(
"publications.ui.articleInCollectedVolume.collectedVolume"). "publications.ui.articleInCollectedVolume.collectedVolume").
localize()); localize());
@ -128,4 +128,9 @@ public class ArticleInCollectedVolumePropertiesStep
} }
} }
} }
@Override
protected boolean isSeriesStepEnabled() {
return false;
}
} }

View File

@ -42,6 +42,7 @@ import java.text.DateFormat;
/** /**
* *
* @author Jens Pelzetter * @author Jens Pelzetter
* @version $Id$
*/ */
public class PublicationPropertiesStep extends SimpleEditStep { public class PublicationPropertiesStep extends SimpleEditStep {
@ -110,7 +111,6 @@ public class PublicationPropertiesStep extends SimpleEditStep {
"cms.ui.unknown").localize(); "cms.ui.unknown").localize();
} }
} }
}); });
} }
@ -147,9 +147,11 @@ public class PublicationPropertiesStep extends SimpleEditStep {
AuthoringKitWizard parent) { AuthoringKitWizard parent) {
addStep(new PublicationAuthorsPropertyStep(itemModel, parent), addStep(new PublicationAuthorsPropertyStep(itemModel, parent),
"publications.ui.publication.authors"); "publications.ui.publication.authors");
if (isSeriesStepEnabled()) {
addStep(new PublicationSeriesPropertyStep(itemModel, parent), addStep(new PublicationSeriesPropertyStep(itemModel, parent),
"publications.ui.publication.series"); "publications.ui.publication.series");
} }
}
protected void addStep(SimpleEditStep step, String labelKey) { protected void addStep(SimpleEditStep step, String labelKey) {
segmentedPanel.addSegment( segmentedPanel.addSegment(
@ -158,6 +160,10 @@ public class PublicationPropertiesStep extends SimpleEditStep {
step); step);
} }
protected boolean isSeriesStepEnabled() {
return true;
}
protected static class PreFormattedTextFormatter protected static class PreFormattedTextFormatter
extends DomainService extends DomainService
implements DomainObjectPropertySheet.AttributeFormatter { implements DomainObjectPropertySheet.AttributeFormatter {
@ -175,6 +181,5 @@ public class PublicationPropertiesStep extends SimpleEditStep {
return String.format("<pre>%s</pre>", str); return String.format("<pre>%s</pre>", str);
} }
} }
} }
} }