Migration (from 1.0 to 2.0)

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

  • Change the API url to
   http://static.simile.mit.edu/exhibit/api-2.0/exhibit-api.js
  • Remove <div id="exhibit-control-panel"></div>. It's no longer supported.
  • Change <div id="exhibit-view-panel"> to <div ex:role="viewPanel">.
  • Change <div id="exhibit-browse-panel" ex:facets=".abc, .def"></div> to
   <div ex:role="facet" ex:expression=".abc" ex:facetLabel="Abc or whatever"></div>
   <div ex:role="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>.

New Features

See