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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
||||
|
|
@ -110,7 +111,6 @@ public class PublicationPropertiesStep extends SimpleEditStep {
|
|||
"cms.ui.unknown").localize();
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -147,9 +147,11 @@ public class PublicationPropertiesStep extends SimpleEditStep {
|
|||
AuthoringKitWizard parent) {
|
||||
addStep(new PublicationAuthorsPropertyStep(itemModel, parent),
|
||||
"publications.ui.publication.authors");
|
||||
if (isSeriesStepEnabled()) {
|
||||
addStep(new PublicationSeriesPropertyStep(itemModel, parent),
|
||||
"publications.ui.publication.series");
|
||||
}
|
||||
}
|
||||
|
||||
protected void addStep(SimpleEditStep step, String labelKey) {
|
||||
segmentedPanel.addSegment(
|
||||
|
|
@ -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