|
1 | 1 | <div id="holdings">
|
| 2 | + |
| 3 | +<div class="numb"></div> |
2 | 4 | <table>
|
3 | 5 | <tr>
|
4 | 6 | <th>Where is this?</th>
|
|
26 | 28 | <% if @current_loc.include? "Free" then @current_loc = "free" end %>
|
27 | 29 | <% if @current_loc.include? "University of Alberta" then @current_loc = "universityofalberta" end %>
|
28 | 30 | <% if @current_loc.include? "Covenant" then @current_loc = "covenant" end %>
|
29 |
| - <% if @current_loc.include? "Innovates" then @current_loc = "innovates" end %> |
30 |
| - <% @library = @libraries[@current_loc.downcase.gsub(/\s+/, "")] %> |
31 |
| - <% @proxy = @library['proxy'] %> |
| 31 | + <% if @current_loc.include? "Innovates" then @current_loc = "innovates" end %> |
| 32 | + <% @library = @libraries[@current_loc.downcase.gsub(/\s+/, "")] %> |
| 33 | + <% @proxy = @library['proxy'] %> |
32 | 34 |
|
33 | 35 | <% @unavailable = true if @statuses[item[:status].to_s.downcase] == "unavailable" %>
|
34 | 36 | <tr>
|
35 | 37 | <td>
|
36 |
| - <p class="lib-loc"><%= @locationname %> |
37 |
| - <% if @locationurl %> |
38 |
| - <a href="<%= @locationurl %>" target="_blank"><span class="glyphicon glyphicon-info-sign"></span></a> |
39 |
| - <% end %> |
40 |
| - </p> |
41 |
| - |
42 |
| - <% if @links %> |
43 |
| - <% @links.each{|name,link| %> |
44 |
| - <% if (name.include?(@library["name"])) then %> <%#or (name.include?("Free")) or (name.include?("NEOS")) then %> |
45 |
| - <% @current_link = "#{@proxy}#{link}" %> |
46 |
| - <% if item[:call] == "Internet Access" %> |
47 |
| - |
48 |
| - <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> |
49 |
| - <% else %> |
50 |
| - <span class="loc-call"><span class="a-label">call number: </span><%= item[:call] %></span> |
51 |
| - <% end %> |
| 38 | + <p class="lib-loc"> |
| 39 | + <%= @locationname %> |
| 40 | + <% if @locationurl %> |
| 41 | + <a href="<%= @locationurl %>" target="_blank"> |
| 42 | + <span class="glyphicon glyphicon-info-sign"> |
| 43 | + </span> |
| 44 | + </a> |
52 | 45 | <% end %>
|
53 |
| - <% } %> |
54 |
| - <% @links.each{|name,link| %> |
55 |
| - <% if (name.include?("NEOS")) then %> <%#or (name.include?("Free")) or (name.include?("NEOS")) then %> |
56 |
| - <% @current_link = "#{@proxy}#{link}" %> |
57 |
| - <% if item[:call] == "Internet Access" %> |
58 |
| - |
59 |
| - <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> |
60 |
| - <%# @links.delete(name) %> |
61 |
| - <% else %> |
62 |
| - <span class="loc-call"><span class="a-label">call number: </span><%= item[:call] %></span> |
| 46 | + </p> |
| 47 | + <% if @links %> |
| 48 | + <% @links.each{|name,link| %> |
| 49 | + <% if (name.include?(@library["name"])) %> |
| 50 | + <% @current_link = "#{@proxy}#{link}" %> |
| 51 | + <% if item[:call] == "Internet Access" %> |
| 52 | + <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> |
| 53 | + <% else %> |
| 54 | + <span class="loc-call"><span class="a-label">call number: </span><%= item[:call] %></span> |
| 55 | + <% end %> |
63 | 56 | <% end %>
|
64 |
| - <% end %> |
65 |
| - <% } %> |
| 57 | + <% } %> |
| 58 | + <% @links.each{|name,link| %> |
| 59 | + <% if (name.include?("NEOS")) or (name.include?("Free")) or (name.include?("NEOS")) then %> |
| 60 | + <% @current_link = "#{@proxy}#{link}" %> |
| 61 | + <% if item[:call] == "Internet Access" %> |
| 62 | + <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> |
| 63 | + <%# @links.delete(name) %> |
| 64 | + <% else %> |
| 65 | + <span class="loc-call"><span class="a-label">call number: </span><%= item[:call] %></span> |
| 66 | + <% end %> |
| 67 | + <% end %> |
| 68 | + <% } %> |
66 | 69 | <% else %>
|
67 |
| - <% if item[:call] == "Internet Access" %> |
68 |
| - |
69 |
| - <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> |
70 |
| - <% else %> |
| 70 | + <% if item[:call] == "Internet Access" %> |
| 71 | + <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> |
| 72 | + <% else %> |
71 | 73 | <span class="loc-call"><span class="a-label">call number: </span><%= item[:call] %></span>
|
72 |
| - <% end %> |
| 74 | + <% end %> |
73 | 75 | <% end %>
|
74 | 76 |
|
75 | 77 | <div class="statuses">
|
76 | 78 | <span class="a-label">status: </span>
|
77 |
| - <% if item[:status] == "CHECKEDOUT" %> |
78 |
| - <% if item[:due] %> |
79 |
| - Due: <%= Date.parse(item[:due]) %> |
| 79 | + <% if item[:status] == "CHECKEDOUT" %> |
| 80 | + <% if item[:due] %> |
| 81 | + Due: <%= Date.parse(item[:due]) %> |
| 82 | + <% else %> |
| 83 | + Unknown/Never |
| 84 | + <% end %> |
80 | 85 | <% else %>
|
81 |
| - Unknown/Never |
82 |
| - <% end %> |
83 |
| - <% else %> |
84 |
| - <%= @statuses[item[:status].to_s.downcase] %> |
85 |
| - <% if @unavailable %> |
86 |
| - <p style="font-size: small"><strong>Note: For access, please contact <%= link_to $libraryname+" Library", $homeurl %></strong></p> |
87 |
| - <% end %> |
88 |
| - <% if item[:public_note] %> |
89 |
| - <p style="font-size:small"><strong>Note: <%= item[:public_note] %></strong></p> |
| 86 | + <%= @statuses[item[:status].to_s.downcase] %> |
| 87 | + <% if @unavailable %> |
| 88 | + <p style="font-size: small"><strong>Note: For access, please contact <%= link_to $libraryname+" Library", $homeurl %></strong></p> |
| 89 | + <% end %> |
| 90 | + <% if item[:public_note] %> |
| 91 | + <p style="font-size:small"><strong>Note: <%= item[:public_note] %></strong></p> |
| 92 | + <% end %> |
90 | 93 | <% end %>
|
91 |
| - <% end %> |
92 |
| - </div> |
93 |
| - </td> |
94 |
| - </tr> |
| 94 | + </div> |
| 95 | + </td> |
| 96 | + </tr> |
95 | 97 | <% @unavailable = false %>
|
96 | 98 | <% end %>
|
97 | 99 | </table>
|
|
0 commit comments