From a366c1de7695fac1c04873764bff528dd540bb06 Mon Sep 17 00:00:00 2001 From: jensp Date: Mon, 30 Sep 2013 05:37:04 +0000 Subject: [PATCH] Added an additional field to ContentItem which is used in the FolderBrowser in the ContentCenter to display additional informations about the content item. For example, it would be very helpful for authors to see the authors of a publications in the FolderBrowser. An upgrade for the publication module providing this informations for existing applications is included. New publications will set this information automatically. git-svn-id: https://svn.libreccm.org/ccm/trunk@2328 8810af33-2d31-482b-a856-94f89814c4df --- ccm-cms/application.xml | 2 +- .../arsdigita/content-section/ContentItem.pdl | 2 + .../arsdigita/content-section/ContentPage.pdl | 8 ++-- ccm-cms/src/ccm-cms.upgrade | 4 ++ .../com/arsdigita/cms/CMSResources.properties | 1 + .../arsdigita/cms/CMSResources_de.properties | 1 + .../cms/CMSResources_en_GB.properties | 1 + .../arsdigita/cms/CMSResources_fr.properties | 1 + .../src/com/arsdigita/cms/ContentItem.java | 9 ++++ .../ui/folder/CMSFolderResources.properties | 1 + .../folder/CMSFolderResources_de.properties | 1 + .../folder/CMSFolderResources_fr.properties | 1 + .../cms/ui/folder/FolderBrowser.java | 25 ++++++----- ccm-sci-publications/application.xml | 4 +- .../src/ccm-sci-publications.upgrade | 5 ++- .../cms/contenttypes/Publication.java | 1 + .../cms/contenttypes/PublicationBundle.java | 1 + .../SciPublicationsUpgrade665to666.java | 44 +++++++++++++++++++ 18 files changed, 94 insertions(+), 18 deletions(-) create mode 100644 ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/SciPublicationsUpgrade665to666.java diff --git a/ccm-cms/application.xml b/ccm-cms/application.xml index 015c5077c..0fabd046e 100755 --- a/ccm-cms/application.xml +++ b/ccm-cms/application.xml @@ -2,7 +2,7 @@ diff --git a/ccm-cms/pdl/com/arsdigita/content-section/ContentItem.pdl b/ccm-cms/pdl/com/arsdigita/content-section/ContentItem.pdl index ea68197b5..96bb57425 100755 --- a/ccm-cms/pdl/com/arsdigita/content-section/ContentItem.pdl +++ b/ccm-cms/pdl/com/arsdigita/content-section/ContentItem.pdl @@ -38,6 +38,8 @@ object type ContentItem extends VersionedACSObject { // a 'connect by' statement. String[0..1] ancestors = cms_items.ancestors VARCHAR(3209); + String[0..1] additionalInfo = cms_items.additional_info VARCHAR(1024); + reference key (cms_items.item_id); // Basic auditing info for content items diff --git a/ccm-cms/pdl/com/arsdigita/content-section/ContentPage.pdl b/ccm-cms/pdl/com/arsdigita/content-section/ContentPage.pdl index 60b4f193c..6ee5048e7 100755 --- a/ccm-cms/pdl/com/arsdigita/content-section/ContentPage.pdl +++ b/ccm-cms/pdl/com/arsdigita/content-section/ContentPage.pdl @@ -15,7 +15,7 @@ // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// $Id: ContentPage.pdl 1263 2006-07-17 08:18:47Z cgyg9330 $ +// $Id: ContentPage.pdl 1263 2006-07-17 08:18:47Z cgyg9330 $ // $DateTime: 2004/08/17 23:15:09 $ model com.arsdigita.cms; @@ -26,9 +26,9 @@ object type ContentPage extends ContentItem { String[0..1] title = cms_pages.title VARCHAR(1000); Date[0..1] launchDate = cms_pages.launch_date DATE; - // would have used description as attribute name, but existing subtypes - // use that name - String[0..1] pageDescription = cms_pages.description VARCHAR(4000); + // would have used description as attribute name, but existing subtypes + // use that name + String[0..1] pageDescription = cms_pages.description VARCHAR(4000); reference key (cms_pages.item_id); } diff --git a/ccm-cms/src/ccm-cms.upgrade b/ccm-cms/src/ccm-cms.upgrade index 68f777d85..7bc93a73c 100755 --- a/ccm-cms/src/ccm-cms.upgrade +++ b/ccm-cms/src/ccm-cms.upgrade @@ -73,4 +73,8 @@