hydra_mediated 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +18 -0
  3. data/.rspec +1 -0
  4. data/Gemfile +7 -0
  5. data/HYDRA_MEDIATED_VERSION +1 -0
  6. data/README.md +36 -0
  7. data/Rakefile +5 -0
  8. data/app/assets/images/blacklight/bg.png +0 -0
  9. data/app/assets/images/blacklight/border.png +0 -0
  10. data/app/assets/images/blacklight/bul_sq_gry.gif +0 -0
  11. data/app/assets/images/blacklight/checkmark.gif +0 -0
  12. data/app/assets/images/blacklight/logo.png +0 -0
  13. data/app/assets/images/blacklight/magnifying_glass.gif +0 -0
  14. data/app/assets/images/blacklight/remove.gif +0 -0
  15. data/app/assets/images/blacklight/separator.gif +0 -0
  16. data/app/assets/images/blacklight/start_over.gif +0 -0
  17. data/app/assets/images/rails.png +0 -0
  18. data/app/assets/javascripts/application.js +17 -0
  19. data/app/assets/javascripts/items.js.coffee +3 -0
  20. data/app/assets/stylesheets/application.css +14 -0
  21. data/app/assets/stylesheets/blacklight.css.scss +4 -0
  22. data/app/assets/stylesheets/items.css.scss +3 -0
  23. data/app/controllers/application_controller.rb +10 -0
  24. data/app/controllers/catalog_controller.rb +165 -0
  25. data/app/controllers/items_controller.rb +34 -0
  26. data/app/controllers/submissions_controller.rb +7 -0
  27. data/app/helpers/application_helper.rb +2 -0
  28. data/app/helpers/items_helper.rb +5 -0
  29. data/app/mailers/.gitkeep +0 -0
  30. data/app/models/.gitkeep +0 -0
  31. data/app/models/ability.rb +3 -0
  32. data/app/models/ead.rb +3 -0
  33. data/app/models/etd.rb +3 -0
  34. data/app/models/generic.rb +3 -0
  35. data/app/models/generic_file.rb +3 -0
  36. data/app/models/item.rb +4 -0
  37. data/app/models/solr_document.rb +33 -0
  38. data/app/models/user.rb +22 -0
  39. data/app/views/catalog/_home_text.html.erb +9 -0
  40. data/app/views/catalog/_show_tools.html.erb +44 -0
  41. data/app/views/devise/confirmations/new.html.erb +12 -0
  42. data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
  43. data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
  44. data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
  45. data/app/views/devise/passwords/edit.html.erb +16 -0
  46. data/app/views/devise/passwords/new.html.erb +12 -0
  47. data/app/views/devise/registrations/edit.html.erb +29 -0
  48. data/app/views/devise/registrations/new.html.erb +18 -0
  49. data/app/views/devise/sessions/new.html.erb +17 -0
  50. data/app/views/devise/shared/_links.erb +25 -0
  51. data/app/views/devise/unlocks/new.html.erb +12 -0
  52. data/app/views/items/done.html.erb +3 -0
  53. data/app/views/items/edit.html.erb +25 -0
  54. data/app/views/items/new.html.erb +22 -0
  55. data/app/views/items/submit.html.erb +6 -0
  56. data/app/views/items/upload.html.erb +5 -0
  57. data/app/views/layouts/application.html.erb +14 -0
  58. data/app/views/submissions/new.html.erb +13 -0
  59. data/config.ru +4 -0
  60. data/config/SolrMarc/config-test.properties +37 -0
  61. data/config/SolrMarc/config.properties +37 -0
  62. data/config/SolrMarc/index.properties +97 -0
  63. data/config/SolrMarc/index_scripts/dewey.bsh +47 -0
  64. data/config/SolrMarc/index_scripts/format.bsh +126 -0
  65. data/config/SolrMarc/translation_maps/README_MAPS +1 -0
  66. data/config/SolrMarc/translation_maps/callnumber_map.properties +407 -0
  67. data/config/SolrMarc/translation_maps/composition_era_map.properties +56 -0
  68. data/config/SolrMarc/translation_maps/country_map.properties +379 -0
  69. data/config/SolrMarc/translation_maps/format_map.properties +50 -0
  70. data/config/SolrMarc/translation_maps/instrument_map.properties +101 -0
  71. data/config/SolrMarc/translation_maps/language_map.properties +490 -0
  72. data/config/application.rb +66 -0
  73. data/config/boot.rb +6 -0
  74. data/config/database.yml +25 -0
  75. data/config/environment.rb +5 -0
  76. data/config/locales/devise.en.yml +59 -0
  77. data/config/locales/en.yml +5 -0
  78. data/config/routes.rb +20 -0
  79. data/db/migrate/20130606160529_devise_create_users.rb +46 -0
  80. data/db/migrate/20130606160531_add_devise_guests_to_users.rb +15 -0
  81. data/db/migrate/20130606160536_create_searches.rb +16 -0
  82. data/db/migrate/20130606160537_create_bookmarks.rb +18 -0
  83. data/db/migrate/20130606160538_remove_editable_fields_from_bookmarks.rb +12 -0
  84. data/db/migrate/20130606160539_add_user_types_to_bookmarks_searches.rb +16 -0
  85. data/db/schema.rb +54 -0
  86. data/db/seeds.rb +7 -0
  87. data/doc/README_FOR_APP +2 -0
  88. data/fedora_conf/conf/development/fedora.fcfg +953 -0
  89. data/fedora_conf/conf/test/fedora.fcfg +953 -0
  90. data/hydra_mediated.gemspec +22 -0
  91. data/lib/assets/.gitkeep +0 -0
  92. data/lib/hydra/mediated/ability.rb +17 -0
  93. data/lib/hydra/mediated/generic_file.rb +13 -0
  94. data/lib/hydra/mediated/item.rb +35 -0
  95. data/lib/hydra_mediated.rb +21 -0
  96. data/lib/tasks/.gitkeep +0 -0
  97. data/log/.gitkeep +0 -0
  98. data/public/404.html +26 -0
  99. data/public/422.html +26 -0
  100. data/public/500.html +25 -0
  101. data/public/favicon.ico +0 -0
  102. data/public/robots.txt +5 -0
  103. data/script/rails +6 -0
  104. data/solr_conf/conf/schema.xml +273 -0
  105. data/solr_conf/conf/solrconfig.xml +167 -0
  106. data/solr_conf/solr.xml +35 -0
  107. data/spec/controllers/items_controller_spec.rb +56 -0
  108. data/spec/helpers/items_helper_spec.rb +8 -0
  109. data/spec/models/ability_spec.rb +24 -0
  110. data/spec/models/item_spec.rb +26 -0
  111. data/spec/spec_helper.rb +33 -0
  112. data/test/fixtures/.gitkeep +0 -0
  113. data/test/fixtures/users.yml +11 -0
  114. data/test/functional/.gitkeep +0 -0
  115. data/test/integration/.gitkeep +0 -0
  116. data/test/performance/browsing_test.rb +12 -0
  117. data/test/test_helper.rb +13 -0
  118. data/test/unit/.gitkeep +0 -0
  119. data/test/unit/user_test.rb +7 -0
  120. data/vendor/assets/javascripts/.gitkeep +0 -0
  121. data/vendor/assets/stylesheets/.gitkeep +0 -0
  122. data/vendor/plugins/.gitkeep +0 -0
  123. metadata +222 -0
