Changeset 251
- Timestamp:
- 06/01/09 16:13:39 (4 years ago)
- Location:
- enpraxis.educommons/trunk/enpraxis/educommons/browser
- Files:
-
- 2 edited
-
rss_all_template.pt (modified) (3 diffs)
-
rss_template.pt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
enpraxis.educommons/trunk/enpraxis/educommons/browser/rss_all_template.pt
r234 r251 40 40 <dc:publisher tal:condition="context/portal_metadata/Publisher" tal:content="context/portal_metadata/Publisher">Publisher</dc:publisher> 41 41 <dc:language tal:content="context/Language" /> 42 <dc:rights tal:con dition="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> 43 43 <tal:comment replace="nothing"> 44 44 The syndication tool is pretty brain dead and won't let you access the variables … … 70 70 objcreators obj_item/Creators; 71 71 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]"> 73 75 <title tal:content="obj_item/pretty_title_or_id">Title</title> 74 76 <link tal:content="obj_item/Identifier">Identifier</link> … … 86 88 <dc:creator tal:content="python: objcreators[0]"/> 87 89 </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> 89 91 <dc:language tal:content="obj_item/Language" /> 90 92 <tal:block tal:condition="python: len(objsubjects) > 1"> -
enpraxis.educommons/trunk/enpraxis/educommons/browser/rss_template.pt
r239 r251 39 39 <dc:publisher tal:condition="context/portal_metadata/Publisher" tal:content="context/portal_metadata/Publisher">Publisher</dc:publisher> 40 40 <dc:language tal:content="context/Language" /> 41 <dc:rights tal:con dition="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> 42 42 <tal:comment replace="nothing"> 43 43 The syndication tool is pretty brain dead and won't let you access the variables … … 69 69 objcreators obj_item/Creators; 70 70 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]"> 72 74 <title tal:content="obj_item/pretty_title_or_id">Title</title> 73 75 <link tal:content="obj_item/Identifier">Identifier</link> 74 76 <description tal:content="obj_item/Description">Description</description> 75 <cc:license tal:condition="objcclicense" tal:attributes="rdf:resource python:objcclicense[0]"/>76 77 <tal:publisher tal:condition="context/portal_metadata/Publisher"> 77 78 <dc:publisher tal:content="context/portal_metadata/Publisher">Publisher</dc:publisher> … … 87 88 <dc:creator tal:content="python: objcreators[0]"/> 88 89 </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> 90 101 <dc:language tal:content="obj_item/Language" /> 91 102 <tal:block tal:condition="python: len(objsubjects) > 1"> … … 99 110 <dc:subject tal:content="python: objsubjects[0]"/> 100 111 </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>111 112 <dc:date tal:content="python: obj_item.modified().HTML4()">Modification date</dc:date> 112 113 <dc:type tal:content="obj_item/Type">Type</dc:type> 113 114 <dc:format tal:content="obj_item/Format">Format</dc:format> 114 115 <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]"/> 115 117 </item> 116 118 </tal:block>
Note: See TracChangeset
for help on using the changeset viewer.
