General Actions:
Log-in
Wiki:
CreativeIT
▼
:
Document Index
»
Space:
CreativityAndCogntion
▼
:
Document Index
»
Page:
BibliographyClassSheet
Search
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
BibliographyClass
»
BibliographyClassSheet
Wiki source code of
BibliographyClassSheet
Last modified by
Holger Dick
on 2010/07/15 15:25
Content
·
Comments
(0)
·
Attachments
(0)
·
History
·
Information
Hide line numbers
1: #set ($showcomments = "no") 2: 3: ## Change class name to your class name 4: 5: #set($bibObj = $doc.getObject("${doc.getSpace()}.BibliographyClass")) 6: #set($bibClass = $bibObj.xWikiClass) 7: 8: #set($imgMaxSize = 500) 9: 10: #set($refurl = $bibObj.getProperty("url").getValue()) 11: ##parses embeded media info in URL 12: #set($groovyObject = $xwiki.parseGroovyFromPage("${doc.getSpace()}.BibliographyClassGroovy")) 13: $groovyObject.setObjects($xwiki, $context) 14: #set($embedType = ${groovyObject.readUrl($refurl)}) 15: #set($embedIndex = ${groovyObject.getIndex()}) 16: 17: #includeInContext('XWiki.Rater') 18: [See all discussion items!>BibliographyOverview] 19: 20: <table border="0"> 21: <tbody> 22: 23: <tr> 24: #set($prop = "title") 25: <td> $bibClass.get($prop).getPrettyName() </td> 26: <td>$util.escapeText($bibObj.getProperty($prop).getValue())</td> 27: </tr> 28: 29: <tr> 30: #set($prop = "url") 31: <td> $bibClass.get($prop).getPrettyName() </td> 32: <td>$bibObj.getProperty($prop).getValue()</td> 33: </tr> 34: 35: <tr> 36: #set($prop = "accessed") 37: <td> $bibClass.get($prop).getPrettyName() </td> 38: <td>$xwiki.formatDate($bibObj.getProperty($prop).getValue(), $bibClass.get("accessed").getPropertyClass().getDateFormat())</td> 39: </tr> 40: 41: #if($embedType.equals("youtube")) 42: <tr> 43: <td>Media</td> 44: <td> 45: <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/${embedIndex}&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/${embedIndex}&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object> 46: ##set($prop = "url") 47: ##video($bibObj.getProperty($prop).getValue()) 48: </td> 49: </tr> 50: #elseif($embedType.equals("flickr")) 51: #set($height = ${groovyObject.getImageHeight()}) 52: #set($width = ${groovyObject.getImageWidth()}) 53: <tr> 54: <td>Media</td> 55: <td> 56: #if($height > $imgMaxSize || $width > $imgMaxSize) 57: #if($height > $width) 58: <img height="$imgMaxSize" src="${embedIndex}"></img> 59: #else 60: <img width="$imgMaxSize" src="${embedIndex}"></img> 61: #end 62: #else 63: <img src="${embedIndex}"></img> 64: #end 65: </td> 66: </tr> 67: #elseif($embedType.equals("image")) 68: #set($height = ${groovyObject.getImageHeight()}) 69: #set($width = ${groovyObject.getImageWidth()}) 70: <tr> 71: <td>Media</td> 72: <td> 73: #if($height > $imgMaxSize || $width > $imgMaxSize) 74: #if($height > $width) 75: <img height="$imgMaxSize" src="${embedIndex}"></img> 76: #else 77: <img width="$imgMaxSize" src="${embedIndex}"></img> 78: #end 79: #else 80: <img src="${embedIndex}"></img> 81: #end 82: </td> 83: </tr> 84: #end 85: 86: <tr> 87: #set($prop = "bibinfo") 88: <td> $bibClass.get($prop).getPrettyName() </td> 89: ## <td>$util.escapeText($bibObj.getProperty($prop).getValue())</td> 90: <td><textarea readonly=true rows="10" cols="100" name="citation" value="">$bibObj.getProperty($prop).getValue()</textarea></td> 91: </tr> 92: 93: 94: <tr> 95: #set($prop = "creator") 96: <td> $bibClass.get($prop).getPrettyName() </td> 97: <td>$xwiki.getUserName($bibObj.getProperty($prop).getValue())</td> 98: </tr> 99: </tbody> 100: </table> 101: 102: 103: #includeForm('BBCode.TopicClassSheetBibItem')
Quick Links
Home
Index
What's New
Blog
Calendar
Photo Albums
Sandbox
Tags
Bulletin Board
My Recent Modifications
PamelaJennings
|
rwakkary
|
HaledenSands
|
ByronLahey