Changeset 458

Show
Ignore:
Timestamp:
06/18/09 12:24:47 (9 years ago)
Author:
samuraraujo
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Explorator/trunk/app/views/facets/_facet.rhtml

    r306 r458  
    1919        cut_at-=1 %> 
    2020        <div class=" _WINDOW " id ="<%=term(facet)%>"> 
    21             <div class = "resource term draggable _NO_MINIMIZE" resource="<%=(uri((term(facet)))) %>" exp="(:s,'<%=uri((term(facet))) %>',:o)" onmouseover="Tip('<%= to_s((term(facet))) %>',DELAY, 1000);" onmouseout="UnTip();"> 
     21            <div class = "resource select term draggable _NO_MINIMIZE" resource="<%=(uri((term(facet)))) %>" exp="('<%=uri((term(facet))) %>',:p,:o)" onmouseover="Tip('<%= to_s((term(facet))) %>',DELAY, 1000);" onmouseout="UnTip();"> 
    2222                <div class ="resourceuioperations "> 
    2323                    <div class ='_hide'> 
     
    3737                <%= render_resource(term(facet)) %> 
    3838            </div> 
    39             <div class = "values"> 
     39            <div class = "values resource select objects" exp="(SemanticExpression.new.spo(SemanticExpression.new('<%=uri(resourceset)%>').resources(:s),'<%=uri((term(facet))) %>',:o,:o))"> 
    4040                <% values = @facets_cardinalities[facet] 
    4141                values.each do |value| 
    4242                value.each_key do |key| %> 
    43                 <div class = "draggable value resource select" resource="<%=(uri((key))) %>" exp="(<%=h(@exp[facet][key])%>)"> 
     43 
     44                <div class = "draggable value resource select" resource="<%=(uri((key))) %>" exp="('<%=uri(key) %>',:p,:o)" > 
    4445                    <input type="checkbox" class="_checkboxfacet" name ="<%=term(facet)%>" exp="(<%=h(@exp[facet][key])%>)" /><%= render_resource (key) %><span class='cardinality'>(<%= value[key] %>)</span> 
    4546                    <a class ="all" exp="(<%=h(@exp[facet][key])%>)">All</a> 
    4647                </div> 
     48  
    4749                <% end end %> 
    4850            </div>