Changeset 251


Ignore:
Timestamp:
06/01/09 16:13:39 (5 years ago)
Author:
david
Message:

synchronizing feeds

Location:
enpraxis.educommons/trunk/enpraxis/educommons/browser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • enpraxis.educommons/trunk/enpraxis/educommons/browser/rss_all_template.pt

    r234 r251  
    4040  <dc:publisher tal:condition="context/portal_metadata/Publisher" tal:content="context/portal_metadata/Publisher">Publisher</dc:publisher>         
    4141  <dc:language tal:content="context/Language" /> 
    42   <dc:rights tal:condition="context/Rights" tal:content="context/Rights">Rights</dc:rights>   
     42  <dc:rights tal:content="python: '%s, %s' % (view.getRightsAndHolder(context)[0], view.getRightsAndHolder(context)[1])">Rights</dc:rights>   
    4343  <tal:comment replace="nothing"> 
    4444    The syndication tool is pretty brain dead and won't let you access the variables 
     
    7070                    objcreators obj_item/Creators; 
    7171                    objcontributors obj_item/Contributors; 
    72                     objsubjects obj_item/Subject">         
     72                    objsubjects obj_item/Subject; 
     73                                                                                objrights python:view.getRightsAndHolder(obj_item)[0]; 
     74                                                                                objrightsholder python:view.getRightsAndHolder(obj_item)[1]">         
    7375    <title tal:content="obj_item/pretty_title_or_id">Title</title>         
    7476    <link tal:content="obj_item/Identifier">Identifier</link>         
     
    8688      <dc:creator tal:content="python: objcreators[0]"/> 
    8789    </tal:block> 
    88     <dc:rights tal:content="obj_item/Rights">Rights</dc:rights>         
     90    <dc:rights tal:content="python: '%s, %s' % (objrights, objrightsholder)">Rights</dc:rights>         
    8991    <dc:language tal:content="obj_item/Language" /> 
    9092    <tal:block tal:condition="python: len(objsubjects) > 1"> 
  • enpraxis.educommons/trunk/enpraxis/educommons/browser/rss_template.pt

    r239 r251  
    3939  <dc:publisher tal:condition="context/portal_metadata/Publisher" tal:content="context/portal_metadata/Publisher">Publisher</dc:publisher>         
    4040  <dc:language tal:content="context/Language" /> 
    41   <dc:rights tal:condition="context/Rights" tal:content="context/Rights">Rights</dc:rights>         
     41  <dc:rights tal:content="python: '%s, %s' % (view.getRightsAndHolder(context)[0], view.getRightsAndHolder(context)[1])">Rights</dc:rights>   
    4242  <tal:comment replace="nothing"> 
    4343    The syndication tool is pretty brain dead and won't let you access the variables 
     
    6969                    objcreators obj_item/Creators; 
    7070                    objcontributors obj_item/Contributors; 
    71                     objsubjects obj_item/Subject">         
     71                    objsubjects obj_item/Subject; 
     72                                                                                objrights python:view.getRightsAndHolder(obj_item)[0]; 
     73                                                                                objrightsholder python:view.getRightsAndHolder(obj_item)[1]">         
    7274    <title tal:content="obj_item/pretty_title_or_id">Title</title>         
    7375    <link tal:content="obj_item/Identifier">Identifier</link>         
    7476    <description tal:content="obj_item/Description">Description</description>         
    75     <cc:license tal:condition="objcclicense" tal:attributes="rdf:resource python:objcclicense[0]"/> 
    7677    <tal:publisher tal:condition="context/portal_metadata/Publisher"> 
    7778      <dc:publisher tal:content="context/portal_metadata/Publisher">Publisher</dc:publisher>         
     
    8788      <dc:creator tal:content="python: objcreators[0]"/> 
    8889    </tal:block> 
    89     <dc:rights tal:condition="obj_item/Rights" tal:content="obj_item/Rights">Rights</dc:rights>         
     90    <tal:block tal:condition="python: len(objcontributors) > 1"> 
     91      <dc:contributor> 
     92        <rdf:bag> 
     93          <rdf:li tal:repeat="item objcontributors"><tal:block tal:replace="item"/></rdf:li> 
     94        </rdf:bag> 
     95      </dc:contributor> 
     96    </tal:block> 
     97    <tal:block tal:condition="python: 1==len(objcontributors)"> 
     98      <dc:contributor tal:content="python: objcontributors[0]"/> 
     99    </tal:block> 
     100    <dc:rights tal:content="python: '%s, %s' % (objrights, objrightsholder)">Rights</dc:rights>         
    90101    <dc:language tal:content="obj_item/Language" /> 
    91102    <tal:block tal:condition="python: len(objsubjects) > 1"> 
     
    99110      <dc:subject tal:content="python: objsubjects[0]"/> 
    100111    </tal:block> 
    101     <tal:block tal:condition="python: len(objcontributors) > 1"> 
    102       <dc:contributor> 
    103         <rdf:bag> 
    104           <rdf:li tal:repeat="item objcontributors"><tal:block tal:replace="item"/></rdf:li> 
    105         </rdf:bag> 
    106       </dc:contributor> 
    107     </tal:block> 
    108     <tal:block tal:condition="python: 1==len(objcontributors)"> 
    109       <dc:contributor tal:content="python: objcontributors[0]"/> 
    110     </tal:block> 
    111112    <dc:date tal:content="python: obj_item.modified().HTML4()">Modification date</dc:date>         
    112113    <dc:type tal:content="obj_item/Type">Type</dc:type> 
    113114    <dc:format tal:content="obj_item/Format">Format</dc:format>     
    114115    <dcterms:isPartOf tal:attributes="rdf:resource python:obj_item.getECParent().absolute_url()" /> 
     116    <cc:license tal:condition="objcclicense" tal:attributes="rdf:resource python:objcclicense[0]"/> 
    115117  </item> 
    116118</tal:block> 
Note: See TracChangeset for help on using the changeset viewer.