enju_bookmark 0.1.2.pre17 → 0.1.2.pre18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/bookmark.rb +12 -12
- data/lib/enju_bookmark/engine.rb +1 -0
- data/lib/enju_bookmark/manifestation.rb +4 -4
- data/lib/enju_bookmark/version.rb +1 -1
- data/spec/controllers/bookmark_stats_controller_spec.rb +4 -4
- data/spec/dummy/config/boot.rb +2 -2
- data/spec/dummy/config/initializers/friendly_id.rb +90 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/005_create_manifestations.rb +0 -1
- data/spec/dummy/db/migrate/029_create_subjects.rb +27 -0
- data/spec/dummy/db/migrate/035_create_reserves.rb +1 -2
- data/spec/dummy/db/migrate/059_create_libraries.rb +5 -1
- data/spec/dummy/db/migrate/069_create_shelves.rb +5 -1
- data/spec/dummy/db/migrate/077_create_user_groups.rb +7 -3
- data/spec/dummy/db/migrate/080_create_library_groups.rb +6 -1
- data/spec/dummy/db/migrate/113_create_events.rb +23 -0
- data/spec/dummy/db/migrate/114_create_event_categories.rb +16 -0
- data/spec/dummy/db/migrate/130_create_request_status_types.rb +5 -1
- data/spec/dummy/db/migrate/131_create_request_types.rb +5 -1
- data/spec/dummy/db/migrate/133_create_agent_merges.rb +15 -0
- data/spec/dummy/db/migrate/134_create_agent_merge_lists.rb +13 -0
- data/spec/dummy/db/migrate/142_create_classifications.rb +19 -0
- data/spec/dummy/db/migrate/144_create_classification_types.rb +16 -0
- data/spec/dummy/db/migrate/145_create_subject_heading_types.rb +16 -0
- data/spec/dummy/db/migrate/146_create_subject_types.rb +16 -0
- data/spec/dummy/db/migrate/149_create_message_templates.rb +18 -0
- data/spec/dummy/db/migrate/154_create_messages.rb +23 -0
- data/spec/dummy/db/migrate/20080819181903_create_message_requests.rb +18 -0
- data/spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +0 -1
- data/spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb +0 -1
- data/spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +0 -1
- data/spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb +0 -1
- data/spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +0 -4
- data/spec/dummy/db/migrate/20090831220301_create_lending_policies.rb +1 -1
- data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +0 -1
- data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +1 -1
- data/spec/dummy/db/migrate/20110913115320_add_lft_and_rgt_to_message.rb +11 -0
- data/spec/dummy/db/migrate/20110913120629_add_lft_and_rgt_to_classification.rb +11 -0
- data/spec/dummy/db/migrate/20111201121844_create_roles.rb +12 -0
- data/spec/dummy/db/migrate/{20111201155513_add_devise_to_users.rb → 20111201155456_devise_create_users.rb} +9 -17
- data/spec/dummy/db/migrate/{20100606065209_create_user_has_roles.rb → 20111201163718_create_user_has_roles.rb} +0 -2
- data/spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb +6 -0
- data/spec/dummy/db/migrate/20120224094141_create_delayed_jobs.rb +22 -0
- data/spec/dummy/db/migrate/20120406020752_add_url_to_subject.rb +5 -0
- data/spec/dummy/db/migrate/20130303124821_add_retained_at_to_reserve.rb +5 -0
- data/spec/dummy/db/migrate/20130304015019_add_postponed_at_to_reserve.rb +5 -0
- data/spec/dummy/db/migrate/20130416054135_add_circulation_status_id_to_item.rb +8 -0
- data/spec/dummy/db/migrate/20130504133816_add_manifestation_id_to_subject.rb +6 -0
- data/spec/dummy/db/migrate/20130504143515_add_manifestation_id_to_classification.rb +6 -0
- data/spec/dummy/db/migrate/20130504195916_add_subject_heading_type_id_to_subject.rb +5 -0
- data/spec/dummy/db/migrate/20130519065638_add_lock_version_to_reserve.rb +5 -0
- data/spec/dummy/db/migrate/20130519065837_add_lock_version_to_checkin.rb +5 -0
- data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +1 -1
- data/spec/dummy/db/migrate/20140518050147_create_reserve_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140518111006_create_message_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140518135713_create_message_request_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140528045518_create_user_checkout_stat_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140528045539_create_user_reserve_stat_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140528045600_create_manifestation_checkout_stat_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140528045617_create_manifestation_reserve_stat_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140810061942_add_user_id_to_user_checkout_stat.rb +12 -0
- data/spec/dummy/db/migrate/20140810091231_add_checkout_icalendar_token_to_profile.rb +6 -0
- data/spec/dummy/db/migrate/20140810091417_add_save_checkout_history_to_profile.rb +5 -0
- data/spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb +5 -0
- data/spec/dummy/db/migrate/20140813182425_add_publication_place_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20140822114527_add_error_message_to_resource_import_result.rb +5 -0
- data/spec/dummy/db/migrate/20140823083524_add_extent_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20140823094847_add_dimensions_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20140823095740_rename_manifestation_periodical_to_serial.rb +9 -0
- data/spec/dummy/db/schema.rb +828 -565
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/default/data/index/segments.gen +0 -0
- data/spec/dummy/solr/default/data/index/segments_1vs +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000002429 +0 -0
- data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000300 → tlog.0000000000000002430} +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000002431 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000002432 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000002433 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000002434 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000002435 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000002436 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000002437 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000002438 +0 -0
- data/spec/fixtures/checkout_types.yml +34 -0
- data/spec/fixtures/circulation_statuses.yml +120 -0
- data/spec/fixtures/manifestations.yml +5 -5
- data/spec/fixtures/users.yml +1 -1
- metadata +145 -49
- data/spec/dummy/db/migrate/041_create_roles.rb +0 -13
- data/spec/dummy/db/migrate/20111201155456_create_users.rb +0 -8
- data/spec/dummy/solr/default/data/index/segments_8m +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000299 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000301 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000302 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000303 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000304 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000305 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000306 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000307 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000308 +0 -0
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000300 → tlog.0000000000000002430}
RENAMED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
+
|
3
|
+
checkout_type_00001:
|
4
|
+
id: 1
|
5
|
+
name: book
|
6
|
+
display_name: book
|
7
|
+
note:
|
8
|
+
position: 1
|
9
|
+
checkout_type_00002:
|
10
|
+
id: 2
|
11
|
+
name: serial
|
12
|
+
display_name: serial
|
13
|
+
note:
|
14
|
+
position: 2
|
15
|
+
checkout_type_00003:
|
16
|
+
id: 3
|
17
|
+
name: cd
|
18
|
+
display_name: cd
|
19
|
+
note:
|
20
|
+
position: 3
|
21
|
+
|
22
|
+
# == Schema Information
|
23
|
+
#
|
24
|
+
# Table name: checkout_types
|
25
|
+
#
|
26
|
+
# id :integer not null, primary key
|
27
|
+
# name :string(255) not null
|
28
|
+
# display_name :text
|
29
|
+
# note :text
|
30
|
+
# position :integer
|
31
|
+
# created_at :datetime not null
|
32
|
+
# updated_at :datetime not null
|
33
|
+
#
|
34
|
+
|
@@ -0,0 +1,120 @@
|
|
1
|
+
---
|
2
|
+
circulation_status_00001:
|
3
|
+
name: Available For Pickup
|
4
|
+
display_name: "en: Available For Pickup\r\n\
|
5
|
+
ja: 持ち出し可能"
|
6
|
+
id: 1
|
7
|
+
note: ""
|
8
|
+
position: 1
|
9
|
+
circulation_status_00002:
|
10
|
+
name: Available On Shelf
|
11
|
+
display_name: "en: Available on Shelf\r\n\
|
12
|
+
ja: 在架(利用可能)"
|
13
|
+
id: 2
|
14
|
+
note: ""
|
15
|
+
position: 2
|
16
|
+
circulation_status_00003:
|
17
|
+
name: Circulation Status Undefined
|
18
|
+
display_name: Circulation Status Undefined
|
19
|
+
id: 3
|
20
|
+
note: ""
|
21
|
+
position: 3
|
22
|
+
circulation_status_00004:
|
23
|
+
name: Claimed Returned Or Never Borrowed
|
24
|
+
display_name: Claimed Returned Or Never Borrowed
|
25
|
+
id: 4
|
26
|
+
note: ""
|
27
|
+
position: 4
|
28
|
+
circulation_status_00005:
|
29
|
+
name: In Process
|
30
|
+
display_name: "en: In Process\r\n\
|
31
|
+
ja: 作業中"
|
32
|
+
id: 5
|
33
|
+
note: ""
|
34
|
+
position: 5
|
35
|
+
circulation_status_00006:
|
36
|
+
name: In Transit Between Library Locations
|
37
|
+
display_name: In Transit Between Library Locations
|
38
|
+
id: 6
|
39
|
+
note: ""
|
40
|
+
position: 6
|
41
|
+
circulation_status_00007:
|
42
|
+
name: Lost
|
43
|
+
display_name: "en: Lost\r\n\
|
44
|
+
ja: 紛失"
|
45
|
+
id: 7
|
46
|
+
note: ""
|
47
|
+
position: 7
|
48
|
+
circulation_status_00008:
|
49
|
+
name: Missing
|
50
|
+
display_name: "en: Missing\r\n\
|
51
|
+
ja: 行方不明"
|
52
|
+
id: 8
|
53
|
+
note: ""
|
54
|
+
position: 8
|
55
|
+
circulation_status_00009:
|
56
|
+
name: Not Available
|
57
|
+
display_name: "en: Not Available\r\n\
|
58
|
+
ja: 利用不可"
|
59
|
+
id: 9
|
60
|
+
note: ""
|
61
|
+
position: 9
|
62
|
+
circulation_status_00010:
|
63
|
+
name: On Loan
|
64
|
+
display_name: "en: On Loan\r\n\
|
65
|
+
ja: 貸出中"
|
66
|
+
id: 10
|
67
|
+
note: ""
|
68
|
+
position: 10
|
69
|
+
circulation_status_00011:
|
70
|
+
name: On Order
|
71
|
+
display_name: On Order
|
72
|
+
id: 11
|
73
|
+
note: ""
|
74
|
+
position: 11
|
75
|
+
circulation_status_00012:
|
76
|
+
name: Pending Transfer
|
77
|
+
display_name: Pending Transfer
|
78
|
+
id: 12
|
79
|
+
note: ""
|
80
|
+
position: 12
|
81
|
+
circulation_status_00013:
|
82
|
+
name: Recalled
|
83
|
+
display_name: Recalled
|
84
|
+
id: 13
|
85
|
+
note: ""
|
86
|
+
position: 13
|
87
|
+
circulation_status_00014:
|
88
|
+
name: Waiting To Be Reshelved
|
89
|
+
display_name: Waiting To Be Reshelved
|
90
|
+
id: 14
|
91
|
+
note: ""
|
92
|
+
position: 14
|
93
|
+
circulation_status_00015:
|
94
|
+
name: Not arrived
|
95
|
+
display_name: "en: Not arrived\r\n\
|
96
|
+
ja: 未着"
|
97
|
+
id: 15
|
98
|
+
note: ""
|
99
|
+
position: 15
|
100
|
+
circulation_status_00016:
|
101
|
+
name: Removed
|
102
|
+
display_name: "en: Removed\r\n\
|
103
|
+
ja: 除籍済み"
|
104
|
+
id: 16
|
105
|
+
note: ""
|
106
|
+
position: 16
|
107
|
+
|
108
|
+
# == Schema Information
|
109
|
+
#
|
110
|
+
# Table name: circulation_statuses
|
111
|
+
#
|
112
|
+
# id :integer not null, primary key
|
113
|
+
# name :string(255) not null
|
114
|
+
# display_name :text
|
115
|
+
# note :text
|
116
|
+
# position :integer
|
117
|
+
# created_at :datetime not null
|
118
|
+
# updated_at :datetime not null
|
119
|
+
#
|
120
|
+
|
@@ -1581,7 +1581,7 @@ manifestation_00201:
|
|
1581
1581
|
width:
|
1582
1582
|
created_at: 2007-11-19 17:55:41 UTC
|
1583
1583
|
frequency_id: 3
|
1584
|
-
|
1584
|
+
serial: true
|
1585
1585
|
manifestation_00202:
|
1586
1586
|
carrier_type_id: 1
|
1587
1587
|
language_id: 1
|
@@ -1600,7 +1600,7 @@ manifestation_00202:
|
|
1600
1600
|
serial_number: 2
|
1601
1601
|
volume_number: 1
|
1602
1602
|
issue_number: 2
|
1603
|
-
|
1603
|
+
serial: true
|
1604
1604
|
manifestation_00203:
|
1605
1605
|
carrier_type_id: 1
|
1606
1606
|
language_id: 1
|
@@ -1616,7 +1616,7 @@ manifestation_00203:
|
|
1616
1616
|
width:
|
1617
1617
|
created_at: 2010-03-03 17:00:00 UTC
|
1618
1618
|
frequency_id: 1
|
1619
|
-
|
1619
|
+
serial: false
|
1620
1620
|
manifestation_00204:
|
1621
1621
|
carrier_type_id: 1
|
1622
1622
|
language_id: 1
|
@@ -1631,7 +1631,7 @@ manifestation_00204:
|
|
1631
1631
|
height:
|
1632
1632
|
width:
|
1633
1633
|
created_at: 2010-03-03 20:00:00 UTC
|
1634
|
-
|
1634
|
+
serial: true
|
1635
1635
|
manifestation_00205:
|
1636
1636
|
carrier_type_id: 1
|
1637
1637
|
language_id: 1
|
@@ -1876,6 +1876,6 @@ manifestation_00216:
|
|
1876
1876
|
# month_of_publication :integer
|
1877
1877
|
# fulltext_content :boolean
|
1878
1878
|
# doi :string(255)
|
1879
|
-
#
|
1879
|
+
# serial :boolean
|
1880
1880
|
# statement_of_responsibility :text
|
1881
1881
|
#
|
data/spec/fixtures/users.yml
CHANGED
@@ -3,7 +3,7 @@ admin:
|
|
3
3
|
updated_at: 2008-05-31 13:16:30.163731 +09:00
|
4
4
|
encrypted_password: $2a$10$vHohD1WflnTIqAa8zMkF9evwAgIZRw3XuR4d3bi29M.jph/MB/AJi
|
5
5
|
id: 1
|
6
|
-
username:
|
6
|
+
username: enjuadmin
|
7
7
|
email: tanabe@kamata.lib.teu.ac.jp
|
8
8
|
created_at: 2007-11-19 16:58:32.111941 +09:00
|
9
9
|
librarian1:
|