lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andr...@apache.org
Subject cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/publication PageEnvelope.java
Date Thu, 21 Aug 2003 12:18:45 GMT
andreas     2003/08/21 05:18:45

  Modified:    src/java/org/apache/lenya/cms/cocoon/components/modules/input
                        PageEnvelopeModule.java
               src/java/org/apache/lenya/cms/publication PageEnvelope.java
  Log:
  added DOCUMENT_LANGUAGES_CSV
  
  Revision  Changes    Path
  1.23      +11 -1     cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/components/modules/input/PageEnvelopeModule.java
  
  Index: PageEnvelopeModule.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/components/modules/input/PageEnvelopeModule.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- PageEnvelopeModule.java	19 Aug 2003 12:27:56 -0000	1.22
  +++ PageEnvelopeModule.java	21 Aug 2003 12:18:45 -0000	1.23
  @@ -138,6 +138,16 @@
                   value = envelope.getDocument().getLanguage();
   			} else if (name.equals(PageEnvelope.DOCUMENT_LANGUAGES)) {
   				value = envelope.getDocument().getLanguages();
  +            } else if (name.equals(PageEnvelope.DOCUMENT_LANGUAGES_CSV)) {
  +                String[] languages = envelope.getDocument().getLanguages();
  +                String csv = "";
  +                for (int i = 0; i < languages.length; i++) {
  +                    if (i > 0) {
  +                        csv += ",";
  +                    }
  +                    csv += languages[i];
  +                }
  +                value = csv;
               } else if (name.equals(PageEnvelope.DOCUMENT_DC_TITLE)) {
                   value = envelope.getDocument().getDublinCore().getTitle();
               } else if (name.equals(PageEnvelope.DOCUMENT_DC_CREATOR)) {
  
  
  
  1.43      +3 -1      cocoon-lenya/src/java/org/apache/lenya/cms/publication/PageEnvelope.java
  
  Index: PageEnvelope.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/publication/PageEnvelope.java,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- PageEnvelope.java	19 Aug 2003 12:27:56 -0000	1.42
  +++ PageEnvelope.java	21 Aug 2003 12:18:45 -0000	1.43
  @@ -85,6 +85,7 @@
       public static final String DOCUMENT_PATH = "document-path";
       public static final String DOCUMENT_LANGUAGE = "document-language";
   	public static final String DOCUMENT_LANGUAGES = "document-languages";
  +    public static final String DOCUMENT_LANGUAGES_CSV = "document-languages-csv";
       public static final String DOCUMENT_DC_TITLE = "document-dc-title";
       public static final String DOCUMENT_DC_CREATOR = "document-dc-creator";
       public static final String DOCUMENT_DC_SUBJECT = "document-dc-subject";
  @@ -275,6 +276,7 @@
                   PageEnvelope.DEFAULT_LANGUAGE,
                   PageEnvelope.DOCUMENT_LANGUAGE,
                   PageEnvelope.DOCUMENT_LANGUAGES,
  +                PageEnvelope.DOCUMENT_LANGUAGES_CSV,
                   PageEnvelope.DOCUMENT_DC_TITLE,
                   PageEnvelope.DOCUMENT_DC_CREATOR,
                   PageEnvelope.DOCUMENT_DC_PUBLISHER,
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org


Mime
View raw message