enju_message 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. data/Rakefile +1 -1
  2. data/app/views/notifier/message_notification.en.text.erb +2 -2
  3. data/app/views/notifier/message_notification.ja.text.erb +2 -2
  4. data/lib/enju_message/version.rb +1 -1
  5. data/spec/dummy/db/test.sqlite3 +0 -0
  6. data/spec/dummy/solr/data/test/index/segments_1 +0 -0
  7. data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
  8. metadata +1 -124
  9. data/app/views/baskets/edit.html.erb +0 -30
  10. data/app/views/baskets/index.html.erb +0 -31
  11. data/app/views/baskets/new.html.erb +0 -29
  12. data/app/views/baskets/show.html.erb +0 -23
  13. data/app/views/carrier_type_has_checkout_types/_form.html.erb +0 -19
  14. data/app/views/carrier_type_has_checkout_types/edit.html.erb +0 -13
  15. data/app/views/carrier_type_has_checkout_types/index.html.erb +0 -33
  16. data/app/views/carrier_type_has_checkout_types/new.html.erb +0 -12
  17. data/app/views/carrier_type_has_checkout_types/show.html.erb +0 -29
  18. data/app/views/checked_items/_checkouts.html.erb +0 -20
  19. data/app/views/checked_items/_list.html.erb +0 -39
  20. data/app/views/checked_items/edit.html.erb +0 -21
  21. data/app/views/checked_items/index.html.erb +0 -32
  22. data/app/views/checked_items/index.js.erb +0 -1
  23. data/app/views/checked_items/new.html.erb +0 -20
  24. data/app/views/checked_items/show.html.erb +0 -24
  25. data/app/views/checkins/_form.html.erb +0 -24
  26. data/app/views/checkins/_list.html.erb +0 -51
  27. data/app/views/checkins/edit.html.erb +0 -26
  28. data/app/views/checkins/index.html.erb +0 -16
  29. data/app/views/checkins/index.js.erb +0 -1
  30. data/app/views/checkins/new.html.erb +0 -14
  31. data/app/views/checkins/show.html.erb +0 -24
  32. data/app/views/checkout_stat_has_manifestations/_form.html.erb +0 -15
  33. data/app/views/checkout_stat_has_manifestations/edit.html.erb +0 -13
  34. data/app/views/checkout_stat_has_manifestations/index.html.erb +0 -33
  35. data/app/views/checkout_stat_has_manifestations/new.html.erb +0 -12
  36. data/app/views/checkout_stat_has_manifestations/show.html.erb +0 -28
  37. data/app/views/checkout_stat_has_users/_form.html.erb +0 -15
  38. data/app/views/checkout_stat_has_users/edit.html.erb +0 -13
  39. data/app/views/checkout_stat_has_users/index.html.erb +0 -33
  40. data/app/views/checkout_stat_has_users/new.html.erb +0 -12
  41. data/app/views/checkout_stat_has_users/show.html.erb +0 -28
  42. data/app/views/checkout_types/_form.html.erb +0 -19
  43. data/app/views/checkout_types/edit.html.erb +0 -13
  44. data/app/views/checkout_types/index.html.erb +0 -50
  45. data/app/views/checkout_types/new.html.erb +0 -12
  46. data/app/views/checkout_types/show.html.erb +0 -38
  47. data/app/views/checkouts/_form.html.erb +0 -28
  48. data/app/views/checkouts/_index.html.erb +0 -23
  49. data/app/views/checkouts/_index_overdue.html.erb +0 -33
  50. data/app/views/checkouts/_index_user.html.erb +0 -44
  51. data/app/views/checkouts/_list.html.erb +0 -45
  52. data/app/views/checkouts/edit.html.erb +0 -51
  53. data/app/views/checkouts/index.atom.builder +0 -14
  54. data/app/views/checkouts/index.csv.erb +0 -4
  55. data/app/views/checkouts/index.html.erb +0 -11
  56. data/app/views/checkouts/index.ics.erb +0 -13
  57. data/app/views/checkouts/index.rss.builder +0 -38
  58. data/app/views/checkouts/new.html.erb +0 -20
  59. data/app/views/checkouts/show.html.erb +0 -35
  60. data/app/views/circulation_statuses/_form.html.erb +0 -19
  61. data/app/views/circulation_statuses/edit.html.erb +0 -13
  62. data/app/views/circulation_statuses/index.html.erb +0 -43
  63. data/app/views/circulation_statuses/new.html.erb +0 -12
  64. data/app/views/circulation_statuses/show.html.erb +0 -29
  65. data/app/views/item_has_use_restrictions/edit.html.erb +0 -27
  66. data/app/views/item_has_use_restrictions/index.html.erb +0 -32
  67. data/app/views/item_has_use_restrictions/new.html.erb +0 -25
  68. data/app/views/item_has_use_restrictions/show.html.erb +0 -29
  69. data/app/views/lending_policies/_form.html.erb +0 -41
  70. data/app/views/lending_policies/edit.html.erb +0 -13
  71. data/app/views/lending_policies/index.html.erb +0 -42
  72. data/app/views/lending_policies/new.html.erb +0 -12
  73. data/app/views/lending_policies/show.html.erb +0 -50
  74. data/app/views/manifestation_checkout_stats/_form.html.erb +0 -19
  75. data/app/views/manifestation_checkout_stats/edit.html.erb +0 -13
  76. data/app/views/manifestation_checkout_stats/index.html.erb +0 -35
  77. data/app/views/manifestation_checkout_stats/new.html.erb +0 -12
  78. data/app/views/manifestation_checkout_stats/show.csv.erb +0 -4
  79. data/app/views/manifestation_checkout_stats/show.html.erb +0 -55
  80. data/app/views/manifestation_reserve_stats/_form.html.erb +0 -19
  81. data/app/views/manifestation_reserve_stats/edit.html.erb +0 -13
  82. data/app/views/manifestation_reserve_stats/index.html.erb +0 -35
  83. data/app/views/manifestation_reserve_stats/new.html.erb +0 -12
  84. data/app/views/manifestation_reserve_stats/show.csv.erb +0 -4
  85. data/app/views/manifestation_reserve_stats/show.html.erb +0 -55
  86. data/app/views/reserve_stat_has_manifestations/_form.html.erb +0 -15
  87. data/app/views/reserve_stat_has_manifestations/edit.html.erb +0 -13
  88. data/app/views/reserve_stat_has_manifestations/index.html.erb +0 -33
  89. data/app/views/reserve_stat_has_manifestations/new.html.erb +0 -12
  90. data/app/views/reserve_stat_has_manifestations/show.html.erb +0 -28
  91. data/app/views/reserve_stat_has_users/_form.html.erb +0 -15
  92. data/app/views/reserve_stat_has_users/edit.html.erb +0 -13
  93. data/app/views/reserve_stat_has_users/index.html.erb +0 -33
  94. data/app/views/reserve_stat_has_users/new.html.erb +0 -12
  95. data/app/views/reserve_stat_has_users/show.html.erb +0 -28
  96. data/app/views/reserves/_form.html.erb +0 -49
  97. data/app/views/reserves/_new.html.erb +0 -44
  98. data/app/views/reserves/_new_user.html.erb +0 -50
  99. data/app/views/reserves/_title.html.erb +0 -19
  100. data/app/views/reserves/edit.html.erb +0 -42
  101. data/app/views/reserves/index.atom.builder +0 -14
  102. data/app/views/reserves/index.csv.erb +0 -4
  103. data/app/views/reserves/index.html.erb +0 -75
  104. data/app/views/reserves/index.rss.builder +0 -41
  105. data/app/views/reserves/new.html.erb +0 -5
  106. data/app/views/reserves/show.html.erb +0 -61
  107. data/app/views/use_restrictions/_form.html.erb +0 -19
  108. data/app/views/use_restrictions/edit.html.erb +0 -13
  109. data/app/views/use_restrictions/index.html.erb +0 -43
  110. data/app/views/use_restrictions/new.html.erb +0 -12
  111. data/app/views/use_restrictions/show.html.erb +0 -29
  112. data/app/views/user_checkout_stats/_form.html.erb +0 -19
  113. data/app/views/user_checkout_stats/edit.html.erb +0 -13
  114. data/app/views/user_checkout_stats/index.html.erb +0 -35
  115. data/app/views/user_checkout_stats/new.html.erb +0 -12
  116. data/app/views/user_checkout_stats/show.csv.erb +0 -4
  117. data/app/views/user_checkout_stats/show.html.erb +0 -55
  118. data/app/views/user_group_has_checkout_types/edit.html.erb +0 -63
  119. data/app/views/user_group_has_checkout_types/index.html.erb +0 -32
  120. data/app/views/user_group_has_checkout_types/new.html.erb +0 -62
  121. data/app/views/user_group_has_checkout_types/show.html.erb +0 -64
  122. data/app/views/user_reserve_stats/_form.html.erb +0 -19
  123. data/app/views/user_reserve_stats/edit.html.erb +0 -13
  124. data/app/views/user_reserve_stats/index.html.erb +0 -35
  125. data/app/views/user_reserve_stats/new.html.erb +0 -12
  126. data/app/views/user_reserve_stats/show.csv.erb +0 -4
  127. data/app/views/user_reserve_stats/show.html.erb +0 -54
  128. data/spec/dummy/db/development.sqlite3 +0 -0
  129. data/spec/dummy/db/production.sqlite3 +0 -0
