From 653933bb74e3beb1a6e070705dbec8bc768202d5 Mon Sep 17 00:00:00 2001 From: jensp Date: Fri, 10 Apr 2015 18:42:41 +0000 Subject: [PATCH] - Fixed a typo in PDL-Query in ccm-sci-types-project - Foundry support for ccm-sci-types-institute and ccm-sci-types-department git-svn-id: https://svn.libreccm.org/ccm/trunk@3332 8810af33-2d31-482b-a856-94f89814c4df --- .../lib/template-tags/content-items.xsl | 2 + .../template-tags/content-items/contact.xsl | 4 +- .../content-items/generic-orgaunit.xsl | 27 +++++-- .../content-items/scidepartment.xsl | 59 ++++++++++++++++ .../content-items/sciinstitute.xsl | 70 +++++++++++++++++++ .../arsdigita/content-types/SciProject.pdl | 2 +- 6 files changed, 156 insertions(+), 8 deletions(-) create mode 100644 ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/scidepartment.xsl create mode 100644 ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/sciinstitute.xsl diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl index 94b2e263b..84c87b843 100644 --- a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl +++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl @@ -41,6 +41,8 @@ + + diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/contact.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/contact.xsl index 22314b883..bde4d1516 100644 --- a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/contact.xsl +++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/contact.xsl @@ -108,9 +108,9 @@ - + - + + select="$contentitem-tree/orgaUnitTabs/availableTabs/*[@selected='true']/@label"/> - + @@ -143,7 +143,7 @@ - + @@ -152,7 +152,7 @@ - + @@ -161,7 +161,24 @@ - + + + + + + + + + + + + + diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/scidepartment.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/scidepartment.xsl new file mode 100644 index 000000000..cd4860fcc --- /dev/null +++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/scidepartment.xsl @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/sciinstitute.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/sciinstitute.xsl new file mode 100644 index 000000000..f96088673 --- /dev/null +++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/sciinstitute.xsl @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ccm-sci-types-project/pdl/com/arsdigita/content-types/SciProject.pdl b/ccm-sci-types-project/pdl/com/arsdigita/content-types/SciProject.pdl index 17a7d0bb3..b96157319 100644 --- a/ccm-sci-types-project/pdl/com/arsdigita/content-types/SciProject.pdl +++ b/ccm-sci-types-project/pdl/com/arsdigita/content-types/SciProject.pdl @@ -50,7 +50,7 @@ query getIdsOfProjectsOfOrgaUnit { cms_orgaunits_hierarchy_map.superior_orgaunit_id from ct_sci_project_bundles join cms_items on ct_sci_project_bundles.bundle_id = cms_items.item_id - join cms_orgunits_hierarchy_map on ct_sci_project_bundles.bundle_id = cms_orgaunits_hierarchy_map.subordinate_orgaunit_id + join cms_orgaunits_hierarchy_map on ct_sci_project_bundles.bundle_id = cms_orgaunits_hierarchy_map.subordinate_orgaunit_id where cms_orgaunits_hierarchy_map.assoc_type = 'ProjectOf' and cms_orgaunits_hierarchy_map.superior_orgaunit_id in :orgaunitIds } map {