Erster Teil für die PersonalInformationPage
git-svn-id: https://svn.libreccm.org/ccm/trunk@982 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
f88c10384f
commit
a9212fcaaf
|
|
@ -625,6 +625,12 @@ public class Folder extends ContentItem {
|
|||
/**
|
||||
* Convenience Constructor that always sorts the collection
|
||||
* by isFolder and ID
|
||||
*
|
||||
* jensp 2011-06: I changed this because this silly sorting affects
|
||||
* the ItemSearchWidget and makes it pretty useless... I've not noticed
|
||||
* any negative effects, so it seams no problem. Sorting is now set by
|
||||
* the caller/user of the {@code ItemCollection}.
|
||||
*
|
||||
* @param query the Data Query to use to retrieve the collection
|
||||
*/
|
||||
public ItemCollection(DataQuery query) {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,32 @@
|
|||
<?xml version="1.0"?>
|
||||
<ccm:application xmlns:ccm="http://ccm.redhat.com/ccm-project"
|
||||
name="ccm-sci-personalinformationpage"
|
||||
prettyName="OpenCCM Content Type"
|
||||
version="6.6.1"
|
||||
release="1"
|
||||
webapp="ROOT">
|
||||
<ccm:dependencies>
|
||||
<ccm:requires name="ccm-core" version="6.6.0" release="ge"/>
|
||||
<ccm:requires name="ccm-cms" version="6.6.0" release="ge"/>
|
||||
<ccm:requires name="ccm-sci-types-organization" version="6.6.0" relation="ge"/>
|
||||
<ccm:requires name="ccm-sci-types-organizationwithpublications" version="6.6.0" relation="ge"/>
|
||||
<ccm:requires name="ccm-sci-publications" version="6.6.0" relation="ge"/>
|
||||
</ccm:dependencies>
|
||||
<ccm:directories>
|
||||
<ccm:directory name="pdl"/>
|
||||
<ccm:directory name="sql"/>
|
||||
<ccm:directory name="src"/>
|
||||
</ccm:directories>
|
||||
<ccm:contacts>
|
||||
<ccm:contact uri="http://www.redhat.com/software/rhea" type="website"/>
|
||||
<ccm:contact uri="mailto:rhea@redhat.com" type="support"/>
|
||||
</ccm:contacts>
|
||||
<ccm:description>
|
||||
Aggreates informations about a SciMember item. In the content center it provides
|
||||
a form for editing the contact associates with the SciMember item. Also a form
|
||||
is provided to link articles or other content items with a person. The view is
|
||||
provided by an special content panel for SciMember which has to be added
|
||||
to the template of the SciMember content type (an example JSP is provided
|
||||
with this module).
|
||||
</ccm:description>
|
||||
</ccm:application>
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
model com.arsdigita.cms.contenttypes;
|
||||
|
||||
import com.arsdigita.kernel.ACSObject;
|
||||
import com.arsdigita.cms.*;
|
||||
|
||||
object type PersonalInformationPage extends ContentPage {
|
||||
|
||||
|
||||
reference key (ct_personal_information_pages.personal_information_page_id);
|
||||
}
|
||||
|
||||
association {
|
||||
|
||||
PersonalInformationPage[0..n] personalInformationPage = join ct_sciorga_members.member_id
|
||||
to ct_personal_information_page_owner_map.owner_id,
|
||||
join ct_personal_information_page_owner_map.personal_information_page_id
|
||||
to ct_personal_information_pages.personal_information_page_id;
|
||||
|
||||
SciMember[0..n] owner = join ct_personal_information_pages.personal_information_page_id
|
||||
to ct_personal_information_page_owner_map.personal_information_page_id,
|
||||
join ct_personal_information_page_owner_map.owner_id
|
||||
to ct_sciorga_members.member_id
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
begin;
|
||||
\i ddl/postgres/create.sql
|
||||
\i ddl/postgres/deferred.sql
|
||||
end;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<registry>
|
||||
<!--
|
||||
<config class="com.arsdigita.cms.contenttypes.SciPersonalInformationPageConfig"
|
||||
storage="ccm-sci-personalinformationpage.properties"/>
|
||||
-->
|
||||
</registry>
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
<load>
|
||||
<requries>
|
||||
<table name="inits"/>
|
||||
<table name="acs_objects"/>
|
||||
<table name="cms_items"/>
|
||||
<table name="ct_sciorga_organizations"/>
|
||||
<table name="ct_sciorga_organizations_with_publications"/>
|
||||
<table name="ct_sciorga_departments"/>
|
||||
<table name="ct_sciorga_projects"/>
|
||||
<table name="ct_publications"/>
|
||||
<initalizer class="com.arsdigita.cms.Initializer"/>
|
||||
<initalizer class="com.arsdigita.cms.contenttypes.PublicationInitializer"/>
|
||||
<initalizer class="com.arsdigita.cms.contenttypes.SciOrganizationInitializer"/>
|
||||
<initalizer class="com.arsdigita.cms.contenttypes.SciOrganizationWithPublicationsInitializer"/>
|
||||
<initalizer class="com.arsdigita.cms.contenttypes.SciDepartmentInitializer"/>
|
||||
<initalizer class="com.arsdigita.cms.contenttypes.SciProjectInitializer"/>
|
||||
</requires>
|
||||
<provides>
|
||||
<initalizer class="com.arsdigita.cms.contnenttypes.SciPersonalInformationPageInizalizer/>
|
||||
</provides>
|
||||
<scripts>
|
||||
<schema directory="ccm-sci-personalinformationpage"/>
|
||||
<data class="com.arsdigita.cms.contnenttypes.SciPersonalInformationPageLoader"/>
|
||||
</scripts>
|
||||
</load>
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE stylesheet [
|
||||
<!ENTITY nbsp " " ><!-- no-break space = non-breaking space, U+00A0 ISOnum -->
|
||||
]>
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:cms="http://www.arsdigita.com/cms/1.0"
|
||||
version="1.0">
|
||||
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.SciPersonalInformationPage']" mode="cms:CT_graphics"
|
||||
name="cms:CT_graphics_com_arsdigita_cms_contenttypes_SciPersonalInformationPage">
|
||||
<p><xsl:value-of select="./name"/></p>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.SciPersonalInformationPage']" mode="cms:CT_text"
|
||||
name="cms:CT_text_com_arsdigita_cms_contenttypes_SciPersonalInformationPage">
|
||||
<p><xsl:value-of select="./name"/></p>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
Loading…
Reference in New Issue