@@ -0,0 +1,56 @@
1
+ a = B.C.
2
+ b = B.C.
3
+ c = B.C.
4
+ d = B.C.
5
+ e = 1st Century
6
+ f = 2nd Century
7
+ g = 3rd Century
8
+ h = 4th Century
9
+ i = 5th Century
10
+ j = 6th Century
11
+ k = 7th Century
12
+ l = 8th Century
13
+ m = 9th Century
14
+ n = 10th Century
15
+ o = 11th Century
16
+ p = 12th Century
17
+ q = 13th Century
18
+ r = 14th Century
19
+ s = 15th Century
20
+ t = 16th Century
21
+ u = 17th Century
22
+ v = 18th Century
23
+ v0 = 1700's
24
+ v1 = 1710's
25
+ v2 = 1720's
26
+ v3 = 1730's
27
+ v4 = 1740's
28
+ v5 = 1750's
29
+ v6 = 1760's
30
+ v7 = 1770's
31
+ v8 = 1780's
32
+ v9 = 1790's
33
+ w = 19th Century
34
+ w0 = 1800's
35
+ w1 = 1810's
36
+ w2 = 1820's
37
+ w3 = 1830's
38
+ w4 = 1840's
39
+ w5 = 1850's
40
+ w6 = 1860's
41
+ w7 = 1870's
42
+ w8 = 1880's
43
+ w9 = 1890's
44
+ x = 20th Century
45
+ x0 = 1900's
46
+ x1 = 1910's
47
+ x2 = 1920's
48
+ x3 = 1930's
49
+ x4 = 1940's
50
+ x5 = 1950's
51
+ x6 = 1960's
52
+ x7 = 1970's
53
+ x8 = 1980's
54
+ x9 = 1990's
55
+ y = 21th Century
56
+ y0 = 2000's
@@ -0,0 +1,379 @@
1
+ # Map 3 letter Country/Location Code (in 008, bytes 15-17) to User Friendly Name
2
+ # includes discontinued codes, because they're probably in our data
3
+
4
+ #Two-character codes are left justified and the unused position contains a blank
5
+
6
+ aa = Albania
7
+ abc = Alberta, Canada
8
+ ac = Ashmore and Cartier Islands
9
+ aca = Australian Capital Territory
10
+ ae = Algeria
11
+ af = Afghanistan
12
+ ag = Argentina
13
+ ai = Anguilla
14
+ ai = Armenia (Republic)
15
+ air = Armenia (Republic)
16
+ aj = Azerbaijan
17
+ ajr = Azerbaijan
18
+ aku = Alaska, United States
19
+ alu = Alabama, United States
20
+ am = Anguilla
21
+ an = Andorra
22
+ ao = Angola
23
+ aq = Antigua and Barbuda
24
+ aru = Arkansas, United States
25
+ as = American Samoa
26
+ at = Australia
27
+ au = Austria
28
+ aw = Aruba
29
+ ay = Antarctica
30
+ azu = Arizona, United States
31
+ ba = Bahrain
32
+ bb = Barbados
33
+ bcc = British Columbia, Canada
34
+ bd = Burundi
35
+ be = Belgium
36
+ bf = Bahamas
37
+ bg = Bangladesh
38
+ bh = Belize
39
+ bi = British Indian Ocean Territory
40
+ bl = Brazil
41
+ bm = Bermuda Islands
42
+ bn = Bosnia and Hercegovina
43
+ bo = Bolivia
44
+ bp = Solomon Islands
45
+ br = Burma
46
+ bs = Botswana
47
+ bt = Bhutan
48
+ bu = Bulgaria
49
+ bv = Bouvet Island
50
+ bw = Belarus
51
+ bwr = Belarus
52
+ bx = Brunei
53
+ cau = California, United States
54
+ cb = Cambodia
55
+ cc = China
56
+ cd = Chad
57
+ ce = Sri Lanka
58
+ cf = Congo (Brazzaville)
59
+ cg = Congo (Democratic Republic)
60
+ ch = China (Republic : 1949- )
61
+ ci = Croatia
62
+ cj = Cayman Islands
63
+ ck = Colombia
64
+ cl = Chile
65
+ cm = Cameroon
66
+ cn = Canada
67
+ cou = Colorado, United States
68
+ cp = Canton and Enderbury Islands
69
+ cq = Comoros
70
+ cr = Costa Rica
71
+ cs = Czechoslovakia
72
+ ctu = Connecticut, United States
73
+ cu = Cuba
74
+ cv = Cape Verde
75
+ cw = Cook Islands
76
+ cx = Central African Republic
77
+ cy = Cyprus
78
+ cz = Canal Zone
79
+ dcu = District of Columbia, United States
80
+ deu = Delaware, United States
81
+ dk = Denmark
82
+ dm = Benin
83
+ dq = Dominica
84
+ dr = Dominican Republic
85
+ ea = Eritrea
86
+ ec = Ecuador
87
+ eg = Equatorial Guinea
88
+ em = East Timor
89
+ enk = England, United Kingdom
90
+ er = Estonia
91
+ err = Estonia
92
+ es = El Salvador
93
+ et = Ethiopia
94
+ fa = Faroe Islands
95
+ fg = French Guiana
96
+ fi = Finland
97
+ fj = Fiji
98
+ fk = Falkland Islands
99
+ flu = Florida, United States
100
+ fm = Micronesia (Federated States)
101
+ fp = French Polynesia
102
+ fr = France
103
+ fs = Terres australes et antarctiques fran�aises
104
+ ft = Djibouti
105
+ gau = Georgia, United States
106
+ gb = Kiribati
107
+ gd = Grenada
108
+ ge = Germany (East)
109
+ gh = Ghana
110
+ gi = Gibraltar
111
+ gl = Greenland
112
+ gm = Gambia
113
+ gn = Gilbert and Ellice Islands
114
+ go = Gabon
115
+ gp = Guadeloupe
116
+ gr = Greece
117
+ gs = Georgia (Republic)
118
+ gsr = Georgia (Republic)
119
+ gt = Guatemala
120
+ gu = Guam
121
+ gv = Guinea
122
+ gw = Germany
123
+ gy = Guyana
124
+ gz = Gaza Strip
125
+ hiu = Hawaii, United States
126
+ hk = Hong Kong
127
+ hm = Heard and McDonald Islands
128
+ ho = Honduras
129
+ ht = Haiti
130
+ hu = Hungary
131
+ iau = Iowa, United States
132
+ ic = Iceland
133
+ idu = Idaho, United States
134
+ ie = Ireland
135
+ ii = India
136
+ ilu = Illinois, United States
137
+ inu = Indiana, United States
138
+ io = Indonesia
139
+ iq = Iraq
140
+ ir = Iran
141
+ is = Israel
142
+ it = Italy
143
+ iu = Israel-Syria Demilitarized Zones
144
+ iv = C�te d'Ivoire
145
+ iw = Israel-Jordan Demilitarized Zones
146
+ iy = Iraq-Saudi Arabia Neutral Zone
147
+ ja = Japan
148
+ ji = Johnston Atoll
149
+ jm = Jamaica
150
+ jn = Jan Mayen
151
+ jo = Jordan
152
+ ke = Kenya
153
+ kg = Kyrgyzstan
154
+ kgr = Kyrgyzstan
155
+ kn = Korea (North)
156
+ ko = Korea (South)
157
+ ksu = Kansas, United States
158
+ ku = Kuwait
159
+ kv = Kosovo
160
+ kyu = Kentucky, United States
161
+ kz = Kazakhstan
162
+ kzr = Kazakhstan
163
+ lau = Louisiana, United States
164
+ lb = Liberia
165
+ le = Lebanon
166
+ lh = Liechtenstein
167
+ li = Lithuania
168
+ lir = Lithuania
169
+ ln = Central and Southern Line Islands
170
+ lo = Lesotho
171
+ ls = Laos
172
+ lu = Luxembourg
173
+ lv = Latvia
174
+ lvr = Latvia
175
+ ly = Libya
176
+ mau = Massachusetts, United States
177
+ mbc = Manitoba, Canada
178
+ mc = Monaco
179
+ mdu = Maryland, United States
180
+ meu = Maine, United States
181
+ mf = Mauritius
182
+ mg = Madagascar
183
+ mh = Macao
184
+ miu = Michigan, United States
185
+ mj = Montserrat
186
+ mk = Oman
187
+ ml = Mali
188
+ mm = Malta
189
+ mnu = Minnesota, United States
190
+ mo = Montenegro
191
+ mou = Missouri, United States
192
+ mp = Mongolia
193
+ mq = Martinique
194
+ mr = Morocco
195
+ msu = Mississippi, United States
196
+ mtu = Montana, United States
197
+ mu = Mauritania
198
+ mv = Moldova
199
+ mvr = Moldova
200
+ mw = Malawi
201
+ mx = Mexico
202
+ my = Malaysia
203
+ mz = Mozambique
204
+ na = Netherlands Antilles
205
+ nbu = Nebraska, United States
206
+ ncu = North Carolina, United States
207
+ ndu = North Dakota, United States
208
+ ne = Netherlands
209
+ nfc = Newfoundland and Labrador, Canada
210
+ ng = Niger
211
+ nhu = New Hampshire, United States
212
+ nik = Northern Ireland, United Kingdom
213
+ nju = New Jersey, United States
214
+ nkc = New Brunswick, Canada
215
+ nl = New Caledonia
216
+ nm = Northern Mariana Islands
217
+ nmu = New Mexico, United States
218
+ nn = Vanuatu
219
+ no = Norway
220
+ np = Nepal
221
+ nq = Nicaragua
222
+ nr = Nigeria
223
+ nsc = Nova Scotia, Canada
224
+ ntc = Northwest Territories, Canada
225
+ nu = Nauru
226
+ nuc = Nunavut, Canada
227
+ nvu = Nevada, United States
228
+ nw = Northern Mariana Islands
229
+ nx = Norfolk Island
230
+ nyu = New York (State), United States
231
+ nz = New Zealand
232
+ ohu = Ohio, United States
233
+ oku = Oklahoma, United States
234
+ onc = Ontario, Canada
235
+ oru = Oregon, United States
236
+ ot = Mayotte
237
+ pau = Pennsylvania, United States
238
+ pc = Pitcairn Island
239
+ pe = Peru
240
+ pf = Paracel Islands
241
+ pg = Guinea-Bissau
242
+ ph = Philippines
243
+ pic = Prince Edward Island, Canada
244
+ pk = Pakistan
245
+ pl = Poland
246
+ pn = Panama
247
+ po = Portugal
248
+ pp = Papua New Guinea
249
+ pr = Puerto Rico
250
+ pt = Portuguese Timor
251
+ pw = Palau
252
+ py = Paraguay
253
+ qa = Qatar
254
+ qea = Queensland, Australia
255
+ quc = Qu�bec (Province), Canada
256
+ rb = Serbia
257
+ re = R�union
258
+ rh = Zimbabwe
259
+ riu = Rhode Island, United States
260
+ rm = Romania
261
+ ru = Russia (Federation)
262
+ rur = Russia (Federation)
263
+ rw = Rwanda
264
+ ry = Ryukyu Islands, Southern
265
+ sa = South Africa
266
+ sb = Svalbard
267
+ scu = South Carolina, United States
268
+ sdu = South Dakota, United States
269
+ se = Seychelles
270
+ sf = Sao Tome and Principe
271
+ sg = Senegal
272
+ sh = Spanish North Africa
273
+ si = Singapore
274
+ sj = Sudan
275
+ sk = Sikkim
276
+ sl = Sierra Leone
277
+ sm = San Marino
278
+ snc = Saskatchewan, Canada
279
+ so = Somalia
280
+ sp = Spain
281
+ sq = Swaziland
282
+ sr = Surinam
283
+ ss = Western Sahara
284
+ stk = Scotland, United Kingdom
285
+ su = Saudi Arabia
286
+ sv = Swan Islands
287
+ sw = Sweden
288
+ sx = Namibia
289
+ sy = Syria
290
+ sz = Switzerland
291
+ ta = Tajikistan
292
+ tar = Tajikistan
293
+ tc = Turks and Caicos Islands
294
+ tg = Togo
295
+ th = Thailand
296
+ ti = Tunisia
297
+ tk = Turkmenistan
298
+ tkr = Turkmenistan
299
+ tl = Tokelau
300
+ tma = Tasmania, Australia
301
+ tnu = Tennessee, United States
302
+ to = Tonga
303
+ tr = Trinidad and Tobago
304
+ ts = United Arab Emirates
305
+ tt = Trust Territory of the Pacific Islands
306
+ tu = Turkey
307
+ tv = Tuvalu
308
+ txu = Texas, United States
309
+ tz = Tanzania
310
+ ua = Egypt
311
+ uc = United States Misc. Caribbean Islands
312
+ ug = Uganda
313
+ ui = United Kingdom Misc. Islands
314
+ uik = United Kingdom Misc. Islands
315
+ uk = United Kingdom
316
+ un = Ukraine
317
+ unr = Ukraine
318
+ up = United States Misc. Pacific Islands
319
+ ur = Soviet Union
320
+ us = United States
321
+ utu = Utah, United States
322
+ uv = Burkina Faso
323
+ uy = Uruguay
324
+ uz = Uzbekistan
325
+ uzr = Uzbekistan
326
+ vau = Virginia, United States
327
+ vb = British Virgin Islands
328
+ vc = Vatican City
329
+ ve = Venezuela
330
+ vi = Virgin Islands of the United States
331
+ vm = Vietnam
332
+ vn = Vietnam, North
333
+ #vp = Various places
334
+ vra = Victoria, Australia
335
+ vs = Vietnam, South
336
+ vtu = Vermont, United States
337
+ wau = Washington (State), United States
338
+ wb = West Berlin
339
+ wea = Western Australia
340
+ wf = Wallis and Futuna
341
+ wiu = Wisconsin, United States
342
+ wj = West Bank of the Jordan River
343
+ wk = Wake Island
344
+ wlk = Wales, United Kingdom
345
+ ws = Samoa
346
+ wvu = West Virginia, United States
347
+ wyu = Wyoming, United States
348
+ xa = Christmas Island (Indian Ocean)
349
+ xb = Cocos (Keeling) Islands
350
+ xc = Maldives
351
+ xd = Saint Kitts-Nevis
352
+ xe = Marshall Islands
353
+ xf = Midway Islands
354
+ xga = Coral Sea Islands Territory, Australia
355
+ xh = Niue
356
+ xi = Saint Kitts-Nevis-Anguilla
357
+ xj = Saint Helena
358
+ xk = Saint Lucia
359
+ xl = Saint Pierre and Miquelon
360
+ xm = Saint Vincent and the Grenadines
361
+ xn = Macedonia
362
+ xna = New South Wales, Australia
363
+ xo = Slovakia
364
+ xoa = Northern Territory, Australia
365
+ xp = Spratly Island
366
+ xr = Czech Republic
367
+ xra = South Australia
368
+ xs = South Georgia and the South Sandwich Islands
369
+ xv = Slovenia
370
+ #xx = No place, unknown, or undetermined
371
+ xxc = Canada
372
+ xxk = United Kingdom
373
+ xxr = Soviet Union
374
+ xxu = United States
375
+ ye = Yemen
376
+ ykc = Yukon Territory, Canada
377
+ ys = Yemen (People's Democratic Republic)
378
+ yu = Serbia and Montenegro
379
+ za = Zambia
@@ -0,0 +1,50 @@
1
+ #
2
+ # DATA FROM INDEXER = Label
3
+ #
4
+ Atlas = Map
5
+ Map = Map
6
+ TapeCartridge = Software
7
+ ChipCartridge = Software
8
+ DiscCartridge = Software
9
+ TapeCassette = Software
10
+ TapeReel = Software
11
+ FloppyDisk = Software
12
+ CDROM = Software
13
+ Software = Software
14
+ Globe = Globe
15
+ Braille = Braille
16
+ Filmstrip = Video
17
+ Transparency = Slide
18
+ Slide = Slide
19
+ Microfilm = Microfilm
20
+ Collage = Photo
21
+ Drawing = Photo
22
+ Painting = Photo
23
+ Print = Photo
24
+ Photonegative = Photo
25
+ FlashCard = Photo
26
+ Chart = Photo
27
+ Photo = Photo
28
+ MotionPicture = Video
29
+ Kit = Kit
30
+ MusicalScore = Musical Score
31
+ SensorImage = Sensor Image
32
+ SoundDisc = CD
33
+ SoundCassette = Cassette
34
+ SoundRecording = Audio
35
+ VideoCartridge = Video
36
+ VideoDisc = DVD
37
+ VideoCassette = VHS
38
+ VideoReel = Video
39
+ Video = Video
40
+ MusicalScore = Musical Score
41
+ MusicRecording = Audio
42
+ Electronic = Electronic
43
+ PhysicalObject = Physical Object
44
+ Manuscript = Manuscript
45
+ eBook = eBook
46
+ Book = Book
47
+ Newspaper = Newspaper
48
+ Journal = Journal
49
+ Serial = Serial
50
+ Unknown = Unknown