Mercurial > hg > digitalobjects
diff Copy of digitalobjects-item.tpl.php @ 0:6f6e07baad80 default tip
initial
author | Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 02 Jun 2015 08:57:48 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Copy of digitalobjects-item.tpl.php Tue Jun 02 08:57:48 2015 +0200 @@ -0,0 +1,105 @@ + + +<h2> Hello </h2> + +<?php print $objid ?> + <h3 class="title"<?php print $title_attributes; ?>> + <a href="<?php print $objdata['viewerurl']; ?>"><?php print $title ?> </a> + </h3> +<a href="<?php print $objdata['viewerurl']; ?>"><img src="<?php print $objdata['thumburl']; ?>"/></a> + + + <div class="col main"> + <!-- main content column --> + <div class="index-info"> + <h2>Bibliographic information</h2> + <table border="0"> + <tal:x condition="python:formattedData"> + <!-- wenn es bibinfo in docinfo gibt --> + <tr tal:replace="structure python:formattedData" /> + </tal:x> + + <tal:x condition="not:formattedData"> + <!-- kein template fuer die daten --> + <tal:block condition="exists:docinfo/bib"> + <tal:block tal:define="bibinfo docinfo/bib" tal:repeat="bib bibinfo"> + <tr tal:condition="python:bib[0]!='@'"> + <td class="type" tal:content="python:bib.capitalize().replace('_',' ') + ':'" /> + <td class="content" tal:content="python:bibinfo[bib]" /> + </tr> + </tal:block> + </tal:block> + + <tal:y condition="not:exists:docinfo/bib"> + <!-- wenn es kein bibinfo gibt (archimedes-texte) --> + <tr> + <td class="type">Author:</td> + <td class="content" tal:content="docinfo/creator" /> + </tr> + <tr> + <td class="type">Title:</td> + <td class="content" tal:content="docinfo/title" /> + </tr> + <tr> + <td class="type">Date:</td> + <td class="content" tal:content="docinfo/date" /> + </tr> + </tal:y> + </tal:x> + <!-- ende kein template fuer die daten --> + </table> + + <tal:block tal:define="dri docinfo/DRI | nothing" tal:condition="dri"> + <h2>Permanent URL</h2> + <table> + <tr> + <td class="type">Document ID:</td> + <td class="content" tal:content="dri" /> + </tr> + <tr> + <td class="type">Permanent URL:</td> + <td class="content"><a target="_blank" tal:attributes="href string:http://echo.mpiwg-berlin.mpg.de/$dri" + tal:content="string:http://echo.mpiwg-berlin.mpg.de/$dri" /></td> + </tr> + </table> + </tal:block> + + <tal:block tal:define="ctxs docinfo/presentationContext | nothing" tal:condition="ctxs"> + <h2>Presentation context</h2> + <ul> + <li tal:repeat="ctx ctxs"><a tal:define="link ctx/link | nothing; name ctx/name | link;" tal:content="name" + tal:attributes="href link" target="_blank" tal:omit-tag="not:link" /></li> + </ul> + </tal:block> + + <tal:block tal:define="attribution docinfo/attribution | nothing; copyright docinfo/copyright | nothing"> + <h2>Copyright information</h2> + <table border="0" tal:condition="attribution | copyright"> + <!-- attribution --> + <tr tal:condition="attribution" + tal:replace="structure python:here.metadataService.getAttributionFormatted('metadata_template', data=attribution)" /> + <!-- copyright --> + <tr tal:condition="copyright" + tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=copyright)" /> + </table> + <table border="0" tal:condition="not:attribution | copyright"> + <tr> + <td class="type">Copyright:</td> + <td class="content"><a target="_blank" href="http://www.mpiwg-berlin.mpg.de">Max Planck Institute for the + History of Science</a> (unless stated otherwise)</td> + </tr> + <tr tal:define="accType python:docinfo.get('accessType', None)"> + <td class="type">License:</td> + <td tal:condition="python:accType == 'free'" class="content"><a target="_blank" + href="http://creativecommons.org/licenses/by-sa/3.0/de/">CC-BY-SA</a> (unless stated otherwise)</td> + <td tal:condition="python:accType != 'free'" class="content">Internal use only<span tal:condition="accType" + tal:content="string: ($accType)" />, please contact <a href="mailto:library@mpiwg-berlin.mpg.de">library@mpiwg-berlin.mpg.de</a> + (unless stated otherwise) + </td> + </tr> + </table> + </tal:block> + </div> + </div> + <!-- /main content column --> + </div>