Hi Vincent,

You're right that the exporters are not configurable right now. Nobody 
has asked for that before so there wasn't a need to make them 
configurable. What you can do is to write one yourself. Take a look at 
the tab separated value exporter as a starting example

    
http://static.simile.mit.edu/exhibit/api-2.0/scripts/data/exporters/tsv-exporter.js

So, you need some Javascript code, e.g.,

    <script>
        var EmailExporter = {
            getLabel: function() { return "Email addresses"; }
        };
        EmailExporter.exportOne = function(itemID, database) {
           ...
        };
        EmailExporter.exportMany = function(set, database) {
           ...
        };
    </script>

and then you need to hook it up in HTML

    <body ex:exporters="EmailExporter">

Cheers,

David

Vincent Borghi wrote:
> Hello,
>
> It is not clear for me if there are ready-to-use facilities to
> configure the copy button (scissors), or perhaps to implement
> a feature derived from that.
>
> Notably, I would like to limit the copied data to the values
> of one property or several properties of my choice.
>
> Usage example: I have an exhibit that shows a directory of people,
> one of the properties of the people items being their email address.
> Once a user has selected the desired people using various facets,
> I'd want the user be able to copy just the list of email addresses
> (one per lline, without other properties), so that the user can paste
> it somewhere else (this would make easy the use of one-shot, custom,
> mailing lists).
>
> Thanks for your ideas.
> ------------------------------------------------------------------------
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>   

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

Reply via email to