Several bugfixes for the authoring steps of SciProject
parent
8c2ae8bd1d
commit
c34b6bdedb
|
|
@ -147,7 +147,8 @@ public class SciProject extends ContentItem implements Serializable {
|
||||||
private List<Contact> contacts;
|
private List<Contact> contacts;
|
||||||
|
|
||||||
@OneToMany(mappedBy = "project", cascade = CascadeType.ALL)
|
@OneToMany(mappedBy = "project", cascade = CascadeType.ALL)
|
||||||
@OrderBy("member.personName ASC")
|
// @OrderBy("member.personName ASC")
|
||||||
|
@OrderBy("member ASC")
|
||||||
private List<Membership> members;
|
private List<Membership> members;
|
||||||
|
|
||||||
@OneToMany(mappedBy = "project", cascade = CascadeType.ALL)
|
@OneToMany(mappedBy = "project", cascade = CascadeType.ALL)
|
||||||
|
|
|
||||||
|
|
@ -227,6 +227,8 @@ public class SciProjectPropertiesStep extends AbstractMvcAuthoringStep {
|
||||||
getDocument().setDisplayName(name);
|
getDocument().setDisplayName(name);
|
||||||
itemRepo.save(getDocument());
|
itemRepo.save(getDocument());
|
||||||
|
|
||||||
|
updateDocumentPath();
|
||||||
|
|
||||||
return buildRedirectPathForStep();
|
return buildRedirectPathForStep();
|
||||||
} else {
|
} else {
|
||||||
return documentUi.showAccessDenied(
|
return documentUi.showAccessDenied(
|
||||||
|
|
@ -506,7 +508,7 @@ public class SciProjectPropertiesStep extends AbstractMvcAuthoringStep {
|
||||||
* @return A redirect to this authoring step.
|
* @return A redirect to this authoring step.
|
||||||
*/
|
*/
|
||||||
@POST
|
@POST
|
||||||
@Path("/short-description/{locale}")
|
@Path("/short-description/@edit/{locale}")
|
||||||
@Transactional(Transactional.TxType.REQUIRED)
|
@Transactional(Transactional.TxType.REQUIRED)
|
||||||
@AuthorizationRequired
|
@AuthorizationRequired
|
||||||
public String editShortDescription(
|
public String editShortDescription(
|
||||||
|
|
@ -552,7 +554,7 @@ public class SciProjectPropertiesStep extends AbstractMvcAuthoringStep {
|
||||||
* @return A redirect to this authoring step.
|
* @return A redirect to this authoring step.
|
||||||
*/
|
*/
|
||||||
@POST
|
@POST
|
||||||
@Path("/short-description/remove/{locale}")
|
@Path("/short-description/@remove/{locale}")
|
||||||
@Transactional(Transactional.TxType.REQUIRED)
|
@Transactional(Transactional.TxType.REQUIRED)
|
||||||
@AuthorizationRequired
|
@AuthorizationRequired
|
||||||
public String removeShortDescription(
|
public String removeShortDescription(
|
||||||
|
|
|
||||||
|
|
@ -190,7 +190,7 @@
|
||||||
<dl>
|
<dl>
|
||||||
<dt>#{SciProjectMessageBundle['basicproperties.end.label']}</dt>
|
<dt>#{SciProjectMessageBundle['basicproperties.end.label']}</dt>
|
||||||
<dd>
|
<dd>
|
||||||
#{SciProjectPropertiesStep.end}
|
#{SciProjectPropertiesStep.endDate}
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<div aria-hidden="true"
|
<div aria-hidden="true"
|
||||||
|
|
@ -256,7 +256,7 @@
|
||||||
editDialogValueHelp="#{SciProjectMessageBundle['basicproperties.shortdescription.edit.value.help']}"
|
editDialogValueHelp="#{SciProjectMessageBundle['basicproperties.shortdescription.edit.value.help']}"
|
||||||
editDialogValueLabel="#{SciProjectMessageBundle['basicproperties.shortdescription.edit.value.label']}"
|
editDialogValueLabel="#{SciProjectMessageBundle['basicproperties.shortdescription.edit.value.label']}"
|
||||||
editMethod="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@sciproject-basicproperties/short-description/@edit"
|
editMethod="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@sciproject-basicproperties/short-description/@edit"
|
||||||
editorId="title-editor"
|
editorId="summary-editor"
|
||||||
hasUnusedLocales="#{!SciProjectPropertiesStep.unusedShortDescriptionLocales.isEmpty()}"
|
hasUnusedLocales="#{!SciProjectPropertiesStep.unusedShortDescriptionLocales.isEmpty()}"
|
||||||
headingLevel="3"
|
headingLevel="3"
|
||||||
objectIdentifier="#{CmsSelectedDocumentModel.itemPath}"
|
objectIdentifier="#{CmsSelectedDocumentModel.itemPath}"
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,13 @@
|
||||||
name="type"
|
name="type"
|
||||||
/>
|
/>
|
||||||
</librecms:assetPicker>
|
</librecms:assetPicker>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="#{SciProjectDescriptionContacts.contacts.isEmpty()}">
|
||||||
|
<p>#{SciProjectMessageBundle['contacts.none']}</p>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -139,7 +146,8 @@
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
|
||||||
<h3>#{SciProjectMessageBundle['memberships.header']}</h3>
|
<h3>#{SciProjectMessageBundle['memberships.header']}</h3>
|
||||||
<div class="mb-2">
|
<div class="mb-2">
|
||||||
|
|
@ -176,6 +184,11 @@
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</librecms:assetPicker>
|
</librecms:assetPicker>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="#{SciProjectDescriptionMembers.members.isEmpty()}">
|
||||||
|
<p>#{SciProjectMessageBundle['memberships.none']}</p>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -272,6 +285,8 @@
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
|
||||||
</ui:define>
|
</ui:define>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -163,3 +163,11 @@ createform.cancel=Cancel
|
||||||
createform.submit=Create project
|
createform.submit=Create project
|
||||||
createform.summary.help=A summary of the description of the research project.
|
createform.summary.help=A summary of the description of the research project.
|
||||||
createform.summary.label=Summary
|
createform.summary.label=Summary
|
||||||
|
authoringsteps.basicproperties.description=Basic properties of the research project description.
|
||||||
|
authoringsteps.basicproperties.label=Basic properties
|
||||||
|
authoringsteps.projectfunding.description=Information about the the funding of the research project.
|
||||||
|
authoringsteps.projectfunding.label=Funding
|
||||||
|
authoringsteps.projectdescription.description=Detailed description of the research project.
|
||||||
|
authoringsteps.projectdescription.label=Description
|
||||||
|
memberships.none=No memberships assigned yet.
|
||||||
|
contacts.none=No contacts assigned yet.
|
||||||
|
|
|
||||||
|
|
@ -163,3 +163,11 @@ createform.cancel=Abbrechen
|
||||||
createform.submit=Projekt anlegen
|
createform.submit=Projekt anlegen
|
||||||
createform.summary.help=Eine Zusammenfassung der Beschreibung des Forschungsprojektes.
|
createform.summary.help=Eine Zusammenfassung der Beschreibung des Forschungsprojektes.
|
||||||
createform.summary.label=Zusammenfassung
|
createform.summary.label=Zusammenfassung
|
||||||
|
authoringsteps.basicproperties.description=Basiseigenschaften der Beschreibung des Forschungsprojektes.
|
||||||
|
authoringsteps.basicproperties.label=Basiseigenschaften
|
||||||
|
authoringsteps.projectfunding.description=Information about the the funding of the research project.
|
||||||
|
authoringsteps.projectfunding.label=Finanzierung
|
||||||
|
authoringsteps.projectdescription.description=Ausf\u00fchrliche Beschreibung des Forschungsprojektes.
|
||||||
|
authoringsteps.projectdescription.label=Beschreibung
|
||||||
|
memberships.none=Es wurden noch keine Mitglieder hinzugef\u00fcgt.
|
||||||
|
contacts.none=Es wurden noch keine Kontakte hinzugef\u00fcgt.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue