Differences between Exhibit 2 and Exhibit 3

51 views
Skip to first unread message

Jay Gray

unread,
Nov 4, 2015, 9:30:31 AM11/4/15
to SIMILE Widgets

Here is a simple bibliography using Exhibit 2 ("Sample A")

    Sample A

It properly handles an array of Authors for 2 items, and formats the viewPanel as expected.

Here is a bibliography using Exhibit 3 ("Sample B").

    Sample B

Exhibit.HiearchicalFacet is used in Sample B.

After the facet tree is described in JSON Sample B, the balance of the JSON is similar to Sample A.

However, there are several problems.

In Sample B, the JSON array is not properly processed. For example, an Author (Mirchandani) is assigned to 3 items but appears only once in the facet tree.

Keyword "word-2" is assigned to 2 items but does not appear in the facet list.

Keyword "word-3" is assigned to 3 items but appears for only 2.

Then, the Subject Headings are listed as items and shown as missing. There should be 3 items and 35 Subject Heading terms, but the viewPanel is confused.

Finally, the Author appears in viewPanel as if it were an <H1>.

Have I created errors that produce these differences?

How to correct the errors?

David Karger

unread,
Nov 4, 2015, 9:31:57 AM11/4/15
to simile-...@googlegroups.com
Jim, for any problems with exhibit 3, please check if they are still present in the "HEAD" (most recent) version of the exhibit codebase: 
http://api.simile-widgets.org/exhibit/HEAD/exhibit-api.js
--
You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simile-widget...@googlegroups.com.
To post to this group, send email to simile-...@googlegroups.com.
Visit this group at http://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/d/optout.

Jay Gray

unread,
Nov 4, 2015, 9:51:25 AM11/4/15
to SIMILE Widgets

TY, that solved many of the facet-related problems. However, I have 2 remaining issues.

1) am still getting the Author or Title (depending on selection) name on the viewPanel separate from the lens listing. They are handled as if they are <h1> in HTML.

2) The un-assigned terms from the JSON hierarchy appear as missing items. I intended to define 3 items, but Exhibit reports that I have 3 plus 34 missing.

Addition to previous post:
I have to toggle between "Source" and "Abstract" to activate the new bookmark tool. It does not load when the page is first loaded. The scissors are present, but are not moved down by bookmark until I toggle the view.

/jay

Luis Miguel Morillas

unread,
Nov 4, 2015, 10:23:12 AM11/4/15
to simile-...@googlegroups.com

I'll review it laterales, Hay

Luis Miguel Morillas

unread,
Nov 4, 2015, 1:33:21 PM11/4/15
to simile-...@googlegroups.com
Jay,

* About the json data: every item must have a "label". Labels must be
uniques. If not use "id" too.
* The correct collection is
<div ex:role="exhibit-collection" ex:itemTypes="Publication"></div>

I think it should work fine with this canges.

And better use new naming for attributes: "data-ex-item-types" for example.


-- luismiguel (@lmorillas)

jay gray | gmail

unread,
Nov 4, 2015, 2:40:08 PM11/4/15
to simile-...@googlegroups.com
TY for advice luismiguel. Will update example tonight and confirm back tomorrow.

/jay
You received this message because you are subscribed to a topic in the Google Groups "SIMILE Widgets" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/simile-widgets/-jcFFHKwEAw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to simile-widget...@googlegroups.com.

David Karger

unread,
Nov 4, 2015, 2:43:15 PM11/4/15
to simile-...@googlegroups.com
Note that Exhibit 2 is deprecated; you should definitely be writing your
exhibit using exhibit 3 syntax.

jay gray | gmail

unread,
Nov 4, 2015, 2:56:17 PM11/4/15
to simile-...@googlegroups.com
Roger that. I used Exhibit 2 as a baseline (something done previously that worked as expected) so that I could contrast results with Exhibit 3. I have updated my Exhibit 3 to use the library you designated - thank you for that.
You received this message because you are subscribed to a topic in the Google Groups "SIMILE Widgets" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/simile-widgets/-jcFFHKwEAw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to simile-widget...@googlegroups.com.

David Karger

unread,
Nov 4, 2015, 3:58:39 PM11/4/15
to simile-...@googlegroups.com
Be aware that since HEAD is the most current version of exhibit, it will
have the most bugfixes, but it gets updated more often and may therefore
have new bugs that haven't yet been detected. If you want something
that you can trust to be stable, and don't need the most up-to-date
functionality, you should use the STABLE or current versions of the api.

Luis Miguel Morillas

unread,
Nov 4, 2015, 4:45:36 PM11/4/15
to simile-...@googlegroups.com
This is the output I'm getting http://lmorillas.github.io/bib_test/4.html


Saludos,

-- luismiguel (@lmorillas)

jay gray | gmail

unread,
Nov 5, 2015, 4:31:05 AM11/5/15
to simile-...@googlegroups.com
Perfect. TY for your help with this luismiguel.

A small nit. When I load the page, the new bookmark object does not load. When I toggle the view, it does load and moves the scissors down. FYI.

Best regards,
You received this message because you are subscribed to a topic in the Google Groups "SIMILE Widgets" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/simile-widgets/-jcFFHKwEAw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to simile-widget...@googlegroups.com.

Jay Gray

unread,
Nov 6, 2015, 7:38:44 AM11/6/15
to SIMILE Widgets
TY again luismiguel. Your update has saved me hours in migrating content from exhibit 2 to 3 and learning to use exhibit 3 syntax.

/jay
Reply all
Reply to author
Forward
0 new messages