I have just refactored the Exhibit 2.0 development branch to support 
more flexible layouts, e.g.,

    
http://simile.mit.edu/repository/exhibit/branches/2.0/src/webapp/examples/CSAIL-PIs/CSAIL-PIs.html

Note that the facets can now be distributed anywhere on the page. You 
can also use more than one view for showing the same collection of items 
(no example yet).


If you are the few and brave who are using the Exhibit 2.0 branch, read 
on...

-----

Please note that I've refactored branches/2.0 and it _will_ break your 
existing exhibits. If you don't want to do much work to keep up, then 
just re-link to this version of the API instead:

    
http://simile.mit.edu/repository/exhibit/tags/1.0.pre-ui-split/src/webapp/api/exhibit-api.js

If you want to keep with the latest changes, read on...

-----

Make the following changes if applicable to your html files and your 
exhibits should work again:

- Remove <div id="exhibit-control-panel"></div>. It's no longer supported.

- Change <div id="exhibit-view-panel"> to <div ex:role="exhibit-viewPanel">.

- Change <div id="exhibit-browse-panel" ex:facets=".abc, .def"></div> to
   
    <div ex:role="exhibit-facet" ex:expression=".abc" ex:facetLabel="Abc 
or whatever"></div>
    <div ex:role="exhibit-facet" ex:expression=".def" ex:facetLabel="Def 
or whatever"></div>

You can put each of those divs anywhere on the page.

- Change <body ex:ondataload="window.exhibit = 
Exhibit.create('President');"> to

    <body>
       <div ex:role="exhibit-collection" ex:itemTypes="President"></div>

- Change <body ex:exhibitLogoColor="abc"> to

    <body>
       ...
        <div ex:role="exhibit-logo" ex:color="abc"></div>

You can also use <center> instead of <div>.

-----

Conceptually, an exhibit now consists of one or more collections (of 
items) and zero or more components (aka widgets). Each collection has an 
ID, and there is a default collection with the ID "default". This code 
defines the default collection to be all items of type President:

   <div ex:role="exhibit-collection" ex:itemTypes="President"></div>

You can include ex:collectionID to create a new collection:

   <div ex:role="exhibit-collection" ex:itemTypes="Vice-President" 
ex:collectionID="the-vice-presidents"></div>

Each component is hooked up to one collection (the default collection by 
default). Components include views, view panels, and facets. Lenses are 
also considered components but they are a bit of an exception because 
they don't get connected to any collection. Logos are also considered 
components but they don't do anything except showing an Exhibit logo.

You can use more than one view for a single collection. Just don't put 
them inside a view panel component.

David
P.S. Oops, I just remember I haven't fixed the exporters...

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to