Mark,

Yes, the conversion goes through http://simile.mit.edu/babel/, as clear 
from this code here:

    
http://static.simile.mit.edu/exhibit/api-2.0/scripts/data/importers/babel-based-importer.js

If you don't want that, then after you include exhibit-api.js, add in 
this code:

<script>

Exhibit.BabelBasedImporter.load = function(link, database, cont) {
    var url = (typeof link == "string") ?
        Exhibit.Persistence.resolveURL(link) :
        Exhibit.Persistence.resolveURL(link.href);

    var reader = "rdf-xml";
    var writer = "exhibit-jsonp";
    if (typeof link != "string") {
        var mimetype = link.type;
        if (mimetype in Exhibit.BabelBasedImporter.mimetypeToReader) {
            reader = Exhibit.BabelBasedImporter.mimetypeToReader[mimetype];
        }
    }
    if (reader == "bibtex") {
        writer = "bibtex-exhibit-jsonp";
    }
    
    var babelURL = "http://simile.mit.edu/babel/translator?"; + [
        "reader=" + reader,
        "writer=" + writer,
        "url=" + encodeURIComponent(url)
    ].join("&");

    return Exhibit.JSONPImporter.load(babelURL, database, cont);
};

</script>

and replace http://simile.mit.edu/babel/ with your own Babel instance.

David


SIMILE - Recent changes [en] wrote:
> Edited by: Mark Wilkinson [view contribs: 
> http://simile.mit.edu/mediawiki/index.php?title=Special:Contributions&target=Mark
>  Wilkinson] 
>
> **New page**
>
> Discussion  
>   
>   
> Questions:  
>   
> Does anyone know if the Conversion at Load Time Babel-based Importers are 
> connecting to the Babel instance at MIT? If so, is there any way to 
> circumvent this and get Exhibit to connect to my own instance of Babel? Due 
> to the US Patriot Act, we Canadians are not allowed to send personal 
> information about Canadians over the border, so the data that I need to 
> display in Exhibit cannot be passed through the MIT Babel instance.  
>   
> Any advice appreciated!
>
> Block this user: 
> http://simile.mit.edu/mediawiki/index.php?title=Special:Blockip&ip=Mark 
> Wilkinson
>
> URL: 
> http://simile.mit.edu/wiki/Talk:Exhibit/Creating%2C_Importing%2C_and_Managing_Data
> _______________________________________________
> Dev mailing list
> [EMAIL PROTECTED]
> http://simile.mit.edu/mailman/listinfo/dev
>   

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

Reply via email to