normalized = arv_normalize combined
newc = Collection.new({:manifest_text => normalized})
+ newc.name = newc.name || "Collection created at #{Time.now.localtime}"
newc.save!
chash.each do |k,v|
<div class="btn-group btn-group-sm">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Selection... <span class="caret"></span></button>
<ul class="dropdown-menu" role="menu">
- <li><%= link_to "Combine selections into a new collection", '#',
+ <li><%= link_to "Combine selected files into a new collection", '#',
'data-href' => combine_selected_path,
'data-selection-param-name' => 'selection[]',
'data-selection-action' => 'combine-collections',
<div class="btn-group btn-group-sm">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Selection... <span class="caret"></span></button>
<ul class="dropdown-menu" role="menu">
- <li><%= link_to "Combine selections into a new collection", '#',
+ <li><%= link_to "Combine selected collections into a new collection", '#',
'data-href' => combine_selected_path,
'data-selection-param-name' => 'selection[]',
'data-selection-action' => 'combine-collections',
<div class="btn-group btn-group-sm">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Selection... <span class="caret"></span></button>
<ul class="dropdown-menu" role="menu">
- <li><%= link_to "Combine selections into a new collection", '#',
+ <li><%= link_to "Combine selected collections into a new collection", '#',
'data-href' => combine_selected_path(
action_data: {selection_param: 'project'}.to_json
),
+ 'id' => 'combine_selections_button',
'data-selection-param-name' => 'selection[]',
'data-selection-action' => 'combine-project-contents',
'method' => 'post',