% # Allow multiple subjects to be linked if it's an empty linker multiplicity = "many" if multiplicity.blank? if form.obj['ref'].blank? selected_json = (multiplicity === "many") ? "[]" : "{}" else multiplicity = "one" selected_json = form.obj['_resolved'].to_json end data_path = form.path data_name = "ref" # De-referenced by the controller if the schema def calls for an item array exclude_ids = [] if exclude_ids.blank? hide_create = false if hide_create.blank? if !defined?(linker_label) linker_label = (multiplicity === "many") ? I18n.t("classification._plural") : I18n.t("classification._singular") end %>