Kleine Korrekturen
git-svn-id: https://svn.libreccm.org/ccm/trunk@1485 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
9652bb2e65
commit
5d6b8e9b9c
|
|
@ -8,7 +8,7 @@ object type PublicPersonalProfile extends ContentPage {
|
||||||
String[0..1] profileUrl = ct_public_personal_profiles.profile_url VARCHAR(256);
|
String[0..1] profileUrl = ct_public_personal_profiles.profile_url VARCHAR(256);
|
||||||
|
|
||||||
String[0..1] position = ct_public_personal_profiles.position VARCHAR(2048);
|
String[0..1] position = ct_public_personal_profiles.position VARCHAR(2048);
|
||||||
String[0..1] researchInterests = ct_public_personal_profiles.research_interests CLOB;
|
String[0..1] interests = ct_public_personal_profiles.interests CLOB;
|
||||||
String[0..1] misc = ct_public_personal_profiles.misc CLOB;
|
String[0..1] misc = ct_public_personal_profiles.misc CLOB;
|
||||||
|
|
||||||
reference key (ct_public_personal_profiles.profile_id);
|
reference key (ct_public_personal_profiles.profile_id);
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ ALTER TABLE ct_public_personal_profiles
|
||||||
ADD COLUMN position VARCHAR(2048);
|
ADD COLUMN position VARCHAR(2048);
|
||||||
|
|
||||||
ALTER TABLE ct_public_personal_profiles
|
ALTER TABLE ct_public_personal_profiles
|
||||||
ADD COLUMN research_interests text;
|
ADD COLUMN interests text;
|
||||||
|
|
||||||
ALTER TABLE ct_public_personal_profiles
|
ALTER TABLE ct_public_personal_profiles
|
||||||
ADD COLUMN misc text;
|
ADD COLUMN misc text;
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ public class PublicPersonalProfile
|
||||||
public static final String PROFILE_URL = "profileUrl";
|
public static final String PROFILE_URL = "profileUrl";
|
||||||
public static final String LINK_LIST_NAME = "publicPersonalProfileNavItems";
|
public static final String LINK_LIST_NAME = "publicPersonalProfileNavItems";
|
||||||
public static final String POSITION = "position";
|
public static final String POSITION = "position";
|
||||||
public static final String RESEARCH_INTERESTS = "researchInterests";
|
public static final String INTERESTS = "interests";
|
||||||
public static final String MISC = "misc";
|
public static final String MISC = "misc";
|
||||||
public static final String BASE_DATA_OBJECT_TYPE =
|
public static final String BASE_DATA_OBJECT_TYPE =
|
||||||
"com.arsdigita.cms.contenttypes.PublicPersonalProfile";
|
"com.arsdigita.cms.contenttypes.PublicPersonalProfile";
|
||||||
|
|
@ -145,11 +145,11 @@ public class PublicPersonalProfile
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getResearchInterests() {
|
public String getResearchInterests() {
|
||||||
return (String) get(RESEARCH_INTERESTS);
|
return (String) get(INTERESTS);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setResearchInterests(final String researchInterests) {
|
public void setResearchInterests(final String researchInterests) {
|
||||||
set(RESEARCH_INTERESTS, researchInterests);
|
set(INTERESTS, researchInterests);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getMisc() {
|
public String getMisc() {
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,12 @@ import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
||||||
* @author Jens Pelzetter
|
* @author Jens Pelzetter
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public class PublicPersonalProfileResearchInterestsEditStep
|
public class PublicPersonalProfileResearchInterestsEditForm
|
||||||
extends BasicItemForm
|
extends BasicItemForm
|
||||||
implements FormProcessListener,
|
implements FormProcessListener,
|
||||||
FormInitListener {
|
FormInitListener {
|
||||||
|
|
||||||
public PublicPersonalProfileResearchInterestsEditStep(
|
public PublicPersonalProfileResearchInterestsEditForm(
|
||||||
final ItemSelectionModel itemModel) {
|
final ItemSelectionModel itemModel) {
|
||||||
super("PublicPersonalProfileEditResearchInterests",
|
super("PublicPersonalProfileEditResearchInterests",
|
||||||
itemModel);
|
itemModel);
|
||||||
|
|
@ -37,7 +37,7 @@ public class PublicPersonalProfileResearchInterestsEditStep
|
||||||
"publicpersonalprofile.ui.research_interests")));
|
"publicpersonalprofile.ui.research_interests")));
|
||||||
final ParameterModel riParam =
|
final ParameterModel riParam =
|
||||||
new StringParameter(
|
new StringParameter(
|
||||||
PublicPersonalProfile.RESEARCH_INTERESTS);
|
PublicPersonalProfile.INTERESTS);
|
||||||
final TextArea researchInterests = new CMSDHTMLEditor(riParam);
|
final TextArea researchInterests = new CMSDHTMLEditor(riParam);
|
||||||
researchInterests.setCols(75);
|
researchInterests.setCols(75);
|
||||||
researchInterests.setRows(16);
|
researchInterests.setRows(16);
|
||||||
|
|
@ -52,7 +52,7 @@ public class PublicPersonalProfileResearchInterestsEditStep
|
||||||
(PublicPersonalProfile) getItemSelectionModel().
|
(PublicPersonalProfile) getItemSelectionModel().
|
||||||
getSelectedItem(state);
|
getSelectedItem(state);
|
||||||
|
|
||||||
data.put(PublicPersonalProfile.RESEARCH_INTERESTS,
|
data.put(PublicPersonalProfile.INTERESTS,
|
||||||
profile.getResearchInterests());
|
profile.getResearchInterests());
|
||||||
|
|
||||||
setVisible(state, true);
|
setVisible(state, true);
|
||||||
|
|
@ -71,7 +71,7 @@ public class PublicPersonalProfileResearchInterestsEditStep
|
||||||
if ((profile != null)
|
if ((profile != null)
|
||||||
&& getSaveCancelSection().getSaveButton().isSelected(state)) {
|
&& getSaveCancelSection().getSaveButton().isSelected(state)) {
|
||||||
profile.setResearchInterests((String) data.get(
|
profile.setResearchInterests((String) data.get(
|
||||||
PublicPersonalProfile.RESEARCH_INTERESTS));
|
PublicPersonalProfile.INTERESTS));
|
||||||
|
|
||||||
profile.save();
|
profile.save();
|
||||||
}
|
}
|
||||||
|
|
@ -35,7 +35,8 @@ public class PublicPersonalProfileResearchInterestsStep extends SimpleEditStep {
|
||||||
super(itemModel, parent, prefix);
|
super(itemModel, parent, prefix);
|
||||||
|
|
||||||
final BasicItemForm editRiForm =
|
final BasicItemForm editRiForm =
|
||||||
new PublicPersonalProfileMiscEditForm(itemModel);
|
new PublicPersonalProfileResearchInterestsEditForm
|
||||||
|
(itemModel);
|
||||||
add(EDIT_RI_SHEET_NAME, (String) PublicPersonalProfileGlobalizationUtil.
|
add(EDIT_RI_SHEET_NAME, (String) PublicPersonalProfileGlobalizationUtil.
|
||||||
globalize("publicpersonalprofile.ui.research_interests.edit").
|
globalize("publicpersonalprofile.ui.research_interests.edit").
|
||||||
localize(),
|
localize(),
|
||||||
|
|
@ -52,7 +53,7 @@ public class PublicPersonalProfileResearchInterestsStep extends SimpleEditStep {
|
||||||
|
|
||||||
sheet.add(PublicPersonalProfileGlobalizationUtil.globalize(
|
sheet.add(PublicPersonalProfileGlobalizationUtil.globalize(
|
||||||
"publicpersonalprofile.ui.research_interests"),
|
"publicpersonalprofile.ui.research_interests"),
|
||||||
PublicPersonalProfile.RESEARCH_INTERESTS);
|
PublicPersonalProfile.INTERESTS);
|
||||||
|
|
||||||
return sheet;
|
return sheet;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue