Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Commit

Permalink
fixing the eresources holdings bug. Updating logos
Browse files Browse the repository at this point in the history
  • Loading branch information
nnunn committed Aug 20, 2018
1 parent 26d2c07 commit 3d4e7b6
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 52 deletions.
Binary file modified app/assets/images/macewanuniversity.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
106 changes: 54 additions & 52 deletions app/views/catalog/_symphony_holdings.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<div id="holdings">

<div class="numb"></div>
<table>
<tr>
<th>Where is this?</th>
Expand Down Expand Up @@ -26,72 +28,72 @@
<% if @current_loc.include? "Free" then @current_loc = "free" end %>
<% if @current_loc.include? "University of Alberta" then @current_loc = "universityofalberta" end %>
<% if @current_loc.include? "Covenant" then @current_loc = "covenant" end %>
<% if @current_loc.include? "Innovates" then @current_loc = "innovates" end %>
<% @library = @libraries[@current_loc.downcase.gsub(/\s+/, "")] %>
<% @proxy = @library['proxy'] %>
<% if @current_loc.include? "Innovates" then @current_loc = "innovates" end %>
<% @library = @libraries[@current_loc.downcase.gsub(/\s+/, "")] %>
<% @proxy = @library['proxy'] %>

<% @unavailable = true if @statuses[item[:status].to_s.downcase] == "unavailable" %>
<tr>
<td>
<p class="lib-loc"><%= @locationname %>
<% if @locationurl %>
<a href="<%= @locationurl %>" target="_blank"><span class="glyphicon glyphicon-info-sign"></span></a>
<% end %>
</p>

<% if @links %>
<% @links.each{|name,link| %>
<% if (name.include?(@library["name"])) then %> <%#or (name.include?("Free")) or (name.include?("NEOS")) then %>
<% @current_link = "#{@proxy}#{link}" %>
<% if item[:call] == "Internet Access" %>

<strong><a href="<%= @current_link %>" target="_blank" class="loc-call"><span class="glyphicon glyphicon-share-alt"></span> Click here for Internet Access</a></strong><p style="font-size:10pt;">(<%= name %>)</p></td>
<% else %>
<span class="loc-call"><span class="a-label">call number: </span><%= item[:call] %></span>
<% end %>
<p class="lib-loc">
<%= @locationname %>
<% if @locationurl %>
<a href="<%= @locationurl %>" target="_blank">
<span class="glyphicon glyphicon-info-sign">
</span>
</a>
<% end %>
<% } %>
<% @links.each{|name,link| %>
<% if (name.include?("NEOS")) then %> <%#or (name.include?("Free")) or (name.include?("NEOS")) then %>
<% @current_link = "#{@proxy}#{link}" %>
<% if item[:call] == "Internet Access" %>

<strong><a href="<%= @current_link %>" target="_blank" class="loc-call"><span class="glyphicon glyphicon-share-alt"></span> Click here for Internet Access</a></strong><p style="font-size:10pt;">(<%= name %>)</p></td>
<%# @links.delete(name) %>
<% else %>
<span class="loc-call"><span class="a-label">call number: </span><%= item[:call] %></span>
</p>
<% if @links %>
<% @links.each{|name,link| %>
<% if (name.include?(@library["name"])) %>
<% @current_link = "#{@proxy}#{link}" %>
<% if item[:call] == "Internet Access" %>
<strong><a href="<%= @current_link %>" target="_blank" class="loc-call"><span class="glyphicon glyphicon-share-alt"></span> Click here for Internet Access</a></strong><p style="font-size:10pt;">(<%= name %>)</p>
<% else %>
<span class="loc-call"><span class="a-label">call number: </span><%= item[:call] %></span>
<% end %>
<% end %>
<% end %>
<% } %>
<% } %>
<% @links.each{|name,link| %>
<% if (name.include?("NEOS")) or (name.include?("Free")) or (name.include?("NEOS")) then %>
<% @current_link = "#{@proxy}#{link}" %>
<% if item[:call] == "Internet Access" %>
<strong><a href="<%= @current_link %>" target="_blank" class="loc-call"><span class="glyphicon glyphicon-share-alt"></span> Click here for Internet Access</a></strong><p style="font-size:10pt;">(<%= name %>)</p></td>
<%# @links.delete(name) %>
<% else %>
<span class="loc-call"><span class="a-label">call number: </span><%= item[:call] %></span>
<% end %>
<% end %>
<% } %>
<% else %>
<% if item[:call] == "Internet Access" %>

<strong><a href="<%= @current_link %>" target="_blank" class="loc-call"><span class="glyphicon glyphicon-share-alt"></span> Click here for Internet Access</a></strong></td>
<% else %>
<% if item[:call] == "Internet Access" %>
<strong><a href="<%= @current_link %>" target="_blank" class="loc-call"><span class="glyphicon glyphicon-share-alt"></span> Click here for Internet Access</a></strong></td>
<% else %>
<span class="loc-call"><span class="a-label">call number: </span><%= item[:call] %></span>
<% end %>
<% end %>
<% end %>

<div class="statuses">
<span class="a-label">status: </span>
<% if item[:status] == "CHECKEDOUT" %>
<% if item[:due] %>
Due: <%= Date.parse(item[:due]) %>
<% if item[:status] == "CHECKEDOUT" %>
<% if item[:due] %>
Due: <%= Date.parse(item[:due]) %>
<% else %>
Unknown/Never
<% end %>
<% else %>
Unknown/Never
<% end %>
<% else %>
<%= @statuses[item[:status].to_s.downcase] %>
<% if @unavailable %>
<p style="font-size: small"><strong>Note: For access, please contact <%= link_to $libraryname+" Library", $homeurl %></strong></p>
<% end %>
<% if item[:public_note] %>
<p style="font-size:small"><strong>Note: <%= item[:public_note] %></strong></p>
<%= @statuses[item[:status].to_s.downcase] %>
<% if @unavailable %>
<p style="font-size: small"><strong>Note: For access, please contact <%= link_to $libraryname+" Library", $homeurl %></strong></p>
<% end %>
<% if item[:public_note] %>
<p style="font-size:small"><strong>Note: <%= item[:public_note] %></strong></p>
<% end %>
<% end %>
<% end %>
</div>
</td>
</tr>
</div>
</td>
</tr>
<% @unavailable = false %>
<% end %>
</table>
Expand Down

0 comments on commit 3d4e7b6

Please sign in to comment.