Thank you very much for your note David. I tried your suggestions and still need more clarification. I'm going to think some more about the Label issue, but for now am using category data under it. But both the ex:orders and valueType are giving me problems. The page isn't rendering correctly. Below is is the html and js contents.
HTML <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Stamp Collection</title> <link href="stamps.js" type="application/json" rel="exhibit/data"> <link rel="exhibit/data" type="application/jsonp" href="http:// spreadsheets.google.com/feeds/list/tsB8Ql6LmqzabJ-Vn04s9iw/od6/public/ basic?alt=json-in-script" ex:converter="googleSpreadsheets"> <script src="http://static.simile.mit.edu/exhibit/api-2.0/exhibit- api.js" type="text/javascript"> </script> <script src="http://static.simile.mit.edu/exhibit/extensions-2.0/time/ time-extension.js" type="text/javascript"> </script> <style type="text/css"> body { margin: 1in; } table.stamplist { border: 1px solid #ddd; padding: 10px; margin: 10px; } </style> </head> <body> <h1>Stamp Collection - Books and Libraries</h1> <table> <tr valign="top"> <td ex:role="viewPanel" ex:orders=".label, .scott, .yearIssued, .country"> <table ex:role="lens" class="stamplist"> <tr> <td style="width: 100px; padding: 3px;"><img ex:src- content=".imageURL"></td> <td> <div> <strong>Label:</strong> <div ex:content=".label" class="labelitem" style="display:inline"></div> </div> <div> <strong>Stamp ID:</strong> <div ex:content=".stampID" class="stampID" style="display:inline"></div> </div> <div> <strong>Year Issued:</strong> <div ex:content=".yearIssued" class="yearitem" style="display:inline"></div> </div> <div> <strong>Country:</strong> <div ex:content=".country" class="countryitem" style="display:inline"></div> </div> <div> <strong>Denomination:</strong> <div ex:content=".denom" class="denominationitem" style="display:inline"></div> </div> <div> <strong>Scott Number:</strong> <div ex:content=".scott" class="scottitem" style="display:inline"></div> </div> <div> <strong>Description:</strong> <div ex:content=".description" class="descriptionitem" style="display:inline"></div> </div> </td> </tr> </table> </td> <td width="25%"> <div ex:role="facet" ex:facetclass="TextSearch" ex:facetlabel="Search this collection"></div> <div ex:role="facet" ex:expression=".country" ex:facetlabel="Countries"></div> </td> </tr> </table> </body> </html> JS { types: { "Stamp" : { pluralLabel: "Stamps" } }, properties : { "stampID": { valueType: "number" } }, "items" : [ { "type" : "Stamp" } ] } On Oct 23, 9:02 am, "David R. Karger" <[email protected]> wrote: > perplexed wrote: > > After searching for a good way to display my mother's stamp collection > > and make it easy for her to update it (via Google Spreadsheet), I'm > > hoping Exhibit is the one. I can think of several other ways to use > > it, too! I have a several questions (and may have seen the answer in > > the documentation but am having trouble understanding it): > > this is indeed a perfect example of what exhibit is intended for. but > be aware that if you have more than 500 stamps exhibit may start to slow > down. > > In general question are easier to answer if you post the exhibit for > people to look at> 1) I am using the label column for record numbers. Each > stamp item was > > a record in Access and want to use this only as a reference, but the > > term "label" can be confusing to the visitor. Is there a way to > > "rename" it in the presentation layer so that not only it says "No." > > on the page but also on the list of "sorted by" terms? > > "label" is intended to be a human readable name for the item that is > displayed by default. But by authoring a lens you can display each item > however you like, using the label or not. > > Also, I wouldn't think of a record number as a label. Note that you can > give each item an "id" for which this record number would be perfect. > Once you give the all the items distinct IDs, you can safely give > several items the same label-. E.g., label one of them "penny black > 1843". At an extreme, they could all have the same label "Stamp". > > Note that exhibit also> 2) For some reason when I sort by label, the numbers > do not ascend, > > from small to large. I am not sure what information is being sorted > > when I use the term, but how do I force it to sort by number? > > it is probably sorting by "alphabetical" order, so e.g. 10 comes before > 9 because 1 is alphabetically less. If you annotate this property as > being of "valueType: number" it should fix the problem. > > the discussion of labels, ids, and valuetypes can all be found > here:http://simile.mit.edu/wiki/Exhibit/Understanding_Exhibit_Database> 3) > How do I hide a term on the sorted by list? I'm not using URIs that > > would be relevant to the user. > > you can specify in the list view which properties you want to be able to > sort on: > > <div ex:role="view" ex:orders=".age",".job"></div> > > Seehttp://simile.mit.edu/wiki/Exhibit/2.0/Tile_View > > > Thanks, > > Amy --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
