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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3694613739a52a166d8594bee2a659ff95c00d4
4
- data.tar.gz: 493b7561ab2ab5f078efe78500c24c06c4111a56
3
+ metadata.gz: 2dd53a7049e42dc24361a89c58aaf3336ee0cf4d
4
+ data.tar.gz: d33fad0a3c37f0ddd23724a8e0b55b600c5e44db
5
5
  SHA512:
6
- metadata.gz: 4247bee23c86f58aeb2451065503129c536183f2d241fab158a4f4b062ab3847c0d3162c39c6e22fed5fda5d378f4c0406b508da85d2b355e081261bb77e9595
7
- data.tar.gz: 41fd387bc3d6242fb5a08c4ba7bb9ffe9d44bbfc6a046e9876bebee51cfeba820cb0ea48b8897a2484e607446e5b08f450a45fe379651f56e56c30b81099b614
6
+ metadata.gz: 289d1cfe963f9d7011de48ba78beb508dc663057891a36406f365398130c8a3aad7b1c39a0cff0ba9ccdc91419940d4af1a3e7f65838b6621690296b2c4f5cfd
7
+ data.tar.gz: e5cbe3e846579a64a1632ae10463c4fa319201d1f3a82717214e71d9fc24f138477944e995140bb54b937bc6f0310fcdfb40c358ba6945342b61f743ddb6f306
@@ -1,5 +1,6 @@
1
1
  <div data-role="header">
2
- <h1 class="title"><%= t('page.showing', model: t('activerecord.models.item')) -%></h1>
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
- <%= link_to @item.checkout_type.display_name.localize, @item.checkout_type -%>
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><%= link_to lending_policy.user_group.display_name.localize, lending_policy -%></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
- <%= link_to @item.circulation_status.display_name.localize, @item.circulation_status -%>
34
- <%- if user_signed_in? -%>
35
- <%- if current_user.has_role?('Librarian') -%>
36
- <%- unless @item.checkouts.not_returned.blank? -%>
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><%= link_to @item.use_restriction.display_name.localize, @item.use_restriction -%></li>
46
+ <li><%= @item.use_restriction.display_name.localize -%></li>
48
47
  </ul>
49
48
  <% end %>
50
49
  </p>
@@ -1,3 +1,3 @@
1
1
  module EnjuBiblio
2
- VERSION = "0.1.0.pre61"
2
+ VERSION = "0.1.0.pre62"
3
3
  end
@@ -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
@@ -0,0 +1,5 @@
1
+ class AddShareBookmarksToProfile < ActiveRecord::Migration
2
+ def change
3
+ add_column :profiles, :share_bookmarks, :boolean
4
+ end
5
+ end