@@ -1,45 +0,0 @@
1
- <table class="index">
2
- <tr>
3
- <th><%= t('activerecord.models.user') %></th>
4
- <th class="checked_item_title"><%= t('page.title') %></th>
5
- <th><%= t('activerecord.attributes.checkout.due_date') %></th>
6
- <th></th>
7
- </tr>
8
-
9
- <%- if @checkouts -%>
10
- <%- @checkouts.each_with_index do |checkout, i| %>
11
- <tr class="line<%= cycle("0", "1") -%>">
12
- <td>
13
- <% if checkout.user %>
14
- <%= link_to checkout.user_username, checkout.user %>
15
- <br />
16
- (<%= link_to checkout.user_user_number, checkout.user %>)
17
- <% end %>
18
- </td>
19
- <td>
20
- <%= render 'manifestations/show_index', :manifestation => checkout.item.manifestation -%>
21
- (<%= link_to checkout.item.item_identifier, checkout.item -%>)
22
- </td>
23
- <td>
24
- <%= l(checkout.due_date, :format => :only_date) -%>
25
- <br />
26
- <% if checkout.checkin %>
27
- <strong><%= t('checkout.returned') %></strong>
28
- <% end %>
29
- </td>
30
- <td>
31
- <%- if can? :update, checkout -%>
32
- <% unless checkout.checkin %>
33
- <%= link_to t('checkout.extend'), edit_checkout_path(checkout) -%>
34
- <% end %>
35
- <%- end -%>
36
- <%- if can? :destroy, checkout -%>
37
- <%= link_to t('page.destroy'), checkout, :confirm => t('page.are_you_sure'), :method => :delete -%>
38
- <%- end -%>
39
- </td>
40
- </tr>
41
- <%- end -%>
42
- <%- end -%>
43
- </table>
44
-
45
- <%= will_paginate(@checkouts) %>
@@ -1,51 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.editing', :model => t('activerecord.models.checkout')) -%></h1>
3
- <div id="content_list">
4
-
5
- <%= render 'manifestations/title', :manifestation => @checkout.item.manifestation if @checkout.item -%>
6
-
7
- <h3><%= t('checkout.renewal') -%></h3>
8
- <%- if @checkout.checkout_renewable? -%>
9
- <%= form_for(@checkout) do |f| -%>
10
- <%= t('checkout.new_due_date') -%>: <%= l(@new_due_date, :format => :only_date) if @new_due_date -%>
11
- <%= f.hidden_field :due_date, :value => @new_due_date -%>
12
- <br />
13
- <%= f.submit %>
14
- <%- end -%>
15
- <%- else -%>
16
- <div class="field"><%= t('checkout.this_item_cant_be_renewed') -%></div>
17
- <%- end -%>
18
-
19
- <% if current_user.has_role?('Librarian') %>
20
- <h3><%= t('checkout.editing_due_date') -%></h3>
21
-
22
- <%= form_for(@checkout) do |f| -%>
23
- <%= f.error_messages -%>
24
-
25
- <div class="field">
26
- <%= f.label :due_date -%>
27
- <%= f.hidden_field :user_id -%>
28
- <%= f.hidden_field :item_id -%>
29
- <%= f.text_field :due_date, :value => @checkout.due_date.try(:strftime, "%Y-%m-%d"), :class => 'date_field', :placeholder => "#{t('page.example')}: 2011-04-12"-%>
30
- </div>
31
- <div class="field">
32
- <%= t('checkout.renewal_count') -%>: <%= f.text_field :checkout_renewal_count, :class => 'resource_integer' -%>
33
- </div>
34
-
35
- <div class="actions">
36
- <%= f.submit %>
37
- </div>
38
- <%- end -%>
39
- <%- end -%>
40
- </div>
41
- </div>
42
-
43
- <div id="submenu" class="ui-corner-all">
44
- <%= render 'manifestations/book_jacket', :manifestation => @checkout.item.manifestation if @checkout.item -%>
45
- <ul>
46
- <li><%= link_to t('page.show'), @checkout -%></li>
47
- <% if @checkout.user %>
48
- <li><%= link_to t('page.back'), user_checkouts_path(@checkout.user) -%></li>
49
- <% end %>
50
- </ul>
51
- </div>
@@ -1,14 +0,0 @@
1
- atom_feed(:url => checkouts_url(:format => :atom)) do |feed|
2
- if @user
3
- feed.title t('checkout.user_checkout', :login_name => @user.username)
4
- else
5
- feed.title t('checkout.library_group_checkout', :library_group_name => @library_group.display_name.localize)
6
- end
7
- feed.updated(@checkouts.first ? @checkouts.first.created_at : Time.zone.now)
8
-
9
- @checkouts.each do |checkout|
10
- feed.entry(checkout) do |entry|
11
- entry.title(checkout.item.manifestation.original_title)
12
- end
13
- end
14
- end
@@ -1,4 +0,0 @@
1
- <%- if params[:view] == 'overdue' -%><%= ('Overdue items') -%><%- else -%><%= ('Checkout items') -%><%- end -%> (created_at: <%= Time.now -%>)<%= "\n" -%>
2
- <%- @checkouts.each do |checkout| -%>
3
- "<%=h checkout.user_username -%>","<%=h checkout.item.item_identifier -%>","<%=h checkout.item.manifestation.original_title -%>","<%=h checkout.created_at -%>","<%= checkout.due_date -%>"<%= "\n" -%>
4
- <%- end -%>
@@ -1,11 +0,0 @@
1
- <%- if @user -%>
2
- <%= render 'index_user', :user => @user -%>
3
- <%- elsif !current_user.has_role?('Librarian') -%>
4
- <%= render 'index_user', :user => current_user -%>
5
- <%- else -%>
6
- <%- if params[:view] == 'overdue' -%>
7
- <%= render 'index_overdue' -%>
8
- <%- else -%>
9
- <%= render 'index' -%>
10
- <%- end -%>
11
- <%- end -%>
@@ -1,13 +0,0 @@
1
- <%=
2
- checkouts = @checkouts
3
- RiCal.Calendar do
4
- checkouts.each do |checkout|
5
- event do
6
- description checkout.item.manifestation.original_title
7
- dtstart checkout.created_at
8
- dtend checkout.due_date
9
- location checkout.item.shelf.library.address
10
- end
11
- end
12
- end.to_s
13
- -%>
@@ -1,38 +0,0 @@
1
- xml.instruct! :xml, :version=>"1.0"
2
- xml.rss('version' => "2.0",
3
- 'xmlns:opensearch' => "http://a9.com/-/spec/opensearch/1.1/",
4
- 'xmlns:atom' => "http://www.w3.org/2005/Atom"){
5
- xml.channel{
6
- if @user
7
- xml.title t('checkout.user_checkout', :login_name => @user.username)
8
- xml.link user_checkouts_url(@user)
9
- xml.tag! "atom:link", :rel => 'self', :href => "#{request.protocol}#{request.host_with_port}#{url_for(params.merge(:format => :rss))}"
10
- xml.tag! "atom:link", :rel => 'alternate', :href => user_checkouts_url(@user)
11
- else
12
- xml.title t('checkout.library_group_checkout', :library_group_name => @library_group.display_name.localize)
13
- xml.link checkouts_url
14
- xml.tag! "atom:link", :rel => 'self', :href => "#{request.protocol}#{request.host_with_port}#{url_for(params.merge(:format => :rss))}"
15
- xml.tag! "atom:link", :rel => 'alternate', :href => checkouts_url
16
- end
17
- xml.description "Next-L Enju, an open source integrated library system developed by Project Next-L"
18
- xml.language @locale.to_s
19
- xml.ttl "60"
20
- #xml.tag! "atom:link", :rel => 'search', :type => 'application/opensearchdescription+xml', :href => "http://#{request.host_with_port}/page/opensearch"
21
- unless params[:query].blank?
22
- xml.tag! "opensearch:totalResults", @count[:query_result]
23
- xml.tag! "opensearch:startIndex", @checkouts.offset + 1
24
- xml.tag! "opensearch:itemsPerPage", @checkouts.per_page
25
- #xml.tag! "opensearch:Query", :role => 'request', :searchTerms => params[:query], :startPage => (params[:page] || 1)
26
- end
27
- @checkouts.each do |checkout|
28
- xml.item do
29
- xml.title checkout.item.manifestation.original_title
30
- #xml.description(checkout.title)
31
- # rfc822
32
- xml.pubDate checkout.created_at.utc.rfc822
33
- xml.link checkout_url(checkout)
34
- xml.guid checkout_url(checkout), :isPermaLink => "true"
35
- end
36
- end
37
- }
38
- }
@@ -1,20 +0,0 @@
1
- <h1 class="title"><%= t('page.new', :model => t('activerecord.models.checkouts')) -%></h1>
2
-
3
- <%= form_for(@checkout) do |f| -%>
4
- <%= f.error_messages -%>
5
-
6
- <div class="field">
7
- <%= f.label t('activerecord.models.user') -%><br />
8
- <%= f.text_field :user_id -%>
9
- </div>
10
- <div class="field">
11
- <%= f.label t('activerecord.models.item') -%><br />
12
- <%= f.text_field :item_id -%>
13
- </div>
14
-
15
- <div class="actions">
16
- <%= f.submit %>
17
- </div>
18
- <%- end -%>
19
-
20
- <%= link_to t('page.back'), user_checkouts_path(@user) -%>
@@ -1,35 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.showing', :model => t('activerecord.models.checkout')) -%></h1>
3
- <div id="content_list">
4
- <p id="notice"><%= notice %></p>
5
-
6
- <%= render 'manifestations/title', :manifestation => @checkout.item.manifestation -%>
7
- <p>
8
- <strong><%= t('activerecord.attributes.item.item_identifier') -%></strong><br />
9
- <%= link_to @checkout.item.item_identifier, @checkout.item -%>
10
- </p>
11
- <p>
12
- <strong><%= t('activerecord.attributes.checkout.due_date') -%></strong><br />
13
- <%= l(@checkout.due_date, :format => :only_date) if @checkout.due_date -%>
14
- </p>
15
- <%- if can? :destroy, @checkout -%>
16
- <p>
17
- <strong><%= t('checkout.current_user') -%></strong><br />
18
- <%= link_to @checkout.user_username, @checkout.user if @checkout.user -%>
19
- </p>
20
- <%- end -%>
21
- </div>
22
- </div>
23
-
24
- <div id="submenu" class="ui-corner-all">
25
- <%= render 'manifestations/book_jacket', :manifestation => @checkout.item.manifestation -%>
26
- <ul>
27
- <li><%= link_to t('page.edit'), edit_checkout_path(@checkout) -%></li>
28
- <% if @checkout.user %>
29
- <li><%= link_to t('page.back'), user_checkouts_path(@checkout.user) -%></li>
30
- <% end %>
31
- <%- if current_user.has_role?('Librarian') -%>
32
- <li><%= link_to t('page.back_to', :model => t('activerecord.models.checkout')), checkouts_path -%></li>
33
- <%- end -%>
34
- </ul>
35
- </div>
@@ -1,19 +0,0 @@
1
- <%= form_for(@circulation_status, :validate => true) do |f| %>
2
- <%= f.error_notification %>
3
-
4
- <div class="field">
5
- <%= f.label :name %><br />
6
- <%= f.text_field :name %>
7
- </div>
8
- <div class="field">
9
- <%= f.label :display_name %><br />
10
- <%= f.text_area :display_name %>
11
- </div>
12
- <div class="field">
13
- <%= f.label :note %><br />
14
- <%= f.text_area :note %>
15
- </div>
16
- <div class="actions">
17
- <%= f.submit %>
18
- </div>
19
- <% end %>
@@ -1,13 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.editing', :model => t('activerecord.models.circulation_status')) -%></h1>
3
- <div id="content_list">
4
- <%= render 'form' %>
5
- </div>
6
- </div>
7
-
8
- <div id="submenu" class="ui-corner-all">
9
- <ul>
10
- <li><%= link_to t('page.show'), @circulation_status -%></li>
11
- <li><%= link_to t('page.back'), circulation_statuses_path -%></li>
12
- </ul>
13
- </div>
@@ -1,43 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.circulation_status')) -%></h1>
3
- <div id="content_list">
4
-
5
- <table class="index">
6
- <tr>
7
- <th id="position"></th>
8
- <th><%= t('activerecord.attributes.circulation_status.name') -%></th>
9
- <th><%= t('activerecord.attributes.circulation_status.display_name') -%></th>
10
- <th></th>
11
- </tr>
12
-
13
- <%- @circulation_statuses.each do |circulation_status| -%>
14
- <tr class="line<%= cycle("0", "1") -%>">
15
- <td>
16
- <%- if can? :update, circulation_status -%>
17
- <%= move_position(circulation_status) -%>
18
- <%- end -%>
19
- </td>
20
- <td><%= link_to circulation_status.name, circulation_status -%></td>
21
- <td><%= link_to circulation_status.display_name.localize, circulation_status -%></td>
22
- <td>
23
- <%- if can? :update, circulation_status -%>
24
- <%= link_to t('page.edit'), edit_circulation_status_path(circulation_status) -%>
25
- <% end %>
26
- <%- if can? :destroy, circulation_status -%>
27
- <%= link_to t('page.destroy'), circulation_status, :confirm => t('page.are_you_sure'), :method => :delete -%>
28
- <%- end -%>
29
- </td>
30
- </tr>
31
- <%- end -%>
32
- </table>
33
-
34
- </div>
35
- </div>
36
-
37
- <div id="submenu" class="ui-corner-all">
38
- <ul>
39
- <%- if can? :create, CirculationStatus -%>
40
- <li><%= link_to t('page.new', :model => t('activerecord.models.circulation_status')), new_circulation_status_path -%></li>
41
- <%- end -%>
42
- </ul>
43
- </div>
@@ -1,12 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.new', :model => t('activerecord.models.circulation_status')) -%></h1>
3
- <div id="content_list">
4
- <%= render 'form' %>
5
- </div>
6
- </div>
7
-
8
- <div id="submenu" class="ui-corner-all">
9
- <ul>
10
- <li><%= link_to t('page.back'), circulation_statuses_path -%></li>
11
- </ul>
12
- </div>
@@ -1,29 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.showing', :model => t('activerecord.models.circulation_status')) -%></h1>
3
- <div id="content_list">
4
- <p id="notice"><%= notice %></p>
5
-
6
- <p>
7
- <strong><%= t('activerecord.attributes.circulation_status.name') -%>:</strong>
8
- <%= @circulation_status.name -%>
9
- </p>
10
-
11
- <p>
12
- <strong><%= t('activerecord.attributes.circulation_status.display_name') -%>:</strong>
13
- <%= @circulation_status.display_name.localize -%>
14
- </p>
15
-
16
- <p>
17
- <strong><%= t('activerecord.attributes.circulation_status.note') -%>:</strong>
18
- <%= @circulation_status.note -%>
19
- </p>
20
-
21
- </div>
22
- </div>
23
-
24
- <div id="submenu" class="ui-corner-all">
25
- <ul>
26
- <li><%= link_to t('page.edit'), edit_circulation_status_path(@circulation_status) -%></li>
27
- <li><%= back_to_index(flash[:page_info]) -%></li>
28
- </ul>
29
- </div>
@@ -1,27 +0,0 @@
1
- <h1 class="title"><%= t('page.editing', :model => t('activerecord.models.item_has_use_restriction')) -%></h1>
2
-
3
- <%= form_for(@item_has_use_restriction) do |f| -%>
4
- <%= f.error_messages -%>
5
- <div class="field">
6
- <%= f.label t('activerecord.models.item') -%><br />
7
- <%- if @item_has_use_restriction.item -%>
8
- <%= link_to @item_has_use_restriction.item.item_identifier, @item_has_use_restriction.item -%>
9
- (<%= link_to @item_has_use_restriction.item.manifestation.original_title, @item_has_use_restriction.item.manifestation -%>)
10
- <%= f.hidden_field :item_id -%>
11
- <%- else -%>
12
- <%= f.text_field :item_id -%>
13
- <%- end -%>
14
- </div>
15
-
16
- <div class="field">
17
- <%= f.label t('activerecord.models.use_restriction') -%><br />
18
- <%= f.select(:use_restriction_id, @use_restrictions.collect{|u| [u.name, u.id]}) -%>
19
- </div>
20
-
21
- <div class="actions">
22
- <%= f.submit %>
23
- </div>
24
- <%- end -%>
25
-
26
- <%= link_to t('page.show'), @item_has_use_restriction -%> |
27
- <%= link_to t('page.back'), item_has_use_restrictions_path -%>
@@ -1,32 +0,0 @@
1
- <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.item_has_use_restriction')) -%></h1>
2
-
3
- <table>
4
- <tr>
5
- <th><%= t('activerecord.models.item') -%></th>
6
- <th><%= t('activerecord.attributes.item.item_identifier') -%></th>
7
- <th><%= t('activerecord.models.manifestation') -%></th>
8
- <th><%= t('activerecord.models.use_restriction') -%></th>
9
- </tr>
10
-
11
- <%- @item_has_use_restrictions.each do |item_has_use_restriction| -%>
12
- <tr>
13
- <td><%= link_to item_has_use_restriction.item_id, item_has_use_restriction.item -%></td>
14
- <td><%= link_to item_has_use_restriction.item.item_identifier, item_has_use_restriction.item -%></td>
15
- <td><%= link_to item_has_use_restriction.item.manifestation.original_title, item_has_use_restriction.item.manifestation -%></td>
16
- <td><%= link_to item_has_use_restriction.use_restriction.display_name.localize, item_has_use_restriction.use_restriction -%></td>
17
- <td><%= link_to t('page.show'), item_has_use_restriction -%></td>
18
- <td><%= link_to t('page.edit'), edit_item_has_use_restriction_path(item_has_use_restriction) -%></td>
19
- <td><%= link_to t('page.destroy'), item_has_use_restriction, :confirm => t('page.are_you_sure'), :method => :delete -%></td>
20
- </tr>
21
- <%- end -%>
22
- </table>
23
-
24
- <%= will_paginate(@item_has_use_restrictions) -%>
25
- <br />
26
-
27
- <%- if @item -%>
28
- <%= link_to t('page.new', :model => t('activerecord.models.item_has_use_restriction')), new_item_item_has_use_restriction_path(@item) -%>
29
- <%- else -%>
30
- <%= link_to t('page.new', :model => t('activerecord.models.item_has_use_restriction')), new_item_has_use_restriction_path -%>
31
- <%- end -%>
32
-
@@ -1,25 +0,0 @@
1
- <h1 class="title"><%= t('page.new', :model => t('activerecord.models.item_has_use_restriction')) -%></h1>
2
-
3
- <%= form_for(@item_has_use_restriction) do |f| -%>
4
- <%= f.error_messages -%>
5
- <div class="field">
6
- <%= f.label t('activerecord.models.item') -%><br />
7
- <%- if @item -%>
8
- <%= link_to @item.item_identifier, @item -%> (<%= link_to @item.manifestation.original_title, @item.manifestation -%>)
9
- <%= f.hidden_field :item_id, :value => @item.id -%>
10
- <%- else -%>
11
- <%= f.text_field :item_id -%>
12
- <%- end -%>
13
- </div>
14
-
15
- <div class="field">
16
- <%= f.label t('activerecord.models.use_restriction') -%><br />
17
- <%= f.select(:use_restriction_id, @use_restrictions.collect{|u| [u.name, u.id]}) -%>
18
- </div>
19
-
20
- <div class="actions">
21
- <%= f.submit %>
22
- </div>
23
- <%- end -%>
24
-
25
- <%= link_to t('page.back'), item_has_use_restrictions_path -%>
@@ -1,29 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.showing', :model => t('activerecord.models.item_has_use_restriction')) -%></h1>
3
- <div id="content_list">
4
- <p id="notice"><%= notice %></p>
5
-
6
- <p>
7
- <strong><%= t('activerecord.models.item') -%>:</strong>
8
- <%= link_to @item_has_use_restriction.item.item_identifier, @item_has_use_restriction.item -%>
9
- </p>
10
-
11
- <p>
12
- <strong><%= t('activerecord.attributes.item.item_identifier') -%>:</strong>
13
- <%= link_to @item_has_use_restriction.item.item_identifier, @item_has_use_restriction.item -%> (<%= link_to @item_has_use_restriction.item.manifestation.original_title, @item_has_use_restriction.item.manifestation -%>)
14
- </p>
15
-
16
- <p>
17
- <strong><%= t('activerecord.models.use_restriction') -%>:</strong>
18
- <%= link_to @item_has_use_restriction.use_restriction.display_name.localize, @item_has_use_restriction.use_restriction -%>
19
- </p>
20
-
21
- </div>
22
- </div>
23
-
24
- <div id="submenu" class="ui-corner-all">
25
- <ul>
26
- <li><%= link_to t('page.edit'), edit_item_has_use_restriction_path(@item_has_use_restriction) -%></li>
27
- <li><%= back_to_index(flash[:page_info]) -%></li>
28
- </ul>
29
- </div>
@@ -1,41 +0,0 @@
1
- <%= form_for(@lending_policy) do |f| -%>
2
- <%= f.error_messages -%>
3
-
4
- <div class="field">
5
- <%= f.label :item_id, t('activerecord.models.item') -%><br />
6
- <% if @lending_policy.item %>
7
- <%= link_to @lending_policy.item.item_identifier, @lending_policy.item -%>
8
- (<%= link_to @lending_policy.item.manifestation.try(:original_title), @lending_policy.item.manifestation %>)
9
- <%= f.hidden_field :item_id -%>
10
- <% else %>
11
- <%= f.text_field :item_id -%>
12
- <% end %>
13
- </div>
14
- <div class="field">
15
- <%= f.label :user_group_id, t('activerecord.models.user_group') -%><br />
16
- <%= f.select :user_group_id, @user_groups.collect{|u| [u.display_name.localize, u.id]} -%>
17
- </div>
18
- <div class="field">
19
- <%= f.label :loan_period -%><br />
20
- <%= f.text_field :loan_period -%>
21
- </div>
22
- <div class="field">
23
- <%= f.label :fixed_due_date -%><br />
24
- <%= f.text_field :fixed_due_date, :value => @lending_policy.fixed_due_date.try(:strftime, "%Y-%m-%d"), :class => 'date_field', :placeholder => "#{t('page.example')}: 2011-04-12"-%>
25
- </div>
26
- <div class="field">
27
- <%= f.label :renewal -%><br />
28
- <%= f.text_field :renewal -%>
29
- </div>
30
- <div class="field">
31
- <%= f.label :fine -%><br />
32
- <%= f.text_field :fine -%>
33
- </div>
34
- <div class="field">
35
- <%= f.label :note -%><br />
36
- <%= f.text_area :note -%>
37
- </div>
38
- <div class="actions">
39
- <%= f.submit %>
40
- </div>
41
- <%- end -%>
@@ -1,13 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.editing', :model => t('activerecord.models.lending_policy')) -%></h1>
3
- <div id="content_list">
4
- <%= render 'form' %>
5
- </div>
6
- </div>
7
-
8
- <div id="submenu" class="ui-corner-all">
9
- <ul>
10
- <li><%= link_to t('page.show'), @lending_policy -%></li>
11
- <li><%= link_to t('page.back'), lending_policies_path -%></li>
12
- </ul>
13
- </div>
@@ -1,42 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.lending_policy')) -%></h1>
3
- <div id="content_list">
4
-
5
- <table class="index">
6
- <tr>
7
- <th><%= t('activerecord.models.item') -%></th>
8
- <th><%= t('activerecord.models.user_group') -%></th>
9
- <th><%= t('activerecord.attributes.lending_policy.loan_period') -%></th>
10
- <th><%= t('activerecord.attributes.lending_policy.fixed_due_date') -%></th>
11
- <th><%= t('activerecord.attributes.lending_policy.renewal') -%></th>
12
- <th><%= t('activerecord.attributes.lending_policy.fine') -%></th>
13
- <th></th>
14
- </tr>
15
-
16
- <%- @lending_policies.each do |lending_policy| -%>
17
- <tr class="line<%= cycle("0", "1") -%>">
18
- <td>
19
- <%= link_to lending_policy.item.item_identifier, lending_policy.item -%><br />
20
- (<%= link_to lending_policy.item.manifestation.original_title, lending_policy.item.manifestation -%>)
21
- </td>
22
- <td><%= link_to lending_policy.user_group.display_name.localize, lending_policy.user_group -%></td>
23
- <td><%= lending_policy.loan_period -%></td>
24
- <td><%= lending_policy.fixed_due_date -%></td>
25
- <td><%= lending_policy.renewal -%></td>
26
- <td><%= lending_policy.fine -%></td>
27
- <td>
28
- <%= link_to t('page.show'), lending_policy -%>
29
- <%= link_to t('page.edit'), edit_lending_policy_path(lending_policy) -%>
30
- <%= link_to t('page.destroy'), lending_policy, :confirm => t('page.are_you_sure'), :method => :delete -%>
31
- </td>
32
- </tr>
33
- <%- end -%>
34
- </table>
35
-
36
- <%= will_paginate(@lending_policies) -%>
37
-
38
- </div>
39
- </div>
40
-
41
- <div id="submenu" class="ui-corner-all">
42
- </div>
@@ -1,12 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.new', :model => t('activerecord.models.lending_policy')) -%></h1>
3
- <div id="content_list">
4
- <%= render 'form' %>
5
- </div>
6
- </div>
7
-
8
- <div id="submenu" class="ui-corner-all">
9
- <ul>
10
- <li><%= link_to t('page.back'), lending_policies_path -%></li>
11
- </ul>
12
- </div>
@@ -1,50 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.showing', :model => t('activerecord.models.lending_policy')) -%></h1>
3
- <div id="content_list">
4
- <p id="notice"><%= notice %></p>
5
-
6
- <p>
7
- <strong><%= t('activerecord.models.item') -%>:</strong>
8
- <%= link_to @lending_policy.item.item_identifier, @lending_policy.item -%>
9
- (<%= link_to @lending_policy.item.manifestation.original_title, @lending_policy.item.manifestation -%>)
10
- </p>
11
-
12
- <p>
13
- <strong><%= t('activerecord.models.user_group') -%>:</strong>
14
- <%= link_to @lending_policy.user_group.display_name.localize, @lending_policy.user_group -%>
15
- </p>
16
-
17
- <p>
18
- <strong><%= t('activerecord.attributes.lending_policy.loan_period') -%>:</strong>
19
- <%= @lending_policy.loan_period -%>
20
- </p>
21
-
22
- <p>
23
- <strong><%= t('activerecord.attributes.lending_policy.fixed_due_date') -%>:</strong>
24
- <%= l(@lending_policy.fixed_due_date, :format => :only_date) if @lending_policy.fixed_due_date -%>
25
- </p>
26
-
27
- <p>
28
- <strong><%= t('activerecord.attributes.lending_policy.renewal') -%>:</strong>
29
- <%= @lending_policy.renewal -%>
30
- </p>
31
-
32
- <p>
33
- <strong><%= t('activerecord.attributes.lending_policy.fine') -%>:</strong>
34
- <%= @lending_policy.fine -%>
35
- </p>
36
-
37
- <p>
38
- <strong><%= t('activerecord.attributes.lending_policy.note') -%>:</strong>
39
- <%= @lending_policy.note -%>
40
- </p>
41
-
42
- </div>
43
- </div>
44
-
45
- <div id="submenu" class="ui-corner-all">
46
- <ul>
47
- <li><%= link_to t('page.edit'), edit_lending_policy_path(@lending_policy) -%></li>
48
- <li><%= back_to_index(flash[:page_info]) -%></li>
49
- </ul>
50
- </div>