lib/workflow_setup.rb
# Make an AdminSet with the given title, belonging to the @admin_set_owner
# @return [AdminSet] the admin set that was just created, or the one that existed already
Make an AdminSet with the given title, belonging to the @admin_set_owner
Make an AdminSet with the given title belonging to the @admin_set_owner
def make_admin_set(admin_set_title)
    if AdminSet.where(title_sim: admin_set_title).count > 0
      @logger.debug "AdminSet #{admin_set_title} already exists."
      return AdminSet.where(title_sim: admin_set_title).first
    end
    a = AdminSet.create(title: [admin_set_title])
    Hyrax::AdminSetCreateService.call(admin_set: a, creating_user: @admin_set_owner)
    a
  end
def make_admin_set ( admin_set_title ) if AdminSet . where ( title_sim : admin_set_title ) . count > 0 @logger . debug "AdminSet #{admin_set_title} already exists." return AdminSet . where ( title_sim : admin_set_title ) . first end a = AdminSet . create ( title : [ admin_set_title ] ) Hyrax :: AdminSetCreateService . call ( admin_set : a , creating_user : @admin_set_owner ) a end
Make an AdminSet with the given title, belonging to the @admin_set_owner
Make an AdminSet with the given title belonging to the @admin_set_owner
the admin set that was just created, or the one that existed already
the admin set that was just created or the one that existed already
AdminSet
admin_set_title
<not_specific>