- If set to true the path in the src is used as it is.
+ The origin attribute determines the how the path provided in the
+ src attribute is interpreted. The following values are interpreted:
+
+
absolute
+
+ The path is interpreted as absolute path and is not processed by Foundry.
+
+
internal
+
+ The script is loaded from the internal (foundry/scripts)
+ scripts directory.
+
+
theme
+
+ This is default which is also used when the the origin
+ attribute is not present. The script is loaded from the scripts
+ directory of the theme.
+
+
-
+
- The path of the script to include. If the absolute> attribute is not
- set (or not set to true the path is interpreted relative to the
+ The path of the script to include. If the origin attribute is not
+ set (or not set to absolute the path is interpreted relative to the
theme directory. For example the path of a script included using
@@ -2002,10 +2020,10 @@
network.
-
+
- The type of the script. Usally this is text/javascript. If the attribute
- is not set in the layout template, it is automatically set to
+ The type of the script. Usally this is text/javascript. If the
+ attribute is not set in the layout template, it is automatically set to
text/javascript.
@@ -2036,17 +2054,21 @@
-
-
-
+
+
diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/scripts/category-step.js b/ccm-sci-bundle/web/themes/foundry/foundry/scripts/category-step.js
new file mode 100644
index 000000000..ce1436d27
--- /dev/null
+++ b/ccm-sci-bundle/web/themes/foundry/foundry/scripts/category-step.js
@@ -0,0 +1,137 @@
+/*
+ Copyright: 2006, 2007, 2008 Sören Bernstein
+
+ This file is part of Mandalay.
+
+ Mandalay is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+
+ Mandalay is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Mandalay. If not, see .
+*/
+
+/* DE
+ Diese Funktionen sind Teil der AJAX-Seite zum Zuweisen der Kategorien.
+*/
+
+/* EN
+ These functions are part of the ajax-pages to assign categories.
+*/
+
+// DE Lade einen Kategorienzweig nach, wenn dieser aufgeklappt wird
+// EN Loading a branch of categories when it is expanded
+function catBranchToggle(id, selCats) {
+ var elToggleTreeImage = document.getElementById("catTreeToggleImage" + id);
+ var elBranch = document.getElementById("catBranch" + id);
+
+ if(elBranch.style.display == "" || elBranch.style.display == "none") {
+ if(elBranch.innerHTML == "" || elBranch.innerHTML == "...") {
+ elBranch.innerHTML = "...";
+ elBranch.style.display = "block";
+ $(elBranch).load("load-cat.jsp", "nodeID=" + id + "&selectedCats=" + selCats);
+ } else {
+ elBranch.style.display = "block";
+ }
+ elToggleTreeImage.src = elToggleTreeImage.src.replace("Expand", "Collapse");
+ elToggleTreeImage.alt = "[-]";
+ } else {
+ elBranch.style.display = "none";
+ elToggleTreeImage.src = elToggleTreeImage.src.replace("Collapse", "Expand");
+ elToggleTreeImage.alt = "[+]";
+ }
+ return false;
+}
+
+// DE Wechselt die Ansicht eines Kategorienzweiges
+// EN Toggles display of a branch of categories
+function catToggle(id, selCats) {
+ var elToggleTreeImage = document.getElementById("catTreeToggleImage" + id);
+ var elBranch = document.getElementById("catBranch" + id);
+
+ if(elBranch.style.display == "" || elBranch.style.display == "none") {
+ elBranch.style.display = "block";
+ elToggleTreeImage.src = elToggleTreeImage.src.replace("Expand", "Collapse");
+ elToggleTreeImage.alt = "[-]";
+ } else {
+ elBranch.style.display = "none";
+ elToggleTreeImage.src = elToggleTreeImage.src.replace("Collapse", "Expand");
+ elToggleTreeImage.alt = "[+]";
+ }
+ return false;
+}
+
+// DE Wählt eine Kategorie aus
+// EN Select a category
+function catSelect(id) {
+ var elWidgetHidden = document.getElementById("catWdHd");
+
+ var found = 0;
+
+ for(var i = 0; i < elWidgetHidden.options.length && found == 0; i++) {
+ if(elWidgetHidden.options[i].value == id) {
+ found = 1;
+ }
+ }
+
+ if(! found) {
+ var optHidden = new Option('add ' + id, id, false, true);
+ elWidgetHidden.options[elWidgetHidden.options.length] = optHidden;
+ }
+
+ // DE Ändere den Link
+ // EN Change link
+ var elToggleLink = document.getElementById("catToggleLink" + id);
+ elToggleLink.removeAttribute("onclick");
+ elToggleLink.setAttribute("onclick", "catDeselect('" + id + "');");
+
+ // DE Ändere das Icon
+ // EN Change image
+ var elToggleImage = document.images["catToggleImage" + id];
+ elToggleImage.src = elToggleImage.src.replace("Unselected", "Selected");
+ elToggleImage.alt = "[X]";
+
+ return false;
+}
+
+// DE Macht eine Auswahl rückgängig
+// EN Deselect a category
+function catDeselect(id) {
+ var elWidgetHidden = document.getElementById("catWdHd");
+
+ var found = 0;
+
+ for(var i = 0; i < elWidgetHidden.options.length; i++) {
+ if(elWidgetHidden.options[i].value == id) {
+ if(elWidgetHidden.options[i].text == id) {
+ found = 1;
+ }
+ elWidgetHidden.removeChild(elWidgetHidden.options[i]);
+ }
+ }
+
+ if (found) {
+ var optHidden = new Option('del ' + id, id, false, true);
+ elWidgetHidden.options[elWidgetHidden.options.length] = optHidden;
+ }
+
+// DE Ändert den Link
+ // EN Change link
+ var elToggleLink = document.getElementById("catToggleLink" + id);
+ elToggleLink.removeAttribute("onclick");
+ elToggleLink.setAttribute("onclick", "catSelect('" + id + "');");
+
+ // DE Ändert das Icon
+ // EN Change image
+ var elToggleImage = document.images["catToggleImage" + id];
+ elToggleImage.src = elToggleImage.src.replace("Selected", "Unselected");
+ elToggleImage.alt = "[ ]";
+
+ return false;
+}
diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/templates/admin-layout.xml b/ccm-sci-bundle/web/themes/foundry/foundry/templates/admin-layout.xml
index 2cef00520..6614d49c4 100644
--- a/ccm-sci-bundle/web/themes/foundry/foundry/templates/admin-layout.xml
+++ b/ccm-sci-bundle/web/themes/foundry/foundry/templates/admin-layout.xml
@@ -7,6 +7,8 @@
+
+
@@ -56,12 +58,12 @@
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/texts/cms.xml b/ccm-sci-bundle/web/themes/foundry/foundry/texts/cms.xml
index 1dfb294cd..77b992bfd 100644
--- a/ccm-sci-bundle/web/themes/foundry/foundry/texts/cms.xml
+++ b/ccm-sci-bundle/web/themes/foundry/foundry/texts/cms.xml
@@ -4,4 +4,22 @@
WillkommenWelcome
+
+
+ Kategorienzuweisen bearbeiten
+ Edit assigned categories
+
+
+
+ Kategoriezuweisung ändern
+ Change associated categories
+
+
+ Es sind keine Kategorien dieses Kontextes zugewiesen
+ There are no categories assigned in this context.
+
+
+ Zuweisung aufheben
+ Remove assignment
+
\ No newline at end of file