diff --git a/ccm-sci-assets-publicationsabout/src/com/arsdigita/cms/contentassets/ui/SciPublicationsAboutExtraXMLGenerator.java b/ccm-sci-assets-publicationsabout/src/com/arsdigita/cms/contentassets/ui/SciPublicationsAboutExtraXMLGenerator.java index e30185647..d7c3c02d1 100644 --- a/ccm-sci-assets-publicationsabout/src/com/arsdigita/cms/contentassets/ui/SciPublicationsAboutExtraXMLGenerator.java +++ b/ccm-sci-assets-publicationsabout/src/com/arsdigita/cms/contentassets/ui/SciPublicationsAboutExtraXMLGenerator.java @@ -83,7 +83,7 @@ public class SciPublicationsAboutExtraXMLGenerator implements ExtraXMLGenerator final Publication discussed, final PageState state) { final XmlGenerator generator = new XmlGenerator(discussed); - generator.setItemElemName("discussedPublication", ""); + generator.setItemElemName("publication", ""); generator.setListMode(true); generator.generateXML(state, parent, ""); } @@ -92,7 +92,7 @@ public class SciPublicationsAboutExtraXMLGenerator implements ExtraXMLGenerator final Publication discussing, final PageState state) { final XmlGenerator generator = new XmlGenerator(discussing); - generator.setItemElemName("discussingPublication", ""); + generator.setItemElemName("publication", ""); generator.setListMode(true); generator.generateXML(state, parent, ""); } diff --git a/ccm-sci-bundle/web/themes/mandalay/lang/de/SciPublications.xml b/ccm-sci-bundle/web/themes/mandalay/lang/de/SciPublications.xml index 13911f247..44719e07e 100644 --- a/ccm-sci-bundle/web/themes/mandalay/lang/de/SciPublications.xml +++ b/ccm-sci-bundle/web/themes/mandalay/lang/de/SciPublications.xml @@ -57,6 +57,8 @@ RIS Als RIS herunterladen + Wird in folgenden Publikationen behandelt + Behandelt folgende Publikationen Bibliotheken Zusammenfassung diff --git a/ccm-sci-bundle/web/themes/mandalay/layout/defaultLayout.xml b/ccm-sci-bundle/web/themes/mandalay/layout/defaultLayout.xml index 7a1e1ba77..fc4b77b9a 100755 --- a/ccm-sci-bundle/web/themes/mandalay/layout/defaultLayout.xml +++ b/ccm-sci-bundle/web/themes/mandalay/layout/defaultLayout.xml @@ -81,6 +81,8 @@ + + diff --git a/ccm-sci-bundle/web/themes/mandalay/scripts/jquery.cookie.js b/ccm-sci-bundle/web/themes/mandalay/scripts/jquery.cookie.js new file mode 100644 index 000000000..927190008 --- /dev/null +++ b/ccm-sci-bundle/web/themes/mandalay/scripts/jquery.cookie.js @@ -0,0 +1,117 @@ +/*! + * jQuery Cookie Plugin v1.4.0 + * https://github.com/carhartl/jquery-cookie + * + * Copyright 2013 Klaus Hartl + * Released under the MIT license + */ +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as anonymous module. + define(['jquery'], factory); + } else { + // Browser globals. + factory(jQuery); + } +}(function ($) { + + var pluses = /\+/g; + + function encode(s) { + return config.raw ? s : encodeURIComponent(s); + } + + function decode(s) { + return config.raw ? s : decodeURIComponent(s); + } + + function stringifyCookieValue(value) { + return encode(config.json ? JSON.stringify(value) : String(value)); + } + + function parseCookieValue(s) { + if (s.indexOf('"') === 0) { + // This is a quoted cookie as according to RFC2068, unescape... + s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\'); + } + + try { + // Replace server-side written pluses with spaces. + // If we can't decode the cookie, ignore it, it's unusable. + s = decodeURIComponent(s.replace(pluses, ' ')); + } catch(e) { + return; + } + + try { + // If we can't parse the cookie, ignore it, it's unusable. + return config.json ? JSON.parse(s) : s; + } catch(e) {} + } + + function read(s, converter) { + var value = config.raw ? s : parseCookieValue(s); + return $.isFunction(converter) ? converter(value) : value; + } + + var config = $.cookie = function (key, value, options) { + + // Write + if (value !== undefined && !$.isFunction(value)) { + options = $.extend({}, config.defaults, options); + + if (typeof options.expires === 'number') { + var days = options.expires, t = options.expires = new Date(); + t.setDate(t.getDate() + days); + } + + return (document.cookie = [ + encode(key), '=', stringifyCookieValue(value), + options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE + options.path ? '; path=' + options.path : '', + options.domain ? '; domain=' + options.domain : '', + options.secure ? '; secure' : '' + ].join('')); + } + + // Read + + var result = key ? undefined : {}; + + // To prevent the for loop in the first place assign an empty array + // in case there are no cookies at all. Also prevents odd result when + // calling $.cookie(). + var cookies = document.cookie ? document.cookie.split('; ') : []; + + for (var i = 0, l = cookies.length; i < l; i++) { + var parts = cookies[i].split('='); + var name = decode(parts.shift()); + var cookie = parts.join('='); + + if (key && key === name) { + // If second argument (value) is a function it's a converter... + result = read(cookie, value); + break; + } + + // Prevent storing a cookie that we couldn't decode. + if (!key && (cookie = read(cookie)) !== undefined) { + result[name] = cookie; + } + } + + return result; + }; + + config.defaults = {}; + + $.removeCookie = function (key, options) { + if ($.cookie(key) !== undefined) { + // Must not alter options, thus extending a fresh object... + $.cookie(key, '', $.extend({}, options, { expires: -1 })); + return true; + } + return false; + }; + +})); diff --git a/ccm-sci-bundle/web/themes/mandalay/scripts/minimize-header.js b/ccm-sci-bundle/web/themes/mandalay/scripts/minimize-header.js new file mode 100644 index 000000000..b04f7b2cd --- /dev/null +++ b/ccm-sci-bundle/web/themes/mandalay/scripts/minimize-header.js @@ -0,0 +1,92 @@ +/** +JavaScript for minimizing/toggling the header image. + +Uses JQuery and the JQuery cookie plugin +*/ + +//Create namespace to avoid possible naming conflicts +var minimizeImage = {}; + +/** +This function is called using the onClick attribute of the image toogle link. + +@param imageClass The (css) class of the div encapsulating the img element +@param linkClass The (css) class assigned to the linkClass +@param minimizeLabel Text to show for the minimize link (image is maximized) +@param maximizeLabel Text to show for the maximize link (image is minimized) +*/ +minimizeImage.minimize = function (imageClass, + linkClass, + minimizeLabel, + maximizeLabel) { + + if ($("." + imageClass + " img.minimized").css("display") == "none") { + //Image is currently maximized, minimized image is not visible + + //Display minimized image + $("." + imageClass + " img.minimized").css("display", "inline"); + //Hide maximized image + $("." + imageClass + " img.maximized").css("display", "none"); + + //Toogle link text to maximizeLabel + $("." + linkClass).removeClass("maximized"); + $("." + linkClass).addClass("minimized"); + $("." + linkClass).text(maximizeLabel); + + //Store status in cookie + $.cookie(imageClass + "Status", 'minimized', { path: "/" }); + } else { + //Image is currently minimized. + //Hide minimized image + $("." + imageClass + " img.minimized").css("display", "none"); + //Show maximized image + $("." + imageClass + " img.maximized").css("display", "inline"); + + //Toogle link text to minimizeLabel + $("." + linkClass).removeClass("minimized"); + $("." + linkClass).addClass("maximized"); + $("." + linkClass).text(minimizeLabel); + + //Store status in cookie + $.cookie(imageClass + "Status", 'maximized', { path: "/" }); + } + + return false; +} + +/** +This function is called by the JavaScript block inserted after the link when the +HTML document is loaded (using JQuery $(document).ready). It restores the +status from a previous visit on the site. +*/ +minimizeImage.restore = function(imageClass, + linkClass, + minimizeLabel, + maximizeLabel) { + + //alert("restoring!"); + + //var status = $.cookie(imageClass + "Status", { path: "/" }); + var status = $.cookie(imageClass + "Status", String); + + //alert("status = " + status); + + if (status == 'minimized') { + $("." + imageClass + " img.minimized").css("display", "inline"); + $("." + imageClass + " img.maximized").css("display", "none"); + + $("." + linkClass).removeClass("maximized"); + $("." + linkClass).addClass("minimized"); + $("." + linkClass).text(maximizeLabel); + + } else { + $("." + imageClass + " img.minimized").css("display", "none"); + $("." + imageClass + " img.maximized").css("display", "inline"); + + $("." + linkClass).removeClass("minimized"); + $("." + linkClass).addClass("maximized"); + $("." + linkClass).text(minimizeLabel); + } + + //alert(imageClass + "Status = " + $.cookie(imageClass + "Status")); +} diff --git a/ccm-sci-bundle/web/themes/mandalay/user/includes/mandalay/layoutParser.xsl b/ccm-sci-bundle/web/themes/mandalay/user/includes/mandalay/layoutParser.xsl index 1686431fe..de91f4d9d 100644 --- a/ccm-sci-bundle/web/themes/mandalay/user/includes/mandalay/layoutParser.xsl +++ b/ccm-sci-bundle/web/themes/mandalay/user/includes/mandalay/layoutParser.xsl @@ -108,6 +108,14 @@ + + + + + + + + diff --git a/ccm-sci-bundle/web/themes/mandalay/user/includes/types/SciPublications.xsl b/ccm-sci-bundle/web/themes/mandalay/user/includes/types/SciPublications.xsl index da430b3a0..44d874057 100644 --- a/ccm-sci-bundle/web/themes/mandalay/user/includes/types/SciPublications.xsl +++ b/ccm-sci-bundle/web/themes/mandalay/user/includes/types/SciPublications.xsl @@ -33,6 +33,7 @@ + diff --git a/ccm-sci-bundle/web/themes/mandalay/user/includes/types/SciPublications/CollectedVolume.xsl b/ccm-sci-bundle/web/themes/mandalay/user/includes/types/SciPublications/CollectedVolume.xsl index f2d3fe074..49829eee8 100644 --- a/ccm-sci-bundle/web/themes/mandalay/user/includes/types/SciPublications/CollectedVolume.xsl +++ b/ccm-sci-bundle/web/themes/mandalay/user/includes/types/SciPublications/CollectedVolume.xsl @@ -516,6 +516,8 @@ + + diff --git a/ccm-sci-bundle/web/themes/mandalay/user/includes/types/SciPublications/publications-about.xsl b/ccm-sci-bundle/web/themes/mandalay/user/includes/types/SciPublications/publications-about.xsl new file mode 100644 index 000000000..9f461c3cd --- /dev/null +++ b/ccm-sci-bundle/web/themes/mandalay/user/includes/types/SciPublications/publications-about.xsl @@ -0,0 +1,123 @@ + +]> + + + + + + + + + + + + + + + + + + + + + +
+ + +

+ + + + +

+
+ +
    + + + +
  • + +
  • +
    +
+ +
+ +
+ +
+ + + + + + + + + + + + + + + +
+ + +

+ + + + +

+
+ +
    + + + +
  • + +
  • +
    +
+ +
+ +
+ +
+ +
\ No newline at end of file