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
Show line numbers
#set ($showcomments = "no") ## Change class name to your class name #set($bibObj = $doc.getObject("${doc.getSpace()}.BibliographyClass")) #set($bibClass = $bibObj.xWikiClass) #set($imgMaxSize = 500) #set($refurl = $bibObj.getProperty("url").getValue()) ##parses embeded media info in URL #set($groovyObject = $xwiki.parseGroovyFromPage("${doc.getSpace()}.BibliographyClassGroovy")) $groovyObject.setObjects($xwiki, $context) #set($embedType = ${groovyObject.readUrl($refurl)}) #set($embedIndex = ${groovyObject.getIndex()}) #includeInContext('XWiki.Rater') [See all discussion items!>BibliographyOverview] <table border="0"> <tbody> <tr> #set($prop = "title") <td> $bibClass.get($prop).getPrettyName() </td> <td>$util.escapeText($bibObj.getProperty($prop).getValue())</td> </tr> <tr> #set($prop = "url") <td> $bibClass.get($prop).getPrettyName() </td> <td>$bibObj.getProperty($prop).getValue()</td> </tr> <tr> #set($prop = "accessed") <td> $bibClass.get($prop).getPrettyName() </td> <td>$xwiki.formatDate($bibObj.getProperty($prop).getValue(), $bibClass.get("accessed").getPropertyClass().getDateFormat())</td> </tr> #if($embedType.equals("youtube")) <tr> <td>Media</td> <td> <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> ##set($prop = "url") ##video($bibObj.getProperty($prop).getValue()) </td> </tr> #elseif($embedType.equals("flickr")) #set($height = ${groovyObject.getImageHeight()}) #set($width = ${groovyObject.getImageWidth()}) <tr> <td>Media</td> <td> #if($height > $imgMaxSize || $width > $imgMaxSize) #if($height > $width) <img height="$imgMaxSize" src="${embedIndex}"></img> #else <img width="$imgMaxSize" src="${embedIndex}"></img> #end #else <img src="${embedIndex}"></img> #end </td> </tr> #elseif($embedType.equals("image")) #set($height = ${groovyObject.getImageHeight()}) #set($width = ${groovyObject.getImageWidth()}) <tr> <td>Media</td> <td> #if($height > $imgMaxSize || $width > $imgMaxSize) #if($height > $width) <img height="$imgMaxSize" src="${embedIndex}"></img> #else <img width="$imgMaxSize" src="${embedIndex}"></img> #end #else <img src="${embedIndex}"></img> #end </td> </tr> #end <tr> #set($prop = "bibinfo") <td> $bibClass.get($prop).getPrettyName() </td> ## <td>$util.escapeText($bibObj.getProperty($prop).getValue())</td> <td><textarea readonly=true rows="10" cols="100" name="citation" value="">$bibObj.getProperty($prop).getValue()</textarea></td> </tr> <tr> #set($prop = "creator") <td> $bibClass.get($prop).getPrettyName() </td> <td>$xwiki.getUserName($bibObj.getProperty($prop).getValue())</td> </tr> </tbody> </table> #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