Series (Reihe) beim ArticleInCollectedVolume ausgeblendet, da dort unsinnig.
git-svn-id: https://svn.libreccm.org/ccm/trunk@2137 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
511840c637
commit
73a52b2433
|
|
@ -62,4 +62,5 @@ public class ArticleInCollectedVolumeCollectedVolumeStep
|
|||
itemModel);
|
||||
setDisplayComponent(sheet);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ public class ArticleInCollectedVolumePropertiesStep
|
|||
"publications.ui.article_in_collected_volume.chapter"),
|
||||
ArticleInCollectedVolume.CHAPTER);
|
||||
|
||||
sheet.add(PublicationGlobalizationUtil.globalize(
|
||||
sheet.add(PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.articleInCollectedVolume.reviewed"),
|
||||
ArticleInCollectedVolume.REVIEWED, new ReviewedFormatter());
|
||||
|
||||
|
|
@ -102,13 +102,13 @@ public class ArticleInCollectedVolumePropertiesStep
|
|||
|
||||
addStep(new ArticleInCollectedVolumeCollectedVolumeStep(itemModel,
|
||||
parent),
|
||||
(String)PublicationGlobalizationUtil.globalize(
|
||||
(String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.articleInCollectedVolume.collectedVolume").
|
||||
localize());
|
||||
|
||||
}
|
||||
|
||||
private static class ReviewedFormatter
|
||||
private static class ReviewedFormatter
|
||||
extends DomainService
|
||||
implements DomainObjectPropertySheet.AttributeFormatter {
|
||||
|
||||
|
|
@ -128,4 +128,9 @@ public class ArticleInCollectedVolumePropertiesStep
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isSeriesStepEnabled() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ import java.text.DateFormat;
|
|||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
* @version $Id$
|
||||
*/
|
||||
public class PublicationPropertiesStep extends SimpleEditStep {
|
||||
|
||||
|
|
@ -85,12 +86,12 @@ public class PublicationPropertiesStep extends SimpleEditStep {
|
|||
|
||||
if (Publication.getConfig().getEnableFirstPublishedProperty()) {
|
||||
sheet.add(PublicationGlobalizationUtil.globalize("publications.ui.publication.first_published"),
|
||||
Publication.FIRST_PUBLISHED);
|
||||
Publication.FIRST_PUBLISHED);
|
||||
}
|
||||
|
||||
if (Publication.getConfig().getEnableLanguageProperty()) {
|
||||
sheet.add(PublicationGlobalizationUtil.globalize("publications.ui.publication.language"),
|
||||
Publication.LANG);
|
||||
Publication.LANG);
|
||||
}
|
||||
|
||||
if (!ContentSection.getConfig().getHideLaunchDate()) {
|
||||
|
|
@ -110,7 +111,6 @@ public class PublicationPropertiesStep extends SimpleEditStep {
|
|||
"cms.ui.unknown").localize();
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -147,8 +147,10 @@ public class PublicationPropertiesStep extends SimpleEditStep {
|
|||
AuthoringKitWizard parent) {
|
||||
addStep(new PublicationAuthorsPropertyStep(itemModel, parent),
|
||||
"publications.ui.publication.authors");
|
||||
addStep(new PublicationSeriesPropertyStep(itemModel, parent),
|
||||
"publications.ui.publication.series");
|
||||
if (isSeriesStepEnabled()) {
|
||||
addStep(new PublicationSeriesPropertyStep(itemModel, parent),
|
||||
"publications.ui.publication.series");
|
||||
}
|
||||
}
|
||||
|
||||
protected void addStep(SimpleEditStep step, String labelKey) {
|
||||
|
|
@ -158,6 +160,10 @@ public class PublicationPropertiesStep extends SimpleEditStep {
|
|||
step);
|
||||
}
|
||||
|
||||
protected boolean isSeriesStepEnabled() {
|
||||
return true;
|
||||
}
|
||||
|
||||
protected static class PreFormattedTextFormatter
|
||||
extends DomainService
|
||||
implements DomainObjectPropertySheet.AttributeFormatter {
|
||||
|
|
@ -175,6 +181,5 @@ public class PublicationPropertiesStep extends SimpleEditStep {
|
|||
return String.format("<pre>%s</pre>", str);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue