enju_message 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/config/locales/translation_en.yml +51 -0
- data/config/locales/translation_ja.yml +51 -0
- data/lib/enju_message/version.rb +1 -1
- data/spec/controllers/message_requests_controller_spec.rb +275 -0
- data/spec/controllers/message_templates_controller_spec.rb +443 -0
- data/spec/controllers/messages_controller_spec.rb +439 -0
- data/{test → spec}/dummy/Rakefile +0 -0
- data/{test → spec}/dummy/app/assets/javascripts/application.js +0 -0
- data/{test → spec}/dummy/app/assets/stylesheets/application.css +0 -0
- data/spec/dummy/app/controllers/application_controller.rb +45 -0
- data/{test → spec}/dummy/app/helpers/application_helper.rb +0 -0
- data/spec/dummy/app/mailers/notifier.rb +28 -0
- data/spec/dummy/app/models/ability.rb +30 -0
- data/spec/dummy/app/models/library_group.rb +86 -0
- data/spec/dummy/app/models/patron.rb +167 -0
- data/spec/dummy/app/models/patron_type.rb +19 -0
- data/spec/dummy/app/models/role.rb +8 -0
- data/spec/dummy/app/models/user.rb +53 -0
- data/spec/dummy/app/models/user_group.rb +2 -0
- data/spec/dummy/app/models/user_has_role.rb +4 -0
- data/{test → spec}/dummy/app/views/layouts/application.html.erb +0 -0
- data/spec/dummy/app/views/page/403.html.erb +9 -0
- data/spec/dummy/app/views/page/403.mobile.erb +5 -0
- data/spec/dummy/app/views/page/403.xml.erb +4 -0
- data/spec/dummy/app/views/page/404.html.erb +9 -0
- data/spec/dummy/app/views/page/404.mobile.erb +5 -0
- data/spec/dummy/app/views/page/404.xml.erb +4 -0
- data/{test → spec}/dummy/config/application.rb +1 -0
- data/{test → spec}/dummy/config/boot.rb +0 -0
- data/{test → spec}/dummy/config/database.yml +0 -0
- data/{test → spec}/dummy/config/environment.rb +0 -0
- data/{test → spec}/dummy/config/environments/development.rb +0 -0
- data/{test → spec}/dummy/config/environments/production.rb +0 -0
- data/{test → spec}/dummy/config/environments/test.rb +0 -0
- data/{test → spec}/dummy/config/initializers/backtrace_silencers.rb +0 -0
- data/spec/dummy/config/initializers/devise.rb +209 -0
- data/{test → spec}/dummy/config/initializers/inflections.rb +0 -0
- data/{test → spec}/dummy/config/initializers/mime_types.rb +1 -0
- data/{test → spec}/dummy/config/initializers/secret_token.rb +0 -0
- data/{test → spec}/dummy/config/initializers/session_store.rb +0 -0
- data/{test → spec}/dummy/config/initializers/wrap_parameters.rb +0 -0
- data/{test → spec}/dummy/config/locales/en.yml +0 -0
- data/{test → spec}/dummy/config/routes.rb +2 -0
- data/{test → spec}/dummy/config.ru +0 -0
- data/{test/dummy/public/favicon.ico → spec/dummy/db/development.sqlite3} +0 -0
- data/spec/dummy/db/migrate/001_create_patrons.rb +62 -0
- data/spec/dummy/db/migrate/080_create_library_groups.rb +25 -0
- data/spec/dummy/db/migrate/20080905191442_create_patron_types.rb +16 -0
- data/spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb +9 -0
- data/spec/dummy/db/migrate/20100222124420_add_allow_bookmark_external_url_to_library_group.rb +9 -0
- data/spec/dummy/db/migrate/20100527113752_create_delayed_jobs.rb +21 -0
- data/spec/dummy/db/migrate/20110115022329_add_position_to_library_group.rb +9 -0
- data/spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb +9 -0
- data/spec/dummy/db/migrate/20111020063828_remove_dsbl_from_library_group.rb +11 -0
- data/spec/dummy/db/migrate/20111201121636_create_languages.rb +16 -0
- data/spec/dummy/db/migrate/20111201121844_create_roles.rb +12 -0
- data/spec/dummy/db/migrate/20111201155456_create_users.rb +14 -0
- data/spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb +31 -0
- data/spec/dummy/db/migrate/20111201163342_create_user_groups.rb +12 -0
- data/spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb +10 -0
- data/spec/dummy/db/schema.rb +225 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/lib/enju_leaf/localized_name.rb +13 -0
- data/spec/dummy/lib/enju_leaf/master_model.rb +41 -0
- data/spec/dummy/lib/enju_leaf/url_validator.rb +10 -0
- data/spec/dummy/lib/enju_leaf.rb +4 -0
- data/spec/dummy/log/development.log +106 -0
- data/spec/dummy/log/sunspot-solr-test.log +232 -0
- data/spec/dummy/log/test.log +145040 -0
- data/{test → spec}/dummy/public/404.html +0 -0
- data/{test → spec}/dummy/public/422.html +0 -0
- data/{test → spec}/dummy/public/500.html +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/{test → spec}/dummy/script/rails +0 -0
- data/spec/dummy/solr/conf/admin-extra.html +31 -0
- data/spec/dummy/solr/conf/elevate.xml +36 -0
- data/spec/dummy/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/spec/dummy/solr/conf/protwords.txt +21 -0
- data/spec/dummy/solr/conf/schema.xml +238 -0
- data/spec/dummy/solr/conf/scripts.conf +24 -0
- data/spec/dummy/solr/conf/solrconfig.xml +934 -0
- data/spec/dummy/solr/conf/spellings.txt +2 -0
- data/spec/dummy/solr/conf/stopwords.txt +58 -0
- data/spec/dummy/solr/conf/synonyms.txt +31 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_1 +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments.gen +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
- data/spec/factories/message.rb +8 -0
- data/spec/factories/message_request.rb +7 -0
- data/spec/factories/message_template.rb +7 -0
- data/spec/factories/user.rb +34 -0
- data/spec/fixtures/library_groups.yml +34 -0
- data/spec/fixtures/message_requests.yml +30 -0
- data/spec/fixtures/message_templates.yml +65 -0
- data/spec/fixtures/messages.yml +62 -0
- data/spec/fixtures/patrons.yml +338 -0
- data/spec/fixtures/roles.yml +21 -0
- data/spec/fixtures/user_groups.yml +25 -0
- data/spec/fixtures/user_has_roles.yml +41 -0
- data/spec/fixtures/users.yml +69 -0
- data/spec/models/message_request_spec.rb +24 -0
- data/spec/models/message_spec.rb +59 -0
- data/spec/models/message_template_spec.rb +24 -0
- data/spec/spec_helper.rb +46 -0
- data/spec/support/controller_macros.rb +48 -0
- data/spec/support/devise.rb +4 -0
- metadata +273 -220
- data/app/views/baskets/edit.html.erb +0 -30
- data/app/views/baskets/index.html.erb +0 -31
- data/app/views/baskets/new.html.erb +0 -29
- data/app/views/baskets/show.html.erb +0 -23
- data/app/views/carrier_type_has_checkout_types/_form.html.erb +0 -19
- data/app/views/carrier_type_has_checkout_types/edit.html.erb +0 -13
- data/app/views/carrier_type_has_checkout_types/index.html.erb +0 -33
- data/app/views/carrier_type_has_checkout_types/new.html.erb +0 -12
- data/app/views/carrier_type_has_checkout_types/show.html.erb +0 -29
- data/app/views/checked_items/_checkouts.html.erb +0 -20
- data/app/views/checked_items/_list.html.erb +0 -39
- data/app/views/checked_items/edit.html.erb +0 -21
- data/app/views/checked_items/index.html.erb +0 -32
- data/app/views/checked_items/index.js.erb +0 -1
- data/app/views/checked_items/new.html.erb +0 -20
- data/app/views/checked_items/show.html.erb +0 -24
- data/app/views/checkins/_form.html.erb +0 -24
- data/app/views/checkins/_list.html.erb +0 -51
- data/app/views/checkins/edit.html.erb +0 -26
- data/app/views/checkins/index.html.erb +0 -16
- data/app/views/checkins/index.js.erb +0 -1
- data/app/views/checkins/new.html.erb +0 -14
- data/app/views/checkins/show.html.erb +0 -24
- data/app/views/checkout_stat_has_manifestations/_form.html.erb +0 -15
- data/app/views/checkout_stat_has_manifestations/edit.html.erb +0 -13
- data/app/views/checkout_stat_has_manifestations/index.html.erb +0 -33
- data/app/views/checkout_stat_has_manifestations/new.html.erb +0 -12
- data/app/views/checkout_stat_has_manifestations/show.html.erb +0 -28
- data/app/views/checkout_stat_has_users/_form.html.erb +0 -15
- data/app/views/checkout_stat_has_users/edit.html.erb +0 -13
- data/app/views/checkout_stat_has_users/index.html.erb +0 -33
- data/app/views/checkout_stat_has_users/new.html.erb +0 -12
- data/app/views/checkout_stat_has_users/show.html.erb +0 -28
- data/app/views/checkout_types/_form.html.erb +0 -19
- data/app/views/checkout_types/edit.html.erb +0 -13
- data/app/views/checkout_types/index.html.erb +0 -50
- data/app/views/checkout_types/new.html.erb +0 -12
- data/app/views/checkout_types/show.html.erb +0 -38
- data/app/views/checkouts/_form.html.erb +0 -28
- data/app/views/checkouts/_index.html.erb +0 -23
- data/app/views/checkouts/_index_overdue.html.erb +0 -33
- data/app/views/checkouts/_index_user.html.erb +0 -44
- data/app/views/checkouts/_list.html.erb +0 -45
- data/app/views/checkouts/edit.html.erb +0 -51
- data/app/views/checkouts/index.atom.builder +0 -14
- data/app/views/checkouts/index.csv.erb +0 -4
- data/app/views/checkouts/index.html.erb +0 -11
- data/app/views/checkouts/index.ics.erb +0 -13
- data/app/views/checkouts/index.rss.builder +0 -38
- data/app/views/checkouts/new.html.erb +0 -20
- data/app/views/checkouts/show.html.erb +0 -35
- data/app/views/circulation_statuses/_form.html.erb +0 -19
- data/app/views/circulation_statuses/edit.html.erb +0 -13
- data/app/views/circulation_statuses/index.html.erb +0 -43
- data/app/views/circulation_statuses/new.html.erb +0 -12
- data/app/views/circulation_statuses/show.html.erb +0 -29
- data/app/views/item_has_use_restrictions/edit.html.erb +0 -27
- data/app/views/item_has_use_restrictions/index.html.erb +0 -32
- data/app/views/item_has_use_restrictions/new.html.erb +0 -25
- data/app/views/item_has_use_restrictions/show.html.erb +0 -29
- data/app/views/lending_policies/_form.html.erb +0 -41
- data/app/views/lending_policies/edit.html.erb +0 -13
- data/app/views/lending_policies/index.html.erb +0 -42
- data/app/views/lending_policies/new.html.erb +0 -12
- data/app/views/lending_policies/show.html.erb +0 -50
- data/app/views/manifestation_checkout_stats/_form.html.erb +0 -19
- data/app/views/manifestation_checkout_stats/edit.html.erb +0 -13
- data/app/views/manifestation_checkout_stats/index.html.erb +0 -35
- data/app/views/manifestation_checkout_stats/new.html.erb +0 -12
- data/app/views/manifestation_checkout_stats/show.csv.erb +0 -4
- data/app/views/manifestation_checkout_stats/show.html.erb +0 -55
- data/app/views/manifestation_reserve_stats/_form.html.erb +0 -19
- data/app/views/manifestation_reserve_stats/edit.html.erb +0 -13
- data/app/views/manifestation_reserve_stats/index.html.erb +0 -35
- data/app/views/manifestation_reserve_stats/new.html.erb +0 -12
- data/app/views/manifestation_reserve_stats/show.csv.erb +0 -4
- data/app/views/manifestation_reserve_stats/show.html.erb +0 -55
- data/app/views/reserve_stat_has_manifestations/_form.html.erb +0 -15
- data/app/views/reserve_stat_has_manifestations/edit.html.erb +0 -13
- data/app/views/reserve_stat_has_manifestations/index.html.erb +0 -33
- data/app/views/reserve_stat_has_manifestations/new.html.erb +0 -12
- data/app/views/reserve_stat_has_manifestations/show.html.erb +0 -28
- data/app/views/reserve_stat_has_users/_form.html.erb +0 -15
- data/app/views/reserve_stat_has_users/edit.html.erb +0 -13
- data/app/views/reserve_stat_has_users/index.html.erb +0 -33
- data/app/views/reserve_stat_has_users/new.html.erb +0 -12
- data/app/views/reserve_stat_has_users/show.html.erb +0 -28
- data/app/views/reserves/_form.html.erb +0 -49
- data/app/views/reserves/_new.html.erb +0 -44
- data/app/views/reserves/_new_user.html.erb +0 -50
- data/app/views/reserves/_title.html.erb +0 -19
- data/app/views/reserves/edit.html.erb +0 -42
- data/app/views/reserves/index.atom.builder +0 -14
- data/app/views/reserves/index.csv.erb +0 -4
- data/app/views/reserves/index.html.erb +0 -75
- data/app/views/reserves/index.rss.builder +0 -41
- data/app/views/reserves/new.html.erb +0 -5
- data/app/views/reserves/show.html.erb +0 -61
- data/app/views/use_restrictions/_form.html.erb +0 -19
- data/app/views/use_restrictions/edit.html.erb +0 -13
- data/app/views/use_restrictions/index.html.erb +0 -43
- data/app/views/use_restrictions/new.html.erb +0 -12
- data/app/views/use_restrictions/show.html.erb +0 -29
- data/app/views/user_checkout_stats/_form.html.erb +0 -19
- data/app/views/user_checkout_stats/edit.html.erb +0 -13
- data/app/views/user_checkout_stats/index.html.erb +0 -35
- data/app/views/user_checkout_stats/new.html.erb +0 -12
- data/app/views/user_checkout_stats/show.csv.erb +0 -4
- data/app/views/user_checkout_stats/show.html.erb +0 -55
- data/app/views/user_group_has_checkout_types/edit.html.erb +0 -63
- data/app/views/user_group_has_checkout_types/index.html.erb +0 -32
- data/app/views/user_group_has_checkout_types/new.html.erb +0 -62
- data/app/views/user_group_has_checkout_types/show.html.erb +0 -64
- data/app/views/user_reserve_stats/_form.html.erb +0 -19
- data/app/views/user_reserve_stats/edit.html.erb +0 -13
- data/app/views/user_reserve_stats/index.html.erb +0 -35
- data/app/views/user_reserve_stats/new.html.erb +0 -12
- data/app/views/user_reserve_stats/show.csv.erb +0 -4
- data/app/views/user_reserve_stats/show.html.erb +0 -54
- data/test/dummy/app/controllers/application_controller.rb +0 -3
- data/test/enju_message_test.rb +0 -7
- data/test/integration/navigation_test.rb +0 -10
- data/test/test_helper.rb +0 -10
@@ -1,55 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.showing', :model => t('activerecord.models.manifestation_reserve_stat')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
<p id="notice"><%= notice %></p>
|
5
|
-
|
6
|
-
<p>
|
7
|
-
<strong><%= t('activerecord.attributes.manifestation_reserve_stat.start_date') -%>:</strong>
|
8
|
-
<%= l(@manifestation_reserve_stat.start_date) -%>
|
9
|
-
</p>
|
10
|
-
|
11
|
-
<p>
|
12
|
-
<strong><%= t('activerecord.attributes.manifestation_reserve_stat.end_date') -%>:</strong>
|
13
|
-
<%= l(@manifestation_reserve_stat.end_date) -%>
|
14
|
-
</p>
|
15
|
-
|
16
|
-
<p>
|
17
|
-
<strong><%= t('activerecord.attributes.manifestation_reserve_stat.state') -%>:</strong>
|
18
|
-
<%= @manifestation_reserve_stat.state -%>
|
19
|
-
</p>
|
20
|
-
|
21
|
-
<p>
|
22
|
-
<strong><%= t('activerecord.attributes.manifestation_reserve_stat.note') -%>:</strong>
|
23
|
-
<%= @manifestation_reserve_stat.note -%>
|
24
|
-
</p>
|
25
|
-
|
26
|
-
<table class="index">
|
27
|
-
<tr>
|
28
|
-
<th><%= t('activerecord.models.manifestation') -%></th>
|
29
|
-
<th><%= t('activerecord.attributes.reserve_stat_has_manifestation.reserves_count') -%></th>
|
30
|
-
</tr>
|
31
|
-
<%- @stats.each do |stat| -%>
|
32
|
-
<tr class="line<%= cycle("0", "1") -%>">
|
33
|
-
<td>
|
34
|
-
<%= render 'manifestations/show_index', :manifestation => stat.manifestation -%>
|
35
|
-
</td>
|
36
|
-
<td><%= stat.reserves_count -%></td>
|
37
|
-
</tr>
|
38
|
-
<%- end -%>
|
39
|
-
</table>
|
40
|
-
|
41
|
-
<%= will_paginate(@stats) -%>
|
42
|
-
|
43
|
-
</div>
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<div id="submenu" class="ui-corner-all">
|
47
|
-
<ul>
|
48
|
-
<li><%= link_to t('page.edit'), edit_manifestation_reserve_stat_path(@manifestation_reserve_stat) -%></li>
|
49
|
-
<li><%= back_to_index(flash[:page_info]) -%></li>
|
50
|
-
</ul>
|
51
|
-
<h4><%= t('page.export') -%></h4>
|
52
|
-
<ul>
|
53
|
-
<li><%= link_to 'CSV', manifestation_reserve_stat_path(@manifestation_reserve_stat, :format => :csv, :locale => @locale.to_s) -%></li>
|
54
|
-
</ul>
|
55
|
-
</div>
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<%= form_for(@reserve_stat_has_manifestation) do |f| -%>
|
2
|
-
<%= f.error_messages -%>
|
3
|
-
|
4
|
-
<div class="field">
|
5
|
-
<%= f.label t('activerecord.models.manifestation_reserve_stat') -%><br />
|
6
|
-
<%= f.text_field :manifestation_reserve_stat_id -%>
|
7
|
-
</div>
|
8
|
-
<div class="field">
|
9
|
-
<%= f.label t('activerecord.models.manifestation') -%><br />
|
10
|
-
<%= f.text_field :manifestation_id -%>
|
11
|
-
</div>
|
12
|
-
<div class="actions">
|
13
|
-
<%= f.submit %>
|
14
|
-
</div>
|
15
|
-
<%- 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.reserve_stat_has_manifestation')) -%></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'), @reserve_stat_has_manifestation -%></li>
|
11
|
-
<li><%= link_to t('page.back'), reserve_stat_has_manifestations_path -%></li>
|
12
|
-
</ul>
|
13
|
-
</div>
|
@@ -1,33 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('activerecord.models.reserve_stat_has_manifestation') -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
|
5
|
-
<table class="index">
|
6
|
-
<tr>
|
7
|
-
<th><%= t('activerecord.models.manifestation_reserve_stat') -%></th>
|
8
|
-
<th><%= t('activerecord.models.manifestation') -%></th>
|
9
|
-
<th><%= t('activerecord.attributes.reserve_stat_has_manifestation.reserves_count') -%></th>
|
10
|
-
</tr>
|
11
|
-
|
12
|
-
<%- @reserve_stat_has_manifestations.each do |reserve_stat_has_manifestation| -%>
|
13
|
-
<tr class="line<%= cycle("0", "1") -%>">
|
14
|
-
<td><%= link_to reserve_stat_has_manifestation.manifestation_reserve_stat.id, reserve_stat_has_manifestation.manifestation_reserve_stat -%></td>
|
15
|
-
<td><%= link_to reserve_stat_has_manifestation.manifestation.original_title, reserve_stat_has_manifestation.manifestation -%></td>
|
16
|
-
<td><%= reserve_stat_has_manifestation.reserves_count -%></td>
|
17
|
-
<td><%= link_to t('page.show'), reserve_stat_has_manifestation -%></td>
|
18
|
-
<td><%= link_to t('page.edit'), edit_reserve_stat_has_manifestation_path(reserve_stat_has_manifestation) -%></td>
|
19
|
-
<td><%= link_to t('page.destroy'), reserve_stat_has_manifestation, :confirm => t('page.are_you_sure'), :method => :delete -%></td>
|
20
|
-
</tr>
|
21
|
-
<%- end -%>
|
22
|
-
</table>
|
23
|
-
|
24
|
-
<%= will_paginate(@reserve_stat_has_manifestations) -%>
|
25
|
-
|
26
|
-
</div>
|
27
|
-
</div>
|
28
|
-
|
29
|
-
<div id="submenu" class="ui-corner-all">
|
30
|
-
<ul>
|
31
|
-
<li><%= link_to t('page.new', :model => t('activerecord.models.reserve_stat_has_manifestation')), new_reserve_stat_has_manifestation_path -%></li>
|
32
|
-
</ul>
|
33
|
-
</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.reserve_stat_has_manifestation')) -%></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'), reserve_stat_has_manifestations_path -%></li>
|
11
|
-
</ul>
|
12
|
-
</div>
|
@@ -1,28 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.showing', :model => t('activerecord.models.reserve_stat_has_manifestation')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
<p id="notice"><%= notice %></p>
|
5
|
-
|
6
|
-
<p>
|
7
|
-
<strong><%= t('activerecord.models.manifestation_reserve_stat') -%></strong>
|
8
|
-
<%= link_to @reserve_stat_has_manifestation.manifestation_reserve_stat.id, @reserve_stat_has_manifestation.manifestation_reserve_stat -%>
|
9
|
-
</p>
|
10
|
-
|
11
|
-
<p>
|
12
|
-
<strong><%= t('activerecord.models.manifestation') -%>:</strong>
|
13
|
-
<%= link_to @reserve_stat_has_manifestation.manifestation.original_title, @reserve_stat_has_manifestation.manifestation -%>
|
14
|
-
</p>
|
15
|
-
|
16
|
-
<p>
|
17
|
-
<strong><%= t('activerecord.attributes.reserve_stat_has_manifestation.reserves_count') -%></strong>
|
18
|
-
<%= @reserve_stat_has_manifestation.reserves_count -%>
|
19
|
-
</p>
|
20
|
-
</div>
|
21
|
-
</div>
|
22
|
-
|
23
|
-
<div id="submenu" class="ui-corner-all">
|
24
|
-
<ul>
|
25
|
-
<li><%= link_to t('page.edit'), edit_reserve_stat_has_manifestation_path(@reserve_stat_has_manifestation) -%></li>
|
26
|
-
<li><%= back_to_index(flash[:page_info]) -%></li>
|
27
|
-
</ul>
|
28
|
-
</div>
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<%= form_for(@reserve_stat_has_user) do |f| -%>
|
2
|
-
<%= f.error_messages -%>
|
3
|
-
|
4
|
-
<div class="field">
|
5
|
-
<%= f.label t('activerecord.models.user_reserve_stat') -%><br />
|
6
|
-
<%= f.text_field :user_reserve_stat_id -%>
|
7
|
-
</div>
|
8
|
-
<div class="field">
|
9
|
-
<%= f.label t('activerecord.models.user') -%><br />
|
10
|
-
<%= f.text_field :user_id -%>
|
11
|
-
</div>
|
12
|
-
<div class="actions">
|
13
|
-
<%= f.submit %>
|
14
|
-
</div>
|
15
|
-
<%- 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.reserve_stat_has_user')) -%></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'), @reserve_stat_has_user -%></li>
|
11
|
-
<li><%= link_to t('page.back'), reserve_stat_has_users_path -%></li>
|
12
|
-
</ul>
|
13
|
-
</div>
|
@@ -1,33 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('activerecord.models.reserve_stat_has_user') -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
|
5
|
-
<table class="index">
|
6
|
-
<tr>
|
7
|
-
<th><%= t('activerecord.models.user_reserve_stat') -%></th>
|
8
|
-
<th><%= t('activerecord.models.user') -%></th>
|
9
|
-
<th><%= t('activerecord.attributes.reserve_stat_has_user.reserves_count') -%></th>
|
10
|
-
</tr>
|
11
|
-
|
12
|
-
<%- @reserve_stat_has_users.each do |reserve_stat_has_user| -%>
|
13
|
-
<tr class="line<%= cycle("0", "1") -%>">
|
14
|
-
<td><%= link_to reserve_stat_has_user.user_reserve_stat.id, reserve_stat_has_user.user_reserve_stat -%></td>
|
15
|
-
<td><%= link_to reserve_stat_has_user.user.username, reserve_stat_has_user.user -%></td>
|
16
|
-
<td><%= reserve_stat_has_user.reserves_count -%></td>
|
17
|
-
<td><%= link_to t('page.show'), reserve_stat_has_user -%></td>
|
18
|
-
<td><%= link_to t('page.edit'), edit_reserve_stat_has_user_path(reserve_stat_has_user) -%></td>
|
19
|
-
<td><%= link_to t('page.destroy'), reserve_stat_has_user, :confirm => 'Are you sure?', :method => :delete -%></td>
|
20
|
-
</tr>
|
21
|
-
<%- end -%>
|
22
|
-
</table>
|
23
|
-
|
24
|
-
<%= will_paginate(@reserve_stat_has_users) -%>
|
25
|
-
|
26
|
-
</div>
|
27
|
-
</div>
|
28
|
-
|
29
|
-
<div id="submenu" class="ui-corner-all">
|
30
|
-
<ul>
|
31
|
-
<li><%= link_to t('page.new', :model => t('activerecord.models.reserve_stat_has_user')), new_reserve_stat_has_user_path -%></li>
|
32
|
-
</ul>
|
33
|
-
</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.reserve_stat_has_user')) -%></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'), reserve_stat_has_users_path -%></li>
|
11
|
-
</ul>
|
12
|
-
</div>
|
@@ -1,28 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.showing', :model => t('activerecord.models.reserve_stat_has_user')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
<p id="notice"><%= notice %></p>
|
5
|
-
|
6
|
-
<p>
|
7
|
-
<strong><%= t('activerecord.models.user_reserve_stat') -%></strong>
|
8
|
-
<%= link_to @reserve_stat_has_user.user_reserve_stat.id, @reserve_stat_has_user.user_reserve_stat -%>
|
9
|
-
</p>
|
10
|
-
|
11
|
-
<p>
|
12
|
-
<strong><%= t('activerecord.models.user') -%></strong>
|
13
|
-
<%= link_to @reserve_stat_has_user.user.username, @reserve_stat_has_user.user -%>
|
14
|
-
</p>
|
15
|
-
|
16
|
-
<p>
|
17
|
-
<strong><%= t('activerecord.attributes.reserve_stat_has_user.reserves_count') -%></strong>
|
18
|
-
<%= @reserve_stat_has_user.reserves_count -%>
|
19
|
-
</p>
|
20
|
-
</div>
|
21
|
-
</div>
|
22
|
-
|
23
|
-
<div id="submenu" class="ui-corner-all">
|
24
|
-
<ul>
|
25
|
-
<li><%= link_to t('page.edit'), edit_reserve_stat_has_user_path(@reserve_stat_has_user) -%></li>
|
26
|
-
<li><%= back_to_index(flash[:page_info]) -%></li>
|
27
|
-
</ul>
|
28
|
-
</div>
|
@@ -1,49 +0,0 @@
|
|
1
|
-
<%= form_for(@reserve) do |f| %>
|
2
|
-
<% if @reserve.errors.any? %>
|
3
|
-
<div id="errorExplanation">
|
4
|
-
<h2><%= pluralize(@reserve.errors.count, "error") %> prohibited this reserve from being saved:</h2>
|
5
|
-
<ul>
|
6
|
-
<% @reserve.errors.full_messages.each do |msg| %>
|
7
|
-
<li><%= msg %></li>
|
8
|
-
<% end %>
|
9
|
-
</ul>
|
10
|
-
</div>
|
11
|
-
<% end %>
|
12
|
-
|
13
|
-
<div class="field">
|
14
|
-
<%= f.label :user_id %><br />
|
15
|
-
<%= f.text_field :user_id %>
|
16
|
-
</div>
|
17
|
-
<div class="field">
|
18
|
-
<%= f.label :manifestation_id %><br />
|
19
|
-
<% if @reserve.manifestation %>
|
20
|
-
<%= render 'manifestations/title', :manifestation => @reserve.manifestation -%>
|
21
|
-
<%= f.hidden_field :manifestation_id %>
|
22
|
-
<% else %>
|
23
|
-
<%= f.text_field :manifestation_id %>
|
24
|
-
<% end %>
|
25
|
-
</div>
|
26
|
-
<div class="field">
|
27
|
-
<%= f.label :item_id %><br />
|
28
|
-
<%= f.text_field :item_id %>
|
29
|
-
</div>
|
30
|
-
<div class="field">
|
31
|
-
<%= f.label :state %><br />
|
32
|
-
<%= f.text_field :state %>
|
33
|
-
</div>
|
34
|
-
<div class="field">
|
35
|
-
<%= f.label :checked_out_at %><br />
|
36
|
-
<%= f.datetime_select :checked_out_at %>
|
37
|
-
</div>
|
38
|
-
<div class="field">
|
39
|
-
<%= f.label :canceled_at %><br />
|
40
|
-
<%= f.datetime_select :canceled_at %>
|
41
|
-
</div>
|
42
|
-
<div class="field">
|
43
|
-
<%= f.label :expired_at %><br />
|
44
|
-
<%= f.datetime_select :expired_at %>
|
45
|
-
</div>
|
46
|
-
<div class="actions">
|
47
|
-
<%= f.submit %>
|
48
|
-
</div>
|
49
|
-
<% end %>
|
@@ -1,44 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.new', :model => t('activerecord.models.reserve')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
|
5
|
-
<%= form_for(@reserve) do |f| -%>
|
6
|
-
<%= f.error_messages -%>
|
7
|
-
|
8
|
-
<div class="field">
|
9
|
-
<%- if @reserve.manifestation -%>
|
10
|
-
<%= render 'manifestations/title', :manifestation => @reserve.manifestation -%>
|
11
|
-
<%= f.hidden_field :manifestation_id -%>
|
12
|
-
<%- else -%>
|
13
|
-
<%= f.label t('activerecord.models.manifestation') -%><br />
|
14
|
-
<%= f.text_field :manifestation_id -%>
|
15
|
-
<%- end -%>
|
16
|
-
</div>
|
17
|
-
|
18
|
-
<div class="field">
|
19
|
-
<%= f.label :expired_at -%><br />
|
20
|
-
<%= f.text_field :expired_at, :value => @reserve.expired_at.try(:strftime, "%Y-%m-%d"), :class => 'date_field', :placeholder => "#{t('page.example')}: 2011-04-12"-%>
|
21
|
-
</div>
|
22
|
-
|
23
|
-
<div class="field">
|
24
|
-
<%= f.label t('activerecord.attributes.user.user_number') -%><br />
|
25
|
-
<%= f.text_field :user_number, :class => 'resource_user_number' -%>
|
26
|
-
</div>
|
27
|
-
|
28
|
-
<div class="actions">
|
29
|
-
<%= f.submit t('page.create') -%>
|
30
|
-
</div>
|
31
|
-
<%- end -%>
|
32
|
-
<%= javascript_tag("$('#reserve_user_number').focus()") -%>
|
33
|
-
</div>
|
34
|
-
</div>
|
35
|
-
|
36
|
-
<div id="submenu" class="ui-corner-all">
|
37
|
-
<%= render 'manifestations/book_jacket', :manifestation => @reserve.manifestation -%>
|
38
|
-
<ul>
|
39
|
-
<li><%= link_to t('page.listing', :model => t('activerecord.models.reserve')), reserves_path -%></li>
|
40
|
-
<%- if @reserve.manifestation -%>
|
41
|
-
<li><%= link_to t('page.showing', :model => t('activerecord.models.manifestation')), @reserve.manifestation -%></li>
|
42
|
-
<%- end -%>
|
43
|
-
</ul>
|
44
|
-
</div>
|
@@ -1,50 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.new', :model => t('activerecord.models.reserve')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
|
5
|
-
<%= form_for(@reserve, :url => user_reserves_path(@user)) do |f| -%>
|
6
|
-
<%= f.error_messages -%>
|
7
|
-
|
8
|
-
<div class="field">
|
9
|
-
<%- if @item -%>
|
10
|
-
<%= render 'manifestations/title', :manifestation => @reserve.manifestation -%>
|
11
|
-
(<%= link_to @item.item_identifier, @item -%>)
|
12
|
-
<%= f.hidden_field :manifestation_id, :value => @item.manifestation.id -%>
|
13
|
-
<%= f.hidden_field :item_id, :value => @item.id -%>
|
14
|
-
<%- elsif @manifestation -%>
|
15
|
-
<%= render 'manifestations/title', :manifestation => @manifestation -%>
|
16
|
-
<%= f.hidden_field :manifestation_id -%>
|
17
|
-
<%- else -%>
|
18
|
-
<%= f.label t('activerecord.models.manifestation') -%><br />
|
19
|
-
<%= f.text_field :manifestation_id -%>
|
20
|
-
<%- end -%>
|
21
|
-
</div>
|
22
|
-
|
23
|
-
<div class="field">
|
24
|
-
<%= f.label t('activerecord.models.user') -%>
|
25
|
-
<%= link_to @reserve.user.username, @reserve.user -%>
|
26
|
-
(<%= @reserve.user.user_number %>)
|
27
|
-
</div>
|
28
|
-
|
29
|
-
<div class="field">
|
30
|
-
<%= f.label :expired_at -%><br />
|
31
|
-
<%= f.text_field :expired_at, :value => @reserve.expired_at.try(:strftime, "%Y-%m-%d"), :class => 'date_field', :placeholder => "#{t('page.example')}: 2011-04-12"-%>
|
32
|
-
</div>
|
33
|
-
|
34
|
-
<div class="field">
|
35
|
-
<%= f.hidden_field :user_number, :value => @user.user_number -%>
|
36
|
-
<%= f.submit t('page.create') -%>
|
37
|
-
</div>
|
38
|
-
<%- end -%>
|
39
|
-
</div>
|
40
|
-
</div>
|
41
|
-
|
42
|
-
<div id="submenu" class="ui-corner-all">
|
43
|
-
<%= render 'manifestations/book_jacket', :manifestation => @reserve.manifestation -%>
|
44
|
-
<ul>
|
45
|
-
<li><%= link_to t('page.listing', :model => t('activerecord.models.reserve')), user_reserves_path(@reserve.user) -%></li>
|
46
|
-
<%- if @manifestation -%>
|
47
|
-
<li><%= link_to t('page.showing', :model => t('activerecord.models.manifestation')), @manifestation -%></li>
|
48
|
-
<%- end -%>
|
49
|
-
</ul>
|
50
|
-
</div>
|
@@ -1,19 +0,0 @@
|
|
1
|
-
<strong><%= link_to title_with_volume_number(reserve.manifestation), reserve -%></strong>
|
2
|
-
<br />
|
3
|
-
<%- if reserve.manifestation.creators.readable_by(current_user).exists? -%>
|
4
|
-
<%= t('patron.creator') -%>: <%= patrons_list(reserve.manifestation.creators.readable_by(current_user)) -%>
|
5
|
-
<%- end -%>
|
6
|
-
<%- if reserve.manifestation.contributors.readable_by(current_user).exists? -%>
|
7
|
-
<%= t('patron.contributor') -%>: <%= patrons_list(reserve.manifestation.contributors.readable_by(current_user)) -%>
|
8
|
-
<%- end -%>
|
9
|
-
<%- if reserve.manifestation.publishers.readable_by(current_user).exists? -%>
|
10
|
-
<%= t('patron.publisher') -%>: <%= patrons_list(reserve.manifestation.publishers.readable_by(current_user)) -%>
|
11
|
-
<%- if reserve.manifestation.pub_date.present? -%>
|
12
|
-
(<%= reserve.manifestation.pub_date -%>)
|
13
|
-
<%- end -%>
|
14
|
-
<%- end -%>
|
15
|
-
<%- if reserve.manifestation.access_address? -%>
|
16
|
-
<br />
|
17
|
-
<%= link_to reserve.manifestation.access_address, manifestation.access_address -%>
|
18
|
-
<%= link_to image_tag('icons/world_go.png', :size => '16x16', :alt => 'Web'), reserve.manifestation.access_address -%>
|
19
|
-
<%- end -%>
|
@@ -1,42 +0,0 @@
|
|
1
|
-
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.editing', :model => t('activerecord.models.reserve')) -%></h1>
|
3
|
-
<div id="content_list">
|
4
|
-
|
5
|
-
<%= form_for(@reserve) do |f| -%>
|
6
|
-
<%= f.error_messages -%>
|
7
|
-
|
8
|
-
<div class="field">
|
9
|
-
<%- if @reserve.manifestation -%>
|
10
|
-
<%= render 'manifestations/title', :manifestation => @reserve.manifestation -%>
|
11
|
-
<%= f.hidden_field :manifestation_id -%>
|
12
|
-
<%- else -%>
|
13
|
-
<%= f.label t('activerecord.models.manifestation') -%><br />
|
14
|
-
<%= f.text_field :manifestation_id -%>
|
15
|
-
<%- end -%>
|
16
|
-
</div>
|
17
|
-
|
18
|
-
<div class="field">
|
19
|
-
<%= f.label t('activerecord.models.user') -%>
|
20
|
-
<%= link_to @reserve.user.username, @reserve.user -%>
|
21
|
-
(<%= @reserve.user.user_number %>)
|
22
|
-
</div>
|
23
|
-
|
24
|
-
<div class="field">
|
25
|
-
<%= f.label :expired_at -%><br />
|
26
|
-
<%= f.text_field :expired_at, :value => @reserve.expired_at.try(:strftime, "%Y-%m-%d"), :class => 'date_field', :placeholder => "#{t('page.example')}: 2011-04-12"-%>
|
27
|
-
</div>
|
28
|
-
|
29
|
-
<div class="actions">
|
30
|
-
<%= f.submit %>
|
31
|
-
</div>
|
32
|
-
<%- end -%>
|
33
|
-
|
34
|
-
</div>
|
35
|
-
</div>
|
36
|
-
|
37
|
-
<div id="submenu" class="ui-corner-all">
|
38
|
-
<ul>
|
39
|
-
<li><%= link_to t('page.show'), @reserve -%></li>
|
40
|
-
<li><%= link_to t('page.back'), user_reserves_path(@reserve.user) -%></li>
|
41
|
-
</ul>
|
42
|
-
</div>
|
@@ -1,14 +0,0 @@
|
|
1
|
-
atom_feed(:url => reserves_url(:format => :atom)) do |feed|
|
2
|
-
if @user
|
3
|
-
feed.title t('reserve.user_reserve', :login_name => @user.username)
|
4
|
-
else
|
5
|
-
feed.title t('reserve.library_group_reserve', :library_group_name => @library_group.display_name.localize)
|
6
|
-
end
|
7
|
-
feed.updated(@reserves.first ? @reserves.first.created_at : Time.zone.now)
|
8
|
-
|
9
|
-
@reserves.each do |reserve|
|
10
|
-
feed.entry(reserve) do |entry|
|
11
|
-
entry.title(reserve.manifestation.original_title)
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
@@ -1,4 +0,0 @@
|
|
1
|
-
title,isbn,item_identifier,call_number,created_at
|
2
|
-
<%- @reserves.each do |reserve| -%>
|
3
|
-
"<%=h reserve.manifestation.original_title.gsub(/"/, '""') -%>",<%=h reserve.manifestation.isbn %>,<%=h reserve.item.try(:item_identifier) -%>,<%=h reserve.item.try(:call_number) -%>,<%=h reserve.item.try(:created_at) %><%= "\n" -%>
|
4
|
-
<%- end -%>
|
@@ -1,75 +0,0 @@
|
|
1
|
-
<div style="color: red"><%= flash[:message].to_s -%></div>
|
2
|
-
<div id="content_detail" class="ui-corner-all">
|
3
|
-
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.reserve')) -%></h1>
|
4
|
-
<div id="content_list">
|
5
|
-
<table class="index">
|
6
|
-
<tr>
|
7
|
-
<th style="width: 30px"><%= 'Id' -%></th>
|
8
|
-
<th><%= t('activerecord.models.user') -%></th>
|
9
|
-
<th><%= t('activerecord.models.manifestation') -%></th>
|
10
|
-
<th style="width: 80px"><%= t('activerecord.attributes.reserve.state') -%></th>
|
11
|
-
<th><%= t('activerecord.attributes.reserve.expired_at') -%></th>
|
12
|
-
<%- if can? :update, @reserves.first -%>
|
13
|
-
<th style="width: 70px"></th>
|
14
|
-
<% end %>
|
15
|
-
</tr>
|
16
|
-
|
17
|
-
<%- @reserves.each_with_index do |reserve, i| -%>
|
18
|
-
<tr class="line<%= cycle("0", "1") -%>">
|
19
|
-
<td><%= link_to reserve.id, reserve -%></td>
|
20
|
-
<td><%= link_to reserve.user.username, reserve.user -%></td>
|
21
|
-
<td>
|
22
|
-
<%= render 'title', :reserve => reserve -%>
|
23
|
-
</td>
|
24
|
-
<td><%= i18n_state(reserve.state) -%></td>
|
25
|
-
<td><%= l(reserve.expired_at, :format => :only_date) -%></td>
|
26
|
-
<%- if can? :destroy, reserve -%>
|
27
|
-
<td>
|
28
|
-
<%= link_to t('page.edit'), edit_reserve_path(reserve) -%>
|
29
|
-
<%- if reserve.user.reserves.waiting.include?(reserve) -%>
|
30
|
-
<br />
|
31
|
-
<%= link_to t('page.cancel'), reserve_path(reserve, :mode => 'cancel'), :confirm => t('page.are_you_sure'), :method => :put -%>
|
32
|
-
<%- else -%>
|
33
|
-
<br />
|
34
|
-
<%= link_to t('page.destroy'), reserve, :confirm => t('page.are_you_sure'), :method => :delete -%>
|
35
|
-
<%- end -%>
|
36
|
-
</td>
|
37
|
-
<%- end -%>
|
38
|
-
</tr>
|
39
|
-
<%- end -%>
|
40
|
-
</table>
|
41
|
-
|
42
|
-
<%= will_paginate(@reserves) -%>
|
43
|
-
|
44
|
-
</div>
|
45
|
-
</div>
|
46
|
-
|
47
|
-
<div id="submenu" class="ui-corner-all">
|
48
|
-
<ul>
|
49
|
-
<li>
|
50
|
-
<%= link_to t('page.new', :model => t('activerecord.models.reserve')), manifestations_path(:reservable => true) -%>
|
51
|
-
<br />
|
52
|
-
(<%= t('page.search_resource', :model => t('page.resource')) -%>)
|
53
|
-
</li>
|
54
|
-
<%- if current_user.has_role?('Librarian') -%>
|
55
|
-
<li><%= link_to t('reserve.all_reservation'), reserves_path -%></li>
|
56
|
-
<li><%= link_to t('reserve.my_reservation'), user_reserves_path(current_user) -%></li>
|
57
|
-
<%- end -%>
|
58
|
-
<%- if @user -%>
|
59
|
-
<li><%= link_to t('page.listing', :model => t('activerecord.models.checkout')), user_checkouts_path(@user) -%></li>
|
60
|
-
<%- end -%>
|
61
|
-
</ul>
|
62
|
-
<p>
|
63
|
-
<%- if @user -%>
|
64
|
-
<%= link_to (image_tag 'icons/feed.png', :size => '16x16', :alt => t('page.feed'), :class => 'icon'), user_reserves_path(@user, :format => :rss) -%>
|
65
|
-
(<%= link_to 'RSS', user_reserves_path(@user, :format => :rss) -%>)
|
66
|
-
<%= link_to (image_tag 'icons/page_white_excel.png', :size => '16x16', :alt => 'CSV', :class => 'icon'), user_reserves_path(@user, :format => :csv, :locale => @locale.to_s) -%>
|
67
|
-
(<%= link_to 'CSV', user_reserves_path(@user, :format => :csv, :locale => @locale.to_s) -%>)
|
68
|
-
<%- else -%>
|
69
|
-
<%= link_to (image_tag 'icons/feed.png', :size => '16x16', :alt => t('page.feed'), :class => 'icon'), reserves_path(:format => :rss) -%>
|
70
|
-
(<%= link_to 'RSS', reserves_path(:format => :rss) -%>)
|
71
|
-
<%= link_to (image_tag 'icons/page_white_excel.png', :size => '16x16', :alt => 'CSV', :class => 'icon'), reserves_path(:format => :csv, :locale => @locale.to_s) -%>
|
72
|
-
(<%= link_to 'CSV', reserves_path(:format => :csv, :locale => @locale.to_s) -%>)
|
73
|
-
<%- end -%>
|
74
|
-
</p>
|
75
|
-
</div>
|
@@ -1,41 +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('reserve.user_reserve', :login_name => @user.username)
|
8
|
-
xml.link user_reserves_url(@user, :format => :rss)
|
9
|
-
else
|
10
|
-
xml.title t('reserve.library_group_reserve', :library_group_name => @library_group.display_name.localize)
|
11
|
-
xml.link reserves_url(:format => :rss)
|
12
|
-
end
|
13
|
-
xml.description "Next-L Enju, an open source integrated library system developed by Project Next-L"
|
14
|
-
xml.language @locale.to_s
|
15
|
-
xml.ttl "60"
|
16
|
-
if @user
|
17
|
-
xml.tag! "atom:link", :rel => 'self', :href => user_reserves_url(@user, :format => :rss)
|
18
|
-
xml.tag! "atom:link", :rel => 'alternate', :href => user_reserves_url(@user)
|
19
|
-
else
|
20
|
-
xml.tag! "atom:link", :rel => 'self', :href => reserves_url(:format => :rss)
|
21
|
-
xml.tag! "atom:link", :rel => 'alternate', :href => reserves_url
|
22
|
-
end
|
23
|
-
#xml.tag! "atom:link", :rel => 'search', :type => 'application/opensearchdescription+xml', :href => "http://#{request.host_with_port}/page/opensearch"
|
24
|
-
unless params[:query].blank?
|
25
|
-
xml.tag! "opensearch:totalResults", @count[:query_result]
|
26
|
-
xml.tag! "opensearch:startIndex", @reserves.offset + 1
|
27
|
-
xml.tag! "opensearch:itemsPerPage", @reserves.per_page
|
28
|
-
#xml.tag! "opensearch:Query", :role => 'request', :searchTerms => params[:query], :startPage => (params[:page] || 1)
|
29
|
-
end
|
30
|
-
@reserves.each do |reserve|
|
31
|
-
xml.item do
|
32
|
-
xml.title reserve.manifestation.original_title
|
33
|
-
#xml.description(reserve.title)
|
34
|
-
# rfc822
|
35
|
-
xml.pubDate reserve.created_at.utc.rfc822
|
36
|
-
xml.link reserve_url(reserve)
|
37
|
-
xml.guid reserve_url(reserve), :isPermaLink => "true"
|
38
|
-
end
|
39
|
-
end
|
40
|
-
}
|
41
|
-
}
|