Hi Mike, Under ex:orders, try inserting the two periods that should precede "authors". If that doesn't work, back up and see if the sort function will work on *any* of the fields, especially the one-placename ones.
My thanks, too, to David for pointing out the XML importer page. Although it's not clearly written, it may help me reconsider a few problems I'm encountering. jk On Sep 15, 12:44 pm, Michael Fitzgerald <[email protected]> wrote: > Hmm - never had any problems getting the exhibit to display here (and > it still works for me right now). It does everything it should: > faceting, etc. It just doesn't sort. > > Given RDF data of the form that Zotero spits out: > > <bib:Book rdf:about="urn:isbn:9780826515322"> > <dc:date>2006</dc:date> > <dc:identifier>ISBN 9780826515322</dc:identifier> > <dc:publisher> > <foaf:Organization> > <foaf:name>Vanderbilt University Press</foaf:name> > </foaf:Organization> > </dc:publisher> > <dc:title>A Shot In The Dark</dc:title> > <bib:authors> > <rdf:Seq> > <rdf:li> > <foaf:Person> > <foaf:givenname>Martin</foaf:givenname> > <foaf:surname>Hawkins</foaf:surname> > </foaf:Person> > </rdf:li> > </rdf:Seq> > </bib:authors> > <z:itemType>book</z:itemType> > </bib:Book> > > Should this do the job? > > <div ex:role="collection" ex:itemTypes="Book"></div> > <div ex:role="view" ex:orders="authors.surname, authors.givenname" > ex:directions="ascending, ascending" ex:showAll="true"</div> > > The answer has to be no, since it doesn't..... But why? > > Right now, the xml reader seems to introduce new complexity, but if > that's the only way to solve the problem, I'll have to deal with that. > Frustrating that the live example on the wiki which is about books > doesn't work. > > Mike > > > > On Wed, Sep 15, 2010 at 11:41 AM, David Karger <[email protected]> wrote: > > Mike, when I try to examine the exhibit I get a "failed to load js file" > > error---it's having trouble reading the results returned from babel. > > > in case it simplifies your pipeline, you might consider using the build-in > > xml reader now part of trunk.simile-widgets.org . You should be able to set > > it to parse your rdf-xml: > >http://www.simile-widgets.org/wiki/Exhibit/XML_Importer > > > On 9/15/2010 9:53 AM, Michael Fitzgerald wrote: > > >> I'm working on a simple book collection exhibit based on an RDF export > >> from Zotero. The problem I'm encountering is in getting the items to > >> sort alphabetically by author name. I've figured out how to get the > >> first name and last name to display in the lens and I've figured out > >> how to get last name to appear as a facet (would love to have that be > >> "last, first" combined instead, if that's possible). But when trying > >> to use those identical terms (authors.surname and authors.givenname) > >> in ex:orders, I get what just seems to be random order. I suspect it > >> might have something to do with nodes and is probably an easy fix. Any > >> assistance gratefully received. > > >> Exhibit here: > > >>http://lrdudc.wrlc.org/jazz/collections/stokes-books-rdf.html > > >> RDF data here: > > >>http://lrdudc.wrlc.org/jazz/collections/stokes-books.rdf > > >> Thanks - > > >> Mike > > > -- > > You received this message because you are subscribed to the Google Groups > > "SIMILE Widgets" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > >http://groups.google.com/group/simile-widgets?hl=en. -- You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=en.
