<% if form.obj.has_key?('_resolved') selected_json = form.obj['_resolved'].to_json else selected_json = "{}" end exclude_ids = [] if exclude_ids.blank? field_label ||= I18n.t("resource._singular") layout ||= "horizontal" %>
" data-label="<%= I18n.t("resource._singular") %>" data-label_plural="<%= I18n.t("resource._plural") %>" data-path="<%= form.path %>" data-name="ref" data-url="<%= url_for :controller => :search, :action => :do_search, :format => :json %>" data-browse-url="<%= url_for :controller => :search, :action => :do_search, :format => :js, :facets => SearchResultData.RESOURCE_FACETS, :display_identifier=> true, :exclude => exclude_ids %>" data-selected="<%= selected_json %>" data-format_property="title" data-multiplicity="one" data-types='["resource"]' data-exclude='<%= exclude_ids.to_json %>' />