enju_biblio 0.1.0.pre61 → 0.1.0.pre62
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/items/show.mobile.erb +9 -10
- data/lib/enju_biblio/version.rb +1 -1
- data/spec/dummy/db/migrate/20140524135607_create_bookmark_stat_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140812093836_add_share_bookmarks_to_profile.rb +5 -0
- data/spec/dummy/db/schema.rb +686 -691
- metadata +10 -8
- data/spec/dummy/db/migrate/20111231145823_add_share_bookmarks_to_user.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dd53a7049e42dc24361a89c58aaf3336ee0cf4d
|
4
|
+
data.tar.gz: d33fad0a3c37f0ddd23724a8e0b55b600c5e44db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 289d1cfe963f9d7011de48ba78beb508dc663057891a36406f365398130c8a3aad7b1c39a0cff0ba9ccdc91419940d4af1a3e7f65838b6621690296b2c4f5cfd
|
7
|
+
data.tar.gz: e5cbe3e846579a64a1632ae10463c4fa319201d1f3a82717214e71d9fc24f138477944e995140bb54b937bc6f0310fcdfb40c358ba6945342b61f743ddb6f306
|
@@ -1,5 +1,6 @@
|
|
1
1
|
<div data-role="header">
|
2
|
-
<
|
2
|
+
<a href="javascript:history.back()" data-icon="back" data-iconpos="notext" class="ui-btn-left"><%= t('page.back') %></a>
|
3
|
+
<h1 class="title"><%= t('page.showing', model: t('activerecord.models.item')) -%></h1>
|
3
4
|
</div>
|
4
5
|
<div data-role="content">
|
5
6
|
<%- if @item.manifestation -%>
|
@@ -16,26 +17,24 @@
|
|
16
17
|
<% if defined?(EnjuCirculation) %>
|
17
18
|
<p>
|
18
19
|
<strong><%= t('activerecord.attributes.item.checkout_type') -%>:</strong>
|
19
|
-
<%=
|
20
|
+
<%= @item.checkout_type.display_name.localize -%>
|
20
21
|
</p>
|
21
22
|
|
22
23
|
<p>
|
23
24
|
<strong><%= t('activerecord.models.lending_policy') -%>:</strong>
|
24
25
|
<ul>
|
25
26
|
<%- @item.lending_policies.each do |lending_policy| -%>
|
26
|
-
<li><%=
|
27
|
+
<li><%= lending_policy.user_group.display_name.localize -%></li>
|
27
28
|
<%- end -%>
|
28
29
|
</ul>
|
29
30
|
</p>
|
30
31
|
|
31
32
|
<p>
|
32
33
|
<strong><%= t('activerecord.models.circulation_status') -%>:</strong>
|
33
|
-
<%=
|
34
|
-
<%- if
|
35
|
-
<%-
|
36
|
-
|
37
|
-
(<%= link_to t('item.current_checkout'), checkout_path(@item.checkouts.not_returned.first) -%>)
|
38
|
-
<%- end -%>
|
34
|
+
<%= @item.circulation_status.display_name.localize -%>
|
35
|
+
<%- if current_user.try(:has_role?, 'Librarian') -%>
|
36
|
+
<%- unless @item.checkouts.not_returned.blank? -%>
|
37
|
+
(<%= link_to t('item.current_checkout'), checkout_path(@item.checkouts.not_returned.first) -%>)
|
39
38
|
<%- end -%>
|
40
39
|
<%- end -%>
|
41
40
|
</p>
|
@@ -44,7 +43,7 @@
|
|
44
43
|
<strong><%= t('activerecord.models.use_restriction') -%>:</strong>
|
45
44
|
<% if @item.use_restriction %>
|
46
45
|
<ul>
|
47
|
-
<li><%=
|
46
|
+
<li><%= @item.use_restriction.display_name.localize -%></li>
|
48
47
|
</ul>
|
49
48
|
<% end %>
|
50
49
|
</p>
|
data/lib/enju_biblio/version.rb
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
class CreateBookmarkStatTransitions < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :bookmark_stat_transitions do |t|
|
4
|
+
t.string :to_state
|
5
|
+
t.text :metadata, default: "{}"
|
6
|
+
t.integer :sort_key
|
7
|
+
t.integer :bookmark_stat_id
|
8
|
+
t.timestamps
|
9
|
+
end
|
10
|
+
|
11
|
+
add_index :bookmark_stat_transitions, :bookmark_stat_id
|
12
|
+
add_index :bookmark_stat_transitions, [:sort_key, :bookmark_stat_id], unique: true, name: "index_bookmark_stat_transitions_on_sort_key_and_stat_id"
|
13
|
+
end
|
14
|
+
end
|