I've updated http://nielsmayer.com/xwiki/bin/view/Exhibit/Presidents4 removing the unnecessary schema info from the example. I've also updated the zip-format sources ( http://nielsmayer.com/xwiki/bin/download/Exhibit/Presidents4/Presidents4Pkg.xar ) to allow other Xwiki users to (1) import the package into their Xwiki, (2) edit XWiki.JavaScriptExtension[0] in the object editor on document Exhibit.Presidents4: (var exhibit_gmapkey="...";) and (3) have your own working Exhibit running alongside an Xwiki-based document/application.
FYI, the Presidents4Pkg.xar also provides the "macro documents" Macros.jQuery and Macros.Exhibit that allow you to easily use Exhibit in your Xwiki-based documents via the following velocity preamble ( see http://nielsmayer.com/xwiki/bin/view/Exhibit/Presidents4?viewer=code ) ## ## Presidents example JSON data in XWiki.JavaScriptExtension[1] ## Note XWiki.JavaScriptExtension[0] defines JS vars exhibit_views and ## exhibit_gmapkey needed by "Macros.Exhibit" ## $xwiki.jsx.use("$doc.fullName")## ## ## Load and initialize jQuery, before Exhibit ## #includeMacros("Macros.jQuery")## #jquery_xwiki_init()## ## ## Load and initialize Exhibit Javascript and CSS ## #includeMacros("Macros.Exhibit")## #exhibit_xwiki_init()## ## ## Presidents example Stylesheet in XWiki.StyleSheetExtension[0] ## $xwiki.ssx.use("$doc.fullName")## ... ((create DOM in wikimarkup and HTML here)) ... ############################################################################## ## Fire Up Exhibit to process all ex:* markup and Json data into a UI. ############################################################################## #exhibit_create()## Niels http://nielsmayer.com PS: Also, for Timeline integration with Xwiki... Example app: http://nielsmayer.com/xwiki/bin/view/Main/SiteTimeline Source: http://nielsmayer.com/xwiki/bin/download/Main/SiteTimeline/SiteTimelinePkg.xar . ("Macros.Timeline" is another Xwiki macro-document that provides Timeline functionality in a Xwiki document: http://nielsmayer.com/xwiki/bin/view/Main/SiteTimeline?viewer=code ) $ unzip -l SiteTimelinePkg.xar Archive: SiteTimelinePkg.xar Length Date Time Name -------- ---- ---- ---- 13954 06-07-09 09:51 Main/SiteTimeline.xml 64824 06-07-09 09:51 Macros/jQuery.xml 22844 06-07-09 09:51 Macros/Timeline.xml 512 06-07-09 09:51 package.xml -------- ------- 102134 4 files $ unzip -l Presidents4Pkg.xar Archive: Presidents4Pkg.xar Length Date Time Name -------- ---- ---- ---- 98108 06-10-09 14:38 Exhibit/Presidents4.xml 64824 06-10-09 13:33 Macros/jQuery.xml 30483 06-10-09 13:33 Macros/Exhibit.xml 511 06-10-09 13:33 package.xml -------- ------- 193926 4 files On Thu, Jun 4, 2009 at 6:32 PM, John Callahan <[email protected]>wrote: > > Likely it has nothing to do with the US Presidents Exhibit or Kennedy > Timeline examples but rather from > http://davidhuynh.net/publications.php, which looks to have been part of > the example list back in the day. Appropriate properties for those > types of relationships. > > Could have been a copy and paste error on how it got into the Presidents > example. I don't believe it's being used now. > > - John > > Niels Mayer wrote: > > + 'author': { > > + label: "authored by", > > + reverseLabel: "author of", > > + reversePluralLabel: "authors of", > > > > + groupingLabel: "their authors", > > + reverseGroupingLabel: "their work", > > + valueType: "item" > > + }, > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=en -~----------~----~----~----~------~----~------~--~---
