David Navarro Arnao wrote:
> Hi,
>
> What if I want to use a Data Base with Exhibit? :-)
>
> I will work with a lot of information and data will be dinamic, so
> it's not possible to work with A file.
>
Your database can export a subset of its data in the JSON format. I have
seen people using Exhibit as a browsing interface for search result sets
that are a few hundred results in size.
> Can you point me the method where the js file is read and convert to
> JSON object?. My idea is to send JSON objects to exhibit. In that way I
> will add free text search over the Data Base for big strings fields
> (based on Lucene), and pagination too.
>
In Exhibit 1.0, the database is implemented in this file
http://static.simile.mit.edu/exhibit/api/scripts/database.js
There are a few functions called loadTypes, loadProperties, and
loadItems, which are called from the _loadJSON method in this file
http://static.simile.mit.edu/exhibit/api/scripts/exhibit.js
In Exhibit 2.0, there is an importer for this:
http://simile.mit.edu/repository/exhibit/branches/2.0/src/webapp/api/scripts/importers/exhibit-json-importer.js
David
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general