First part of Java and XHTML for the authoring steps of Expertise
parent
9db50c895c
commit
c172101781
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.scientificcms.publications.contenttypes;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,15 +1,17 @@
|
|||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.scientificcms.publications.contenttypes;
|
||||
|
||||
|
||||
|
||||
import org.hibernate.envers.Audited;
|
||||
import org.librecms.contenttypes.ContentTypeDescription;
|
||||
import org.librecms.ui.contentsections.documents.MvcAuthoringKit;
|
||||
import org.librecms.ui.contentsections.documents.MvcAuthoringStepDef;
|
||||
import org.scientificcms.publications.Expertise;
|
||||
import org.scientificcms.publications.ui.contenttypes.ExpertiseExtendedPropertiesStep;
|
||||
import org.scientificcms.publications.ui.contenttypes.ExpertiseItemCreateStep;
|
||||
import org.scientificcms.publications.ui.contenttypes.ExpertisePropertiesStep;
|
||||
import org.scientificcms.publications.ui.contenttypes.PublicationAbstractStep;
|
||||
import org.scientificcms.publications.ui.contenttypes.PublicationMiscStep;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
|
|
@ -27,6 +29,15 @@ import static org.scientificcms.publications.SciPublicationsConstants.*;
|
|||
labelBundle = "org.scientificcms.publications.contenttypes.Expertise",
|
||||
descriptionBundle = "org.scientificcms.publications.contenttypes.Expertise"
|
||||
)
|
||||
@MvcAuthoringKit(
|
||||
createStep = ExpertiseItemCreateStep.class,
|
||||
authoringSteps = {
|
||||
ExpertisePropertiesStep.class,
|
||||
ExpertiseExtendedPropertiesStep.class,
|
||||
PublicationAbstractStep.class,
|
||||
PublicationMiscStep.class
|
||||
}
|
||||
)
|
||||
public class ExpertiseItem extends PublicationItem<Expertise> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import javax.inject.Named;
|
|||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemai l.com">Jens Pelzetter</a>
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
@RequestScoped
|
||||
@Named("SciPublicationsExpertiseCreateStep")
|
||||
|
|
|
|||
|
|
@ -22,6 +22,8 @@ public class PublicationAuthoringSteps implements MvcAuthoringSteps {
|
|||
ArticleInJournalExtendedPropertiesStep.class,
|
||||
CollectedVolumePropertiesStep.class,
|
||||
CollectedVolumeExtendedPropertiesStep.class,
|
||||
ExpertisePropertiesStep.class,
|
||||
ExpertiseExtendedPropertiesStep.class,
|
||||
InProceedingsPropertiesStep.class,
|
||||
InProceedingsExtendedPropertiesStep.class,
|
||||
MonographPropertiesStep.class,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,47 @@
|
|||
<!DOCTYPE html [<!ENTITY times '×'>]>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:bootstrap="http://xmlns.jcp.org/jsf/composite/components/bootstrap"
|
||||
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
|
||||
xmlns:libreccm="http://xmlns.jcp.org/jsf/composite/components/libreccm"
|
||||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
|
||||
<ui:composition template="/WEB-INF/views/org/scientificcms/contenttypes/ui/create-publication.xhtml">
|
||||
|
||||
<ui:param name="availableLocales"
|
||||
value="#{SciPublicationsExpertiseCreateStep.availableLocales}" />
|
||||
|
||||
<ui:param name="availableWorkflows"
|
||||
value="#{SciPublicationsExpertiseCreateStep.availableWorkflows}" />
|
||||
|
||||
<ui:param name="contentSection"
|
||||
value="#{SciPublicationsExpertiseCreateStep.contentSectionLabel}" />
|
||||
|
||||
<ui:param name="createFormSubmitLabel"
|
||||
value="#{SciPublicationsUiMessageBundle['expertise.createform.submit']}" />
|
||||
|
||||
<ui:param name="documentType"
|
||||
value="#{SciPublicationsExpertiseCreateStep.documentType}" />
|
||||
|
||||
<ui:param name="folderPath"
|
||||
value="#{SciPublicationsExpertiseCreateStep.folderPath}" />
|
||||
|
||||
<ui:param name="initialLocale"
|
||||
value="#{SciPublicationsExpertiseCreateStep.initialLocale}" />
|
||||
|
||||
<ui:param name="messages"
|
||||
value="#{SciPublicationsExpertiseCreateStep.messages}" />
|
||||
|
||||
<ui:param name="nameValue"
|
||||
value="#{SciPublicationsExpertiseCreateStep.name}" />
|
||||
|
||||
<ui:param name="publicationCreateStepTitle"
|
||||
value="#{SciPublicationsUiMessageBundle['expertise.createform.title']}" />
|
||||
|
||||
<ui:param name="selectedWorkflow"
|
||||
value="#{SciPublicationsExpertiseCreateStep.selectedWorkflow}" />
|
||||
|
||||
<ui:param name="title"
|
||||
value="#{SciPublicationsExpertiseCreateStep.title}" />
|
||||
|
||||
|
||||
</ui:composition>
|
||||
</html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
|
||||
|
|
@ -562,3 +562,6 @@ articleinjournal.edit.journal.remove.cancel=Cancel
|
|||
articleinjournal.edit.journal.remove.confirm=Remove
|
||||
articleinjournal.edit.journal.remove.title=Confirm removal of article from journal
|
||||
articleinjournal.edit.journal.remove.message=Are you sure to remove this article from the assigned journal?
|
||||
expertiseitem.createstep.description=Create a new expertise publication.
|
||||
expertise.createform.submit=Create
|
||||
expertise.createform.title=Create a new Expertise
|
||||
|
|
|
|||
|
|
@ -562,3 +562,6 @@ articleinjournal.edit.journal.remove.cancel=Abbrechen
|
|||
articleinjournal.edit.journal.remove.confirm=Entfernen
|
||||
articleinjournal.edit.journal.remove.title=Entfernen des Beitrags aus der Zeitschrift best\u00e4tigen
|
||||
articleinjournal.edit.journal.remove.message=Sind Sie sicher dass, Sie diesen Beitrag aus der Zeitschrift entfernen wollen?
|
||||
expertiseitem.createstep.description=Ein neues Gutachten anlegen.
|
||||
expertise.createform.submit=Anlegen
|
||||
expertise.createform.title=Neues Gutachten anlegen
|
||||
|
|
|
|||
Loading…
Reference in New Issue