Sha256: fd36425f41976b6ee0ffbd78764bbb984861091af4b471ca666580557b874281

Contents?: true

Size: 1.48 KB

Versions: 45

Compression:

Stored size: 1.48 KB

Contents

<%# This view is overridden to change the alt attribute to be a title in the link_to below in order to conform to the HTML5 validity standard.  This should ultimately be fixed in Blacklight.  -%>
<%- # local params:
    # label 
    # value
    # options =>
    #   :remove => url for a remove constraint link
    #   :classes => array of classes to add to container span
    options ||= {}
    options[:escape_label] = true unless options.has_key?(:escape_label)
    options[:escape_value] = true unless options.has_key?(:escape_value)
-%>

<span class="appliedFilter constraint <%= options[:classes].join(" ") if options[:classes] %>">
      <%- unless label.blank? -%>
        <span class="filterName"><%= options[:escape_label] ? h(label) : label %></span> 
      <%- end -%>
      <%- unless value.blank? -%>
        <span class="filterValue"><%= options[:escape_value] ? h(value) : value %></span>
      <%- end -%>
      <%- unless options[:remove].blank? -%>
        <% accessible_remove_label =               
                if label.blank?
                  "Remove constraint #{options[:escape_value] ? h(value) : value}"
                else
                  "Remove constraint #{options[:escape_value] ? h(value) : value}: #{options[:escape_value] ? h(value) : value}"
                end              
        %>                
        <%= link_to(accessible_remove_label,
					options[:remove],
					:class=>'btnRemove imgReplace',
          :title=>'remove'
				) %>
      <%- end -%>
</span>

Version data entries

45 entries across 45 versions & 2 rubygems

Version Path
hydra-head-4.1.3 app/views/catalog/_constraints_element.html.erb
hydra-head-4.1.2 app/views/catalog/_constraints_element.html.erb
hydra-core-5.0.0.pre4 app/views/catalog/_constraints_element.html.erb
hydra-core-5.0.0.pre3 app/views/catalog/_constraints_element.html.erb
hydra-core-5.0.0.pre2 app/views/catalog/_constraints_element.html.erb
hydra-core-5.0.0.pre1 app/views/catalog/_constraints_element.html.erb
hydra-head-4.1.1 app/views/catalog/_constraints_element.html.erb
hydra-head-4.1.0 app/views/catalog/_constraints_element.html.erb
hydra-head-4.0.3 app/views/catalog/_constraints_element.html.erb
hydra-head-4.0.2 app/views/catalog/_constraints_element.html.erb
hydra-head-4.0.1 app/views/catalog/_constraints_element.html.erb
hydra-head-4.0.0 app/views/catalog/_constraints_element.html.erb
hydra-head-4.0.0.rc6 app/views/catalog/_constraints_element.html.erb
hydra-head-4.0.0.rc5 app/views/catalog/_constraints_element.html.erb
hydra-head-4.0.0.rc4 app/views/catalog/_constraints_element.html.erb
hydra-head-4.0.0.rc3 app/views/catalog/_constraints_element.html.erb
hydra-head-4.0.0.rc2 app/views/catalog/_constraints_element.html.erb
hydra-head-3.3.0 app/views/catalog/_constraints_element.html.erb
hydra-head-3.2.2 app/views/catalog/_constraints_element.html.erb
hydra-head-3.2.1 app/views/catalog/_constraints_element.html.erb