Hi all:
I am working on a faceted search page in a Semantic MediaWiki site and have a problem with using the ‘lens’ option for customization. According to the MIT wiki/documentation ( http://projects.csail.mit.edu/wibit/wiki/index.php?title=Walkthrough ), by using a lens, I should be able to customize the output of the Exhibit query, and my page does seem to call the template (when a blank template name is used output shows “No text in page”). The problem that I am trying to debug now is that when I use the ‘lens’ the output on my MediaWiki page does not show my text. Upon further review of the source, my Query with the formatted template is showing up, but there is a “display=none” in the CSS of the output table: Here is the wikiText of my query: = Faceted Search Example= Select the properties from the facets tiles on the right: {{#ask: [[Category:205]] | ?Has role | ?Cargo type | format=exhibit | views=tiles | limit=300 | facets=Has role,Cargo type | *lens=205* }} Here is my template(205) – I’ve tried a few variations of this: {| class="wikitable" cellspacing=0 cellpadding=5px width=100% style="background:lightgrey;border:1px solid gray;display" ! style="background:grey;color:white;border-bottom:1.5px solid black" colspan=2 | [[{{{label}}}]] |- | width=50% style="border-bottom:1px solid gray" | '''Has Role:''' {{{Has role}}} | width=50% style="border-bottom:1px solid gray" | '''Cargo Type''' {{{Cargo type}}} |} Here is the HTML output of the query that includes the “Display: none” issue. When I edit this within firebug, I do get my query displayed. <table id="querytable1" class="smwtable" style="display: none;" ex:type="Item" ex:label="Item" ex:plurallabel="Items"> So drilling down into the SRF_Exhibit.js I found line 13: if (source.hideTable !== "false") { dataTable.setAttribute("style", "* display:none*"); }; Another oddity is that the sub page header gets a UNIQ id prepended – an example: * UNIQ7c8a9d641e561ee0-h-0--QINU Faceted Search* * * One more thing, when I have a generic faceted search (no lens) things work fine. This is the wikitext from a working Exhibit Query: Select the properties from the facets tiles on the right: {{#ask: [[Category:205]] | ?Has role | ?Cargo type | mainlabel= Article | format=exhibit | views=tiles,table | limit=300 | facets=Has role,Cargo type }} *To sum up – I am trying to use a template as a lens, and it doesn’t seem to be working. * Thanks in advance for your help. -Dave -- 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.
