Authoring steps for working paper
parent
97efd8d381
commit
6d8554500c
|
|
@ -5,10 +5,15 @@
|
|||
*/
|
||||
package org.scientificcms.publications.contenttypes;
|
||||
|
||||
|
||||
import org.hibernate.envers.Audited;
|
||||
import org.librecms.contenttypes.ContentTypeDescription;
|
||||
import org.librecms.ui.contentsections.documents.MvcAuthoringKit;
|
||||
import org.scientificcms.publications.WorkingPaper;
|
||||
import org.scientificcms.publications.ui.contenttypes.PublicationAbstractStep;
|
||||
import org.scientificcms.publications.ui.contenttypes.PublicationMiscStep;
|
||||
import org.scientificcms.publications.ui.contenttypes.WorkingPaperExtendedPropertiesStep;
|
||||
import org.scientificcms.publications.ui.contenttypes.WorkingPaperItemCreateStep;
|
||||
import org.scientificcms.publications.ui.contenttypes.WorkingPaperPropertiesStep;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
|
|
@ -27,31 +32,22 @@ import static org.scientificcms.publications.SciPublicationsConstants.*;
|
|||
descriptionBundle
|
||||
= "org.scientificcms.publications.contenttypes.WorkingPaper"
|
||||
)
|
||||
@MvcAuthoringKit(
|
||||
createStep = WorkingPaperItemCreateStep.class,
|
||||
authoringSteps = {
|
||||
WorkingPaperPropertiesStep.class,
|
||||
WorkingPaperExtendedPropertiesStep.class,
|
||||
PublicationAbstractStep.class,
|
||||
PublicationMiscStep.class
|
||||
}
|
||||
)
|
||||
public class WorkingPaperItem extends PublicationItem<WorkingPaper> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
// @OneToOne(cascade = {CascadeType.DETACH,
|
||||
// CascadeType.MERGE,
|
||||
// CascadeType.PERSIST,
|
||||
// CascadeType.REFRESH
|
||||
// })
|
||||
// @JoinColumn(name = "EXPERTISE_ID")
|
||||
// private WorkingPaper workingPaper;
|
||||
//
|
||||
// @Override
|
||||
// public WorkingPaper getPublication() {
|
||||
// return workingPaper;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// protected void setPublication(final WorkingPaper workingPaper) {
|
||||
// this.workingPaper = workingPaper;
|
||||
// }
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = super.hashCode();
|
||||
// hash = 67 * hash + Objects.hashCode(workingPaper);
|
||||
return hash;
|
||||
}
|
||||
|
||||
|
|
@ -71,10 +67,6 @@ public class WorkingPaperItem extends PublicationItem<WorkingPaper> {
|
|||
}
|
||||
final WorkingPaperItem other
|
||||
= (WorkingPaperItem) obj;
|
||||
// if (!other.canEqual(this)) {
|
||||
// return false;
|
||||
// }
|
||||
// return Objects.equals(this.workingPaper, other.getPublication());
|
||||
return other.canEqual(this);
|
||||
}
|
||||
|
||||
|
|
@ -83,10 +75,4 @@ public class WorkingPaperItem extends PublicationItem<WorkingPaper> {
|
|||
return obj instanceof WorkingPaperItem;
|
||||
}
|
||||
|
||||
// @Override
|
||||
// public String toString(final String data) {
|
||||
// return super.toString(String.format(", workingPaper = %s%s",
|
||||
// Objects.toString(workingPaper),
|
||||
// data));
|
||||
// }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,9 @@ public class PublicationAuthoringSteps implements MvcAuthoringSteps {
|
|||
PublicationAbstractStep.class,
|
||||
PublicationMiscStep.class,
|
||||
TalkPropertiesStep.class,
|
||||
TalkExtendedPropertiesStep.class
|
||||
TalkExtendedPropertiesStep.class,
|
||||
WorkingPaperPropertiesStep.class,
|
||||
WorkingPaperExtendedPropertiesStep.class
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,161 @@
|
|||
package org.scientificcms.publications.ui.contenttypes;
|
||||
|
||||
import org.libreccm.security.AuthorizationRequired;
|
||||
import org.librecms.ui.contentsections.documents.MvcAuthoringStepDef;
|
||||
import org.librecms.ui.contentsections.documents.MvcAuthoringSteps;
|
||||
import org.scientificcms.publications.WorkingPaper;
|
||||
import org.scientificcms.publications.contenttypes.WorkingPaperItem;
|
||||
import org.scientificcms.publications.ui.SciPublicationsUiConstants;
|
||||
|
||||
import javax.enterprise.context.RequestScoped;
|
||||
import javax.mvc.Controller;
|
||||
import javax.transaction.Transactional;
|
||||
import javax.ws.rs.FormParam;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.POST;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.PathParam;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
@RequestScoped
|
||||
@Path(MvcAuthoringSteps.PATH_PREFIX + "workingpaper-extendedproeprties")
|
||||
@Controller
|
||||
@MvcAuthoringStepDef(
|
||||
bundle = SciPublicationsUiConstants.BUNDLE,
|
||||
descriptionKey = "authoringsteps.extendedproperties.description",
|
||||
labelKey = "authoringsteps.extendedproperties.label",
|
||||
supportedDocumentType = WorkingPaperItem.class
|
||||
)
|
||||
public class WorkingPaperExtendedPropertiesStep
|
||||
extends AbstractPublicationExtendedPropertiesStep<WorkingPaperItem, WorkingPaper> {
|
||||
|
||||
@Override
|
||||
public Class<WorkingPaperExtendedPropertiesStep> getStepClass() {
|
||||
return WorkingPaperExtendedPropertiesStep.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<WorkingPaper> getPublicationClass() {
|
||||
return WorkingPaper.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getEditStepUrlFragment() {
|
||||
return "workingpaper-extendedproperties";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getStepTemplatePath() {
|
||||
return "org/scientificcms/contenttypes/ui/workingpaper/edit-extended-properties.xhtml";
|
||||
}
|
||||
|
||||
@GET
|
||||
@Path("/")
|
||||
@AuthorizationRequired
|
||||
@Transactional(Transactional.TxType.REQUIRED)
|
||||
@Override
|
||||
public String showStep(
|
||||
@PathParam(MvcAuthoringSteps.SECTION_IDENTIFIER_PATH_PARAM)
|
||||
final String sectionIdentifier,
|
||||
@PathParam(MvcAuthoringSteps.DOCUMENT_PATH_PATH_PARAM_NAME)
|
||||
final String documentPath
|
||||
) {
|
||||
return super.showStep(sectionIdentifier, documentPath);
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/properties")
|
||||
@AuthorizationRequired
|
||||
@Transactional(Transactional.TxType.REQUIRED)
|
||||
@Override
|
||||
public String updateProperties(
|
||||
@PathParam(MvcAuthoringSteps.SECTION_IDENTIFIER_PATH_PARAM)
|
||||
final String sectionIdentifier,
|
||||
@PathParam(MvcAuthoringSteps.DOCUMENT_PATH_PATH_PARAM_NAME)
|
||||
final String documentPath,
|
||||
@FormParam("languageOfPublication")
|
||||
final String languageOfPublicationParam,
|
||||
@FormParam("peerReviewed")
|
||||
final String peerReviewedParam,
|
||||
@FormParam("yearFirstPublished")
|
||||
final String yearFirstPublishedParam
|
||||
) {
|
||||
return super.updateProperties(
|
||||
sectionIdentifier,
|
||||
documentPath,
|
||||
languageOfPublicationParam,
|
||||
peerReviewedParam,
|
||||
yearFirstPublishedParam
|
||||
);
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/series")
|
||||
@AuthorizationRequired
|
||||
@Transactional
|
||||
@Override
|
||||
public String addSeries(
|
||||
@PathParam(MvcAuthoringSteps.SECTION_IDENTIFIER_PATH_PARAM)
|
||||
final String sectionIdentifier,
|
||||
@PathParam(MvcAuthoringSteps.DOCUMENT_PATH_PATH_PARAM_NAME)
|
||||
final String documentPath,
|
||||
@FormParam("seriesIdentifier")
|
||||
final String seriesIdentifier,
|
||||
@FormParam("volumeOfSeries")
|
||||
final String volumeOfSeries
|
||||
) {
|
||||
return super.addSeries(
|
||||
sectionIdentifier,
|
||||
documentPath,
|
||||
seriesIdentifier,
|
||||
volumeOfSeries
|
||||
);
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/series/{volumeInSeriesUuid}")
|
||||
@AuthorizationRequired
|
||||
@Transactional(Transactional.TxType.REQUIRED)
|
||||
@Override
|
||||
public String editVolumeInSeries(
|
||||
@PathParam(MvcAuthoringSteps.SECTION_IDENTIFIER_PATH_PARAM)
|
||||
final String sectionIdentifier,
|
||||
@PathParam(MvcAuthoringSteps.DOCUMENT_PATH_PATH_PARAM_NAME)
|
||||
final String documentPath,
|
||||
@PathParam("volumeInSeriesUuid")
|
||||
final String volumeInSeriesUuid,
|
||||
@FormParam("volumeOfSeries")
|
||||
final String volumeOfSeries
|
||||
) {
|
||||
return super.editVolumeInSeries(
|
||||
sectionIdentifier,
|
||||
documentPath,
|
||||
volumeInSeriesUuid,
|
||||
volumeOfSeries
|
||||
);
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/series/{volumeInSeriesUuid}/remove")
|
||||
@AuthorizationRequired
|
||||
@Transactional(Transactional.TxType.REQUIRED)
|
||||
@Override
|
||||
public String removeVolumeInSeries(
|
||||
@PathParam(MvcAuthoringSteps.SECTION_IDENTIFIER_PATH_PARAM)
|
||||
final String sectionIdentifier,
|
||||
@PathParam(MvcAuthoringSteps.DOCUMENT_PATH_PATH_PARAM_NAME)
|
||||
final String documentPath,
|
||||
@PathParam("volumeInSeriesUuid")
|
||||
final String volumeInSeriesUuid
|
||||
) {
|
||||
return super.removeVolumeInSeries(
|
||||
sectionIdentifier,
|
||||
documentPath,
|
||||
volumeInSeriesUuid
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
package org.scientificcms.publications.ui.contenttypes;
|
||||
|
||||
import org.libreccm.l10n.GlobalizationHelper;
|
||||
import org.scientificcms.publications.WorkingPaper;
|
||||
import org.scientificcms.publications.contenttypes.WorkingPaperItem;
|
||||
|
||||
import javax.enterprise.context.RequestScoped;
|
||||
import javax.inject.Inject;
|
||||
import javax.inject.Named;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
@RequestScoped
|
||||
@Named("SciPublicationsWorkingPaperItemCreateStep")
|
||||
public class WorkingPaperItemCreateStep
|
||||
extends AbstractPublicationItemCreateStep<WorkingPaperItem, WorkingPaper>{
|
||||
|
||||
@Inject
|
||||
private GlobalizationHelper globalizationHelper;
|
||||
|
||||
@Override
|
||||
public String getDocumentType() {
|
||||
return WorkingPaperItem.class.getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return globalizationHelper
|
||||
.getLocalizedTextsUtil(getBundle())
|
||||
.getText("workingpaperitem.createstep.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String showCreateStep() {
|
||||
return "org/scientificcms/contenttypes/ui/workingpaper/create-workingpaper.xhtml";
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<WorkingPaperItem> getPublicationItemClass() {
|
||||
return WorkingPaperItem.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
public WorkingPaper createPublication() {
|
||||
return new WorkingPaper();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getEditStepName() {
|
||||
return WorkingPaperPropertiesStep.EDIT_STEP_URL_FRAGMENT;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,305 @@
|
|||
package org.scientificcms.publications.ui.contenttypes;
|
||||
|
||||
import org.libreccm.security.AuthorizationRequired;
|
||||
import org.librecms.ui.contentsections.ContentSectionNotFoundException;
|
||||
import org.librecms.ui.contentsections.documents.DocumentNotFoundException;
|
||||
import org.librecms.ui.contentsections.documents.MvcAuthoringStepDef;
|
||||
import org.librecms.ui.contentsections.documents.MvcAuthoringSteps;
|
||||
import org.scientificcms.publications.Expertise;
|
||||
import org.scientificcms.publications.SciPublicationsConstants;
|
||||
import org.scientificcms.publications.WorkingPaper;
|
||||
import org.scientificcms.publications.contenttypes.WorkingPaperItem;
|
||||
|
||||
import javax.enterprise.context.RequestScoped;
|
||||
import javax.mvc.Controller;
|
||||
import javax.transaction.Transactional;
|
||||
import javax.ws.rs.DefaultValue;
|
||||
import javax.ws.rs.FormParam;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.POST;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.PathParam;
|
||||
|
||||
import static org.scientificcms.publications.ui.contenttypes.ExpertisePropertiesStep.EDIT_STEP_URL_FRAGMENT;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
|
||||
*/
|
||||
@RequestScoped
|
||||
@Path(
|
||||
MvcAuthoringSteps.PATH_PREFIX
|
||||
+ WorkingPaperPropertiesStep.EDIT_STEP_URL_FRAGMENT
|
||||
)
|
||||
@Controller
|
||||
@MvcAuthoringStepDef(
|
||||
bundle = SciPublicationsConstants.BUNDLE,
|
||||
descriptionKey = "authoringsteps.basicproperties.description",
|
||||
labelKey = "authoringsteps.basicproperties.label",
|
||||
supportedDocumentType = WorkingPaperItem.class
|
||||
)
|
||||
public class WorkingPaperPropertiesStep
|
||||
extends AbstractPublicationPropertiesStep<WorkingPaperItem, WorkingPaper> {
|
||||
|
||||
public static final String EDIT_STEP_URL_FRAGMENT
|
||||
= "workingpaper-basicproperties";
|
||||
|
||||
@Override
|
||||
public Class<WorkingPaperPropertiesStep> getStepClass() {
|
||||
return WorkingPaperPropertiesStep.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getEditStepUrlFragment() {
|
||||
return EDIT_STEP_URL_FRAGMENT;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getStepTemplatePath() {
|
||||
return "org/scientificcms/contenttypes/ui/workingpaper/edit-workingpaper.xhtml";
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<WorkingPaper> getPublicationClass() {
|
||||
return WorkingPaper.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(Transactional.TxType.REQUIRED)
|
||||
protected void init() throws ContentSectionNotFoundException,
|
||||
DocumentNotFoundException {
|
||||
super.init();
|
||||
}
|
||||
|
||||
@GET
|
||||
@Path("/")
|
||||
@AuthorizationRequired
|
||||
@Transactional(Transactional.TxType.REQUIRED)
|
||||
@Override
|
||||
public String showStep(
|
||||
@PathParam(MvcAuthoringSteps.SECTION_IDENTIFIER_PATH_PARAM)
|
||||
final String sectionIdentifier,
|
||||
@PathParam(MvcAuthoringSteps.DOCUMENT_PATH_PATH_PARAM_NAME)
|
||||
final String documentPath
|
||||
) {
|
||||
return super.showStep(sectionIdentifier, documentPath);
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/name")
|
||||
@AuthorizationRequired
|
||||
@Transactional(Transactional.TxType.REQUIRED)
|
||||
@Override
|
||||
public String updateName(
|
||||
@PathParam(MvcAuthoringSteps.SECTION_IDENTIFIER_PATH_PARAM)
|
||||
final String sectionIdentifier,
|
||||
@PathParam(MvcAuthoringSteps.DOCUMENT_PATH_PATH_PARAM_NAME)
|
||||
final String documentPath,
|
||||
@FormParam("name") @DefaultValue("")
|
||||
final String name
|
||||
) {
|
||||
return super.updateName(sectionIdentifier, documentPath, name);
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/title/@add")
|
||||
@AuthorizationRequired
|
||||
@Transactional(Transactional.TxType.REQUIRED)
|
||||
@Override
|
||||
public String addTitle(
|
||||
@PathParam(MvcAuthoringSteps.SECTION_IDENTIFIER_PATH_PARAM)
|
||||
final String sectionIdentifier,
|
||||
@PathParam(MvcAuthoringSteps.DOCUMENT_PATH_PATH_PARAM_NAME)
|
||||
final String documentPath,
|
||||
@FormParam("locale") final String localeParam,
|
||||
@FormParam("value") final String value
|
||||
) {
|
||||
return super.addTitle(
|
||||
sectionIdentifier,
|
||||
documentPath,
|
||||
localeParam,
|
||||
value
|
||||
);
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/title/@edit/{locale}")
|
||||
@AuthorizationRequired
|
||||
@Transactional(Transactional.TxType.REQUIRED)
|
||||
@Override
|
||||
public String editTitle(
|
||||
@PathParam(MvcAuthoringSteps.SECTION_IDENTIFIER_PATH_PARAM)
|
||||
final String sectionIdentifier,
|
||||
@PathParam(MvcAuthoringSteps.DOCUMENT_PATH_PATH_PARAM_NAME)
|
||||
final String documentPath,
|
||||
@PathParam("locale") final String localeParam,
|
||||
@FormParam("value") final String value
|
||||
) {
|
||||
return super.editTitle(
|
||||
sectionIdentifier,
|
||||
documentPath,
|
||||
localeParam,
|
||||
value
|
||||
);
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/title/@remove/{locale}")
|
||||
@AuthorizationRequired
|
||||
@Transactional(Transactional.TxType.REQUIRED)
|
||||
@Override
|
||||
public String removeTitle(
|
||||
@PathParam(MvcAuthoringSteps.SECTION_IDENTIFIER_PATH_PARAM)
|
||||
final String sectionIdentifier,
|
||||
@PathParam(MvcAuthoringSteps.DOCUMENT_PATH_PATH_PARAM_NAME)
|
||||
final String documentPath,
|
||||
@PathParam("locale") final String localeParam
|
||||
) {
|
||||
return super.removeTitle(sectionIdentifier, documentPath, localeParam);
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/shortdescription/@add")
|
||||
@Transactional(Transactional.TxType.REQUIRED)
|
||||
@Override
|
||||
public String addShortDescription(
|
||||
@PathParam(MvcAuthoringSteps.SECTION_IDENTIFIER_PATH_PARAM)
|
||||
final String sectionIdentifier,
|
||||
@PathParam(MvcAuthoringSteps.DOCUMENT_PATH_PATH_PARAM_NAME)
|
||||
final String documentPath,
|
||||
@FormParam("locale") final String localeParam,
|
||||
@FormParam("value") final String value
|
||||
) {
|
||||
return super.addShortDescription(
|
||||
sectionIdentifier,
|
||||
documentPath,
|
||||
localeParam,
|
||||
value
|
||||
);
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/shortdescription/@edit/{locale}")
|
||||
@Transactional(Transactional.TxType.REQUIRED)
|
||||
@Override
|
||||
public String editShortDescription(
|
||||
@PathParam(MvcAuthoringSteps.SECTION_IDENTIFIER_PATH_PARAM)
|
||||
final String sectionIdentifier,
|
||||
@PathParam(MvcAuthoringSteps.DOCUMENT_PATH_PATH_PARAM_NAME)
|
||||
final String documentPath,
|
||||
@PathParam("locale") final String localeParam,
|
||||
@FormParam("value") final String value
|
||||
) {
|
||||
return super.editShortDescription(
|
||||
sectionIdentifier,
|
||||
documentPath,
|
||||
localeParam,
|
||||
value
|
||||
);
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/shortdescription/@remove/{locale}")
|
||||
@Transactional(Transactional.TxType.REQUIRED)
|
||||
@Override
|
||||
public String removeShortDescription(
|
||||
@PathParam(MvcAuthoringSteps.SECTION_IDENTIFIER_PATH_PARAM)
|
||||
final String sectionIdentifier,
|
||||
@PathParam(MvcAuthoringSteps.DOCUMENT_PATH_PATH_PARAM_NAME)
|
||||
final String documentPath,
|
||||
@PathParam("locale") final String localeParam
|
||||
) {
|
||||
return super.removeShortDescription(
|
||||
sectionIdentifier,
|
||||
documentPath,
|
||||
localeParam
|
||||
);
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/authors")
|
||||
@AuthorizationRequired
|
||||
@Transactional(Transactional.TxType.REQUIRED)
|
||||
@Override
|
||||
public String addAuthor(
|
||||
@PathParam(MvcAuthoringSteps.SECTION_IDENTIFIER_PATH_PARAM)
|
||||
final String sectionIdentifier,
|
||||
@PathParam(MvcAuthoringSteps.DOCUMENT_PATH_PATH_PARAM_NAME)
|
||||
final String documentPath,
|
||||
@FormParam("authorIdentifier")
|
||||
final String authorIdentifier,
|
||||
@FormParam("editor")
|
||||
final String editorParam
|
||||
) {
|
||||
return super.addAuthor(
|
||||
sectionIdentifier,
|
||||
documentPath,
|
||||
authorIdentifier,
|
||||
editorParam
|
||||
);
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/authors/{authorshipUuid}")
|
||||
@AuthorizationRequired
|
||||
@Transactional(Transactional.TxType.REQUIRED)
|
||||
@Override
|
||||
public String editAuthorship(
|
||||
@PathParam(MvcAuthoringSteps.SECTION_IDENTIFIER_PATH_PARAM)
|
||||
final String sectionIdentifier,
|
||||
@PathParam(MvcAuthoringSteps.DOCUMENT_PATH_PATH_PARAM_NAME)
|
||||
final String documentPath,
|
||||
@PathParam("authorshipUuid")
|
||||
final String authorshipUuid,
|
||||
@FormParam("editor")
|
||||
final String editorParam
|
||||
) {
|
||||
return super.editAuthorship(
|
||||
sectionIdentifier,
|
||||
documentPath,
|
||||
authorshipUuid,
|
||||
editorParam
|
||||
);
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/authors/{authorshipUuid}/remove")
|
||||
@AuthorizationRequired
|
||||
@Transactional(Transactional.TxType.REQUIRED)
|
||||
@Override
|
||||
public String removeAuthorship(
|
||||
@PathParam(MvcAuthoringSteps.SECTION_IDENTIFIER_PATH_PARAM)
|
||||
final String sectionIdentifier,
|
||||
@PathParam(MvcAuthoringSteps.DOCUMENT_PATH_PATH_PARAM_NAME)
|
||||
final String documentPath,
|
||||
@PathParam("authorshipUuid")
|
||||
final String authorshipUuid
|
||||
) {
|
||||
return super.removeAuthorship(
|
||||
sectionIdentifier,
|
||||
documentPath,
|
||||
authorshipUuid
|
||||
);
|
||||
}
|
||||
|
||||
@POST()
|
||||
@Path("/properties")
|
||||
@AuthorizationRequired
|
||||
@Transactional(Transactional.TxType.REQUIRED)
|
||||
@Override
|
||||
public String updateProperties(
|
||||
@PathParam(MvcAuthoringSteps.SECTION_IDENTIFIER_PATH_PARAM)
|
||||
final String sectionIdentifier,
|
||||
@PathParam(MvcAuthoringSteps.DOCUMENT_PATH_PATH_PARAM_NAME)
|
||||
final String documentPath,
|
||||
@FormParam("yearOfPublication")
|
||||
final String yearOfPublicationParam
|
||||
) {
|
||||
return super.updateProperties(
|
||||
sectionIdentifier,
|
||||
documentPath,
|
||||
yearOfPublicationParam
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!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="#{SciPublicationsWorkingPaperItemCreateStep.availableLocales}" />
|
||||
|
||||
<ui:param name="availableWorkflows"
|
||||
value="#{SciPublicationsWorkingPaperItemCreateStep.availableWorkflows}" />
|
||||
|
||||
<ui:param name="contentSection"
|
||||
value="#{SciPublicationsWorkingPaperItemCreateStep.contentSectionLabel}" />
|
||||
|
||||
<ui:param name="createFormSubmitLabel"
|
||||
value="#{SciPublicationsUiMessageBundle['workingpaper.createform.submit']}" />
|
||||
|
||||
<ui:param name="documentType"
|
||||
value="#{SciPublicationsWorkingPaperItemCreateStep.documentType}" />
|
||||
|
||||
<ui:param name="folderPath"
|
||||
value="#{SciPublicationsWorkingPaperCreateStep.folderPath}" />
|
||||
|
||||
<ui:param name="initialLocale"
|
||||
value="#{SciPublicationsWorkingPaperCreateStep.initialLocale}" />
|
||||
|
||||
<ui:param name="messages"
|
||||
value="#{SciPublicationsWorkingPaperCreateStep.messages}" />
|
||||
|
||||
<ui:param name="nameValue"
|
||||
value="#{SciPublicationsWorkingPaperCreateStep.name}" />
|
||||
|
||||
<ui:param name="publicationCreateStepTitle"
|
||||
value="#{SciPublicationsUiMessageBundle['workingpaper.createform.title']}" />
|
||||
|
||||
<ui:param name="selectedWorkflow"
|
||||
value="#{SciPublicationsWorkingPaperCreateStep.selectedWorkflow}" />
|
||||
|
||||
<ui:param name="title"
|
||||
value="#{SciPublicationsWorkingPaperCreateStep.title}" />
|
||||
|
||||
|
||||
</ui:composition>
|
||||
|
||||
</html>
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
<!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:librecms="http://xmlns.jcp.org/jsf/composite/components/librecms"
|
||||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
|
||||
<ui:composition template="/WEB-INF/views/org/scientificcms/contenttypes/ui/edit-publication-with-publisher-extented-properties.xhtml">
|
||||
|
||||
<ui:param name="authoringStep"
|
||||
value="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@workingpaper-extendedproperties" />
|
||||
|
||||
<ui:param name="authoringStepTitle"
|
||||
value="#{SciPublicationsUiMessageBundle.getMessage('workingpaper.extendedproperties.header', [CmsSelectedDocumentModel.itemName])}" />
|
||||
|
||||
<ui:param name="editStepUrlFragement"
|
||||
value="proceedings-extendedproperties" />
|
||||
|
||||
<ui:define name="publicationWithPublisherExtendedPropertiesList">
|
||||
|
||||
</ui:define>
|
||||
|
||||
<ui:define name="publicationWithPublisherExtendedPropertiesFormElements">
|
||||
|
||||
</ui:define>
|
||||
|
||||
<ui:define name="publicationWithPublisherExtendedPropertiesWidgets">
|
||||
|
||||
</ui:define>
|
||||
|
||||
</ui:composition>
|
||||
|
||||
</html>
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
<!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:librecms="http://xmlns.jcp.org/jsf/composite/components/librecms"
|
||||
xmlns:scicms="http://xmlns.jcp.org/jsf/composite/components/scicms"
|
||||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
|
||||
<ui:composition template="/WEB-INF/views/org/scientificcms/contenttypes/ui/edit-publication.xhtml">
|
||||
|
||||
<ui:param name="authoringStep"
|
||||
value="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@workingpaper-basicproperties" />
|
||||
|
||||
<ui:param name="authoringStepTitle"
|
||||
value="#{SciPublicationsUiMessageBundle.getMessage('workingpaper.basicproperties.header', [SciCmsPublicationPropertiesStepModel.name])}" />
|
||||
|
||||
<ui:define name="publicationMessages"></ui:define>
|
||||
|
||||
<ui:define name="publicationBasicPropertiesForm"></ui:define>
|
||||
|
||||
<ui:define name="publicationBasicPropertiesDl"></ui:define>
|
||||
|
||||
<ui:define name="publicationProperties"></ui:define>
|
||||
|
||||
</ui:composition>
|
||||
|
||||
</html>
|
||||
|
||||
|
|
@ -637,3 +637,8 @@ talk.createform.submit=Create Talk
|
|||
talk.createform.title=Create new talk
|
||||
talk.basicproperties.header=Edit basic properties of talk {0}
|
||||
talk.extendedproperties.header=Edit extended properties of talk {0}
|
||||
workingpaperitem.createstep.description=Creates a new working paper.
|
||||
workingpaper.createform.submit=Create working paper
|
||||
workingpaper.createform.title=Create working paper
|
||||
workingpaper.basicproperties.header=Edit basic properties of working paper {0}
|
||||
workingpaper.extendedproperties.header=Edit extended properties of working paper {0}
|
||||
|
|
|
|||
|
|
@ -637,3 +637,8 @@ talk.createform.submit=Vortrag anlegen
|
|||
talk.createform.title=Neuer Vortrag
|
||||
talk.basicproperties.header=Basiseigenschaften des Vortrages {0} bearbeiten
|
||||
talk.extendedproperties.header=Erweiterte Eigenschaften des Vortrages {0} bearbeiten
|
||||
workingpaperitem.createstep.description=Ein neues Arbeitspapier anlegen.
|
||||
workingpaper.createform.submit=Arbeitspapier anlegen
|
||||
workingpaper.createform.title=Arbeitspapier anlegen
|
||||
workingpaper.basicproperties.header=Basiseigenschaften des Arbeitspapieres {0} bearbeiten
|
||||
workingpaper.extendedproperties.header=Erweiterte Eigenschaftes des Arbeitspapieres {0} bearbeiten
|
||||
|
|
|
|||
Loading…
Reference in New Issue