<%= @library.display_name.localize -%>

<%= notice %>

<%= t('activerecord.attributes.library.name') -%>: <%= @library.name -%> <% unless @library.web? %> (ISIL: <%= @library.isil %>) <% end %>

<%- unless @library.web? -%>

<%= t('library.address') -%>: <%= @library.zip_code -%> <%= @library.address -%>
<%= t('activerecord.attributes.library.telephone_number_1') -%>: <%= @library.telephone_number_1 -%> <%= t('activerecord.attributes.library.telephone_number_2') -%>: <%= @library.telephone_number_2 -%>
<%= t('activerecord.attributes.library.fax_number') -%>: <%= @library.fax_number -%>

<%= @library.opening_hour -%>

<%= @library.note -%>

<%= render 'libraries/map', library: @library if @library.latitude and @library.longitude -%>
<% if current_user.try(:has_role?, 'Librarian') %>
<%- if @library.profiles.librarians.exists? -%>
    <%- @library.profiles.librarians.each do |librarian| -%>
  • <%= link_to librarian.user.username, librarian -%> <%- unless librarian.note.blank? -%>
    <%= librarian.note -%> <%- end -%>
  • <%- end -%>
<%- end -%>
<%- end -%>

<%= link_to t('shelf.update_display_order'), shelves_path(library_id: @library.name) %> <%- @library.shelves.each do |shelf| -%> "> <%- end -%>
<%= t('activerecord.models.shelf') -%> <%= t('library.number_of_item') -%> <%= t('activerecord.attributes.shelf.note') -%>
<%= link_to shelf.display_name.localize, shelf_path(shelf, library_id: @library.name) -%> <%- shelf.picture_files.each do |picture_file| -%> <%= link_to image_tag('icons/picture.png', size: '16x16', class: 'enju_icon', alt: t('page.picture')), picture_file_path(picture_file, format: :download), rel: "shelf_#{h(shelf.id)}" -%> <%- end -%> <%= shelf.items_count -%> <%= shelf.note -%>

<% if defined?(EnjuEvent) %>

<%= link_to t('activerecord.models.event'), events_path(library_id: @library.name) -%>

<%= render 'calendar' -%>
<% end %> <%- if policy(@library).update? -%>

<%= t('page.configuration') -%>

<%= t('activerecord.attributes.library.call_number_rows') -%>: <%= @library.call_number_rows -%>

<%= t('activerecord.attributes.library.call_number_delimiter') -%>: <%= @library.call_number_delimiter -%>

<%- end -%>
<%- end -%>