Skip to content

Commit

Permalink
index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
gkostin1966 committed Jun 12, 2019
1 parent 3e5930e commit b7b9ac5
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 12 deletions.
1 change: 0 additions & 1 deletion app/programs/assemble_marc_files/assemble_marc_files.rb
Expand Up @@ -24,7 +24,6 @@ def synchronize(lib_ptg_box) # rubocop:disable Metrics/AbcSize
collection.selections.each do |selection|
record = UmpebcKbart.find_or_create_by!(name: selection.name)
log += record.id.to_s + " " + collection.name + " " + selection.name + "\n"
puts record.inspect
end
end
log
Expand Down
4 changes: 2 additions & 2 deletions app/views/uuid_identifiers/index.html.erb
Expand Up @@ -14,8 +14,8 @@
<tbody>
<% @uuid_identifiers.each do |uuid_identifier| %>
<tr>
<td><%= uuid_identifier.uuid %></td>
<td><%= uuid_identifier.identifier %></td>
<td><%= uuid_identifier.uuid.unpacked %></td>
<td><%= uuid_identifier.identifier.name %></td>
<td><%= link_to 'Show', uuid_identifier %></td>
<td><%= link_to 'Edit', edit_uuid_identifier_path(uuid_identifier) %></td>
<td><%= link_to 'Destroy', uuid_identifier, method: :delete, data: { confirm: 'Are you sure?' } %></td>
Expand Down
4 changes: 2 additions & 2 deletions app/views/uuid_identifiers/show.html.erb
Expand Up @@ -2,12 +2,12 @@

<p>
<strong>Uuid:</strong>
<%= @uuid_identifier.uuid %>
<%= @uuid_identifier.uuid.unpacked %>
</p>

<p>
<strong>Identifier:</strong>
<%= @uuid_identifier.identifier %>
<%= @uuid_identifier.identifier.name %>
</p>

<%= link_to 'Edit', edit_uuid_identifier_path(@uuid_identifier) %> |
Expand Down
4 changes: 2 additions & 2 deletions app/views/uuids/index.html.erb
Expand Up @@ -5,7 +5,7 @@
<table>
<thead>
<tr>
<th>Packed</th>
<th>ID</th>
<th>Unpacked</th>
<th colspan="3"></th>
</tr>
Expand All @@ -14,7 +14,7 @@
<tbody>
<% @uuids.each do |uuid| %>
<tr>
<td><%= uuid.packed %></td>
<td><%= uuid.id %></td>
<td><%= uuid.unpacked %></td>
<td><%= link_to 'Show', uuid %></td>
<td><%= link_to 'Edit', edit_uuid_path(uuid) %></td>
Expand Down
4 changes: 2 additions & 2 deletions app/views/uuids/show.html.erb
@@ -1,8 +1,8 @@
<p id="notice"><%= notice %></p>

<p>
<strong>Packed:</strong>
<%= @uuid.packed %>
<strong>ID:</strong>
<%= @uuid.id %>
</p>

<p>
Expand Down
2 changes: 0 additions & 2 deletions config/routes.rb
Expand Up @@ -5,6 +5,4 @@
resources :uuid_identifiers
resources :identifiers
resources :uuids

root to: 'umpebc_kbarts#index'
end
23 changes: 23 additions & 0 deletions public/index.html
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Fulcimen</title>
</head>
<body>
<div id="maincontent">
<div class="container">
<div class="row">
<h1>Fulcimen</h1>
<ul>
<li><a href="identifiers">Indentifiers</a></li>
<li><a href="rails/mailers/notifier">Notifier Mailer (Previews)</a></li>
<li><a href="umpebc_kbarts">UMPEBC KBARTs</a></li>
<li><a href="uuids">UUIDs</a></li>
<li><a href="uuid_identifiers">UUID Identifiers</a></li>
</ul>
</div>
</div>
</div>
</body>
</html>
Expand Up @@ -66,7 +66,7 @@ def mock_client
# let(:lib_ptg_box) { instance_double(LibPtgBox::LibPtgBox, 'lib_ptg_box') }
let(:lib_ptg_box) { LibPtgBox::LibPtgBox.new }

it { is_expected.to eq("synchronize\n") }
it { is_expected.not_to be_empty }
end

describe '#assemble_marc_files' do
Expand Down

0 comments on commit b7b9ac5

Please sign in to comment.