enju_leaf 1.2.0.beta.4 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/enju_leaf/helper.rb +2 -2
- data/lib/enju_leaf/version.rb +1 -1
- data/spec/dummy/db/migrate/20160801080612_add_most_recent_to_import_request_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20160801080619_add_most_recent_to_resource_import_file_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20160801080637_add_most_recent_to_resource_export_file_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20160801080643_add_most_recent_to_agent_import_file_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20160811102604_add_picture_width_to_picture_file.rb +6 -0
- data/spec/dummy/db/migrate/20160820004638_add_attachment_attachment_to_carrier_types.rb +11 -0
- metadata +374 -406
- data/app/assets/stylesheets/enju.css.mod +0 -576
- data/app/views/page/_menu.html.erb.mod +0 -144
@@ -1,576 +0,0 @@
|
|
1
|
-
body{
|
2
|
-
margin-left: 5px;
|
3
|
-
margin-right: 5px;
|
4
|
-
text-align: left;
|
5
|
-
}
|
6
|
-
|
7
|
-
a.hover{:background-color: transparent}
|
8
|
-
|
9
|
-
strong{
|
10
|
-
font-weight: bold;
|
11
|
-
}
|
12
|
-
|
13
|
-
div#narrow_search, div#narrow_library_search{
|
14
|
-
margin-top: 1em;
|
15
|
-
}
|
16
|
-
.line0{
|
17
|
-
background: #d7ebf9;
|
18
|
-
}
|
19
|
-
.line1{
|
20
|
-
background: white;
|
21
|
-
}
|
22
|
-
.overdue{
|
23
|
-
color: red;
|
24
|
-
}
|
25
|
-
.duedate_is_today{
|
26
|
-
color: blue;
|
27
|
-
}
|
28
|
-
.in_checkout{
|
29
|
-
color: black;
|
30
|
-
}
|
31
|
-
|
32
|
-
div#bd{
|
33
|
-
padding-left: 1px;
|
34
|
-
}
|
35
|
-
|
36
|
-
div#navibar{
|
37
|
-
clear: both;
|
38
|
-
padding-left: 5px;
|
39
|
-
padding-right: 5px;
|
40
|
-
width: 914px;
|
41
|
-
}
|
42
|
-
|
43
|
-
div#content{
|
44
|
-
padding-top: 8px;
|
45
|
-
padding-left: 4px;
|
46
|
-
padding-right: 4px;
|
47
|
-
clear: both;
|
48
|
-
}
|
49
|
-
|
50
|
-
div.header_and_footer{
|
51
|
-
padding: 2px;
|
52
|
-
clear: both;
|
53
|
-
}
|
54
|
-
|
55
|
-
div#header_left{
|
56
|
-
width: 400px;
|
57
|
-
height: 65px;
|
58
|
-
float: left;
|
59
|
-
padding-left: 2px;
|
60
|
-
padding-right: 2px;
|
61
|
-
padding-top: 5px;
|
62
|
-
padding-bottom: 5px;
|
63
|
-
}
|
64
|
-
|
65
|
-
div#library_system_name{
|
66
|
-
width: 400px;
|
67
|
-
height: 30px;
|
68
|
-
padding-left: 2px;
|
69
|
-
padding-right: 2px;
|
70
|
-
padding-top: 5px;
|
71
|
-
padding-bottom: 5px;
|
72
|
-
}
|
73
|
-
|
74
|
-
div#header_micro_advertisement{
|
75
|
-
width: 400px;
|
76
|
-
height: 35px;
|
77
|
-
padding-left: 5px;
|
78
|
-
padding-right: 5px;
|
79
|
-
padding-top: 0.5em;
|
80
|
-
padding-bottom: 0.5em;
|
81
|
-
}
|
82
|
-
|
83
|
-
div#header_center{
|
84
|
-
width: 240px;
|
85
|
-
height: 65px;
|
86
|
-
float: left;
|
87
|
-
padding-left: 5px;
|
88
|
-
padding-right: 5px;
|
89
|
-
padding-top: 0.5em;
|
90
|
-
padding-bottom: 0.5em;
|
91
|
-
}
|
92
|
-
|
93
|
-
div#header_select_locale{
|
94
|
-
width: 150px;
|
95
|
-
padding-left: 5px;
|
96
|
-
padding-right: 5px;
|
97
|
-
padding-top: 0.5em;
|
98
|
-
padding-bottom: 0.5em;
|
99
|
-
display: inline-block;
|
100
|
-
}
|
101
|
-
|
102
|
-
div#header_right{
|
103
|
-
width: 250px;
|
104
|
-
float: left;
|
105
|
-
padding-left: 5px;
|
106
|
-
padding-right: 5px;
|
107
|
-
padding-top: 0.5em;
|
108
|
-
padding-bottom: 0.5em;
|
109
|
-
}
|
110
|
-
|
111
|
-
div#search_footer{
|
112
|
-
clear: both;
|
113
|
-
}
|
114
|
-
|
115
|
-
div#submenu{
|
116
|
-
margin-left: 11px;
|
117
|
-
width: 190px;
|
118
|
-
padding: 5px;
|
119
|
-
float: left;
|
120
|
-
}
|
121
|
-
|
122
|
-
div#manifestation_book_jacket{
|
123
|
-
margin-top: 10px;
|
124
|
-
text-align: center;
|
125
|
-
}
|
126
|
-
|
127
|
-
div#pickup_book_jacket{
|
128
|
-
float: left;
|
129
|
-
text-align: center;
|
130
|
-
}
|
131
|
-
|
132
|
-
img.screen_shot{
|
133
|
-
border: 0;
|
134
|
-
}
|
135
|
-
|
136
|
-
div#manifestation_bookmark_buttons{
|
137
|
-
clear: both;
|
138
|
-
margin-top: 1em;
|
139
|
-
}
|
140
|
-
|
141
|
-
div#content_detail{
|
142
|
-
width: 700px;
|
143
|
-
float: left;
|
144
|
-
margin-bottom: 5px;
|
145
|
-
}
|
146
|
-
|
147
|
-
div#content_list{
|
148
|
-
padding: 10px;
|
149
|
-
}
|
150
|
-
|
151
|
-
div#manifestation_footer{
|
152
|
-
margin-top: 1em;
|
153
|
-
clear: both;
|
154
|
-
}
|
155
|
-
|
156
|
-
div#left_pane{
|
157
|
-
float: left;
|
158
|
-
width: 456px;
|
159
|
-
word-break: break-all;
|
160
|
-
}
|
161
|
-
|
162
|
-
div#right_pane{
|
163
|
-
float: left;
|
164
|
-
margin-left: 10px;
|
165
|
-
width: 456px;
|
166
|
-
word-break: break-all;
|
167
|
-
}
|
168
|
-
|
169
|
-
div#left_pane_detail{
|
170
|
-
margin-top: 5px;
|
171
|
-
float: left;
|
172
|
-
width: 330px;
|
173
|
-
word-break: break-all;
|
174
|
-
}
|
175
|
-
|
176
|
-
div#right_pane_detail{
|
177
|
-
margin-top: 5px;
|
178
|
-
float: left;
|
179
|
-
margin-left: 10px;
|
180
|
-
width: 330px;
|
181
|
-
word-break: break-all;
|
182
|
-
}
|
183
|
-
|
184
|
-
div#footer{
|
185
|
-
padding-top: 5px;
|
186
|
-
padding-left: 2px;
|
187
|
-
padding-right: 2px;
|
188
|
-
padding-bottom: 5px;
|
189
|
-
clear: both;
|
190
|
-
}
|
191
|
-
|
192
|
-
h1{
|
193
|
-
font-size: 180%;
|
194
|
-
margin-top: 5px;
|
195
|
-
margin-bottom: 10px;
|
196
|
-
line-height: 120%;
|
197
|
-
}
|
198
|
-
|
199
|
-
h2{
|
200
|
-
font-size: 160%;
|
201
|
-
margin-top: 5px;
|
202
|
-
margin-bottom: 10px;
|
203
|
-
}
|
204
|
-
|
205
|
-
h1.resource_title, h2.resource_title, h3.resource_title{
|
206
|
-
line-height: 140%;
|
207
|
-
}
|
208
|
-
|
209
|
-
h3{
|
210
|
-
font-size: 150%;
|
211
|
-
margin-top: 5px;
|
212
|
-
margin-bottom: 10px;
|
213
|
-
}
|
214
|
-
|
215
|
-
h4{
|
216
|
-
font-size: 120%;
|
217
|
-
margin-top: 5px;
|
218
|
-
margin-bottom: 10px;
|
219
|
-
}
|
220
|
-
|
221
|
-
h1.title, h2.title, h3.title, h4.title{
|
222
|
-
/* color: white; */
|
223
|
-
/* background-color: #5970B2; */
|
224
|
-
padding: 5px;
|
225
|
-
margin: 0px;
|
226
|
-
}
|
227
|
-
|
228
|
-
a.title { color: white; }
|
229
|
-
a.title:hover { color: white; }
|
230
|
-
a.title:visited { color: white; }
|
231
|
-
|
232
|
-
form{
|
233
|
-
padding: 0;
|
234
|
-
}
|
235
|
-
|
236
|
-
table{
|
237
|
-
border: 1px solid #2779aa;
|
238
|
-
}
|
239
|
-
|
240
|
-
td, th{
|
241
|
-
border: 1px solid #2779aa;
|
242
|
-
padding: 5px;
|
243
|
-
word-break: break-all
|
244
|
-
}
|
245
|
-
|
246
|
-
table#manifestation_list{
|
247
|
-
width: 100%;
|
248
|
-
}
|
249
|
-
|
250
|
-
table.index{
|
251
|
-
width: 100%;
|
252
|
-
}
|
253
|
-
|
254
|
-
div#search_form{
|
255
|
-
padding-top: 10px;
|
256
|
-
}
|
257
|
-
|
258
|
-
div#general_search_form{
|
259
|
-
clear: both;
|
260
|
-
padding-left: 4px;
|
261
|
-
padding-top: 10px;
|
262
|
-
}
|
263
|
-
|
264
|
-
table#manifestation_detail{
|
265
|
-
width: 100%;
|
266
|
-
}
|
267
|
-
|
268
|
-
div#services{
|
269
|
-
width: 920px;
|
270
|
-
}
|
271
|
-
|
272
|
-
div#bookmarks_for_manifestation{
|
273
|
-
border: 1px solid #5970B2;
|
274
|
-
}
|
275
|
-
|
276
|
-
div#user_search_form, div#message_box, div#news_feed_box, div#user_box{
|
277
|
-
padding: 10px;
|
278
|
-
}
|
279
|
-
|
280
|
-
div#picked_up_box{
|
281
|
-
padding: 10px;
|
282
|
-
}
|
283
|
-
|
284
|
-
div#tag_cloud_box{
|
285
|
-
padding: 10px;
|
286
|
-
}
|
287
|
-
|
288
|
-
div.config_box{
|
289
|
-
padding: 10px;
|
290
|
-
}
|
291
|
-
|
292
|
-
img{
|
293
|
-
border: 0;
|
294
|
-
vertical-align: middle;
|
295
|
-
}
|
296
|
-
|
297
|
-
div#tabview{
|
298
|
-
margin-top: 1em;
|
299
|
-
}
|
300
|
-
|
301
|
-
div#call_number_content{
|
302
|
-
margin-left: auto;
|
303
|
-
margin-right: auto;
|
304
|
-
width: 90%;
|
305
|
-
margin-top: 1em;
|
306
|
-
margin-bottom: 1em;
|
307
|
-
}
|
308
|
-
|
309
|
-
div#call_number_content_left{
|
310
|
-
float: left;
|
311
|
-
width: 20px;
|
312
|
-
}
|
313
|
-
|
314
|
-
div#call_number_content_right{
|
315
|
-
float: left;
|
316
|
-
width: 20px;
|
317
|
-
}
|
318
|
-
|
319
|
-
table#call_number_label{
|
320
|
-
border: solid 1px green;
|
321
|
-
}
|
322
|
-
|
323
|
-
.call_number_table{
|
324
|
-
margin-left: auto;
|
325
|
-
margin-right: auto;
|
326
|
-
border: 0;
|
327
|
-
}
|
328
|
-
|
329
|
-
.call_number_label{
|
330
|
-
border: solid 1px green;
|
331
|
-
width: 50px;
|
332
|
-
padding: 0px;
|
333
|
-
text-align: center;
|
334
|
-
}
|
335
|
-
|
336
|
-
li{
|
337
|
-
line-height: 2em;
|
338
|
-
}
|
339
|
-
|
340
|
-
input.resource_title{
|
341
|
-
width: 100%;
|
342
|
-
box-sizing: border-box;
|
343
|
-
}
|
344
|
-
|
345
|
-
input.resource_name{
|
346
|
-
width: 80%;
|
347
|
-
box-sizing: border-box;
|
348
|
-
}
|
349
|
-
|
350
|
-
input.resource_subject{
|
351
|
-
width: 50%;
|
352
|
-
box-sizing: border-box;
|
353
|
-
}
|
354
|
-
|
355
|
-
input.resource_locale{
|
356
|
-
width: 10em;
|
357
|
-
}
|
358
|
-
|
359
|
-
input.resource_email{
|
360
|
-
width: 20em;
|
361
|
-
ime-mode: disabled;
|
362
|
-
}
|
363
|
-
|
364
|
-
input.resource_zip_code{
|
365
|
-
width: 15em;
|
366
|
-
}
|
367
|
-
|
368
|
-
input.resource_url{
|
369
|
-
width: 100%;
|
370
|
-
box-sizing: border-box;
|
371
|
-
}
|
372
|
-
|
373
|
-
input.resource_isbn_issn{
|
374
|
-
width: 20em;
|
375
|
-
ime-mode: disabled;
|
376
|
-
}
|
377
|
-
|
378
|
-
input.resource_identifier, input.resource_user_number, input.resource_user, input.resource_item_identifier{
|
379
|
-
width: 20em;
|
380
|
-
ime-mode: disabled;
|
381
|
-
}
|
382
|
-
|
383
|
-
input.resource_identifier_body{
|
384
|
-
width: 40em;
|
385
|
-
ime-mode: disabled;
|
386
|
-
}
|
387
|
-
|
388
|
-
input.resource_integer{
|
389
|
-
width: 5em;
|
390
|
-
ime-mode: disabled;
|
391
|
-
}
|
392
|
-
|
393
|
-
input.year_field, input.month_field, input.day_field{
|
394
|
-
width: 5em;
|
395
|
-
ime-mode: disabled;
|
396
|
-
}
|
397
|
-
|
398
|
-
input.date_field{
|
399
|
-
ime-mode: disabled;
|
400
|
-
}
|
401
|
-
|
402
|
-
input.date_text_field{
|
403
|
-
width: 100px;
|
404
|
-
}
|
405
|
-
|
406
|
-
input.wide_date_text_field{
|
407
|
-
width: 160px;
|
408
|
-
}
|
409
|
-
|
410
|
-
input.short_name{
|
411
|
-
ime-mode: disabled;
|
412
|
-
}
|
413
|
-
|
414
|
-
textarea{
|
415
|
-
width: 100%;
|
416
|
-
box-sizing: border-box;
|
417
|
-
height: 10em;
|
418
|
-
}
|
419
|
-
|
420
|
-
textarea#message_body{
|
421
|
-
width: 40em;
|
422
|
-
height: 20em;
|
423
|
-
}
|
424
|
-
|
425
|
-
th.checked_item_title{
|
426
|
-
width: 400px;
|
427
|
-
}
|
428
|
-
|
429
|
-
.error_message{
|
430
|
-
color: red;
|
431
|
-
}
|
432
|
-
|
433
|
-
div.holding_index{
|
434
|
-
margin-top: 10px;
|
435
|
-
}
|
436
|
-
|
437
|
-
label{
|
438
|
-
font-weight: bold;
|
439
|
-
}
|
440
|
-
|
441
|
-
input.editable_text_field{
|
442
|
-
width: 100%;
|
443
|
-
}
|
444
|
-
|
445
|
-
form.inplaceeditor-form input[type="text"]{
|
446
|
-
width: 100%;
|
447
|
-
}
|
448
|
-
|
449
|
-
form.inplaceeditor-form textarea{
|
450
|
-
width: 100%;
|
451
|
-
}
|
452
|
-
|
453
|
-
input.login_password{
|
454
|
-
width: 180px;
|
455
|
-
ime-mode: disabled;
|
456
|
-
}
|
457
|
-
|
458
|
-
input.search_form{
|
459
|
-
width: 350px;
|
460
|
-
}
|
461
|
-
|
462
|
-
input.search_form_short{
|
463
|
-
width: 250px;
|
464
|
-
}
|
465
|
-
|
466
|
-
th#position{
|
467
|
-
width: 40px;
|
468
|
-
}
|
469
|
-
|
470
|
-
.highlight { background-color: yellow }
|
471
|
-
|
472
|
-
em{
|
473
|
-
font-style: normal;
|
474
|
-
}
|
475
|
-
|
476
|
-
div#flash_alert, div#flash_error{
|
477
|
-
color: red;
|
478
|
-
}
|
479
|
-
|
480
|
-
div#flash_notice{
|
481
|
-
color: green;
|
482
|
-
}
|
483
|
-
|
484
|
-
td#edit_icons, th#edit_icons{
|
485
|
-
width: 100px;
|
486
|
-
line-height: 200%;
|
487
|
-
}
|
488
|
-
|
489
|
-
img.icon{
|
490
|
-
border: 0;
|
491
|
-
}
|
492
|
-
|
493
|
-
#select_locale{
|
494
|
-
display: none;
|
495
|
-
z-index: 1;
|
496
|
-
position: absolute;
|
497
|
-
background-color: white;
|
498
|
-
padding: 10px;
|
499
|
-
max-width: 250px;
|
500
|
-
}
|
501
|
-
|
502
|
-
#user_account{
|
503
|
-
height: 40px;
|
504
|
-
padding-left: 5px;
|
505
|
-
padding-right: 5px;
|
506
|
-
padding-top: 0.5em;
|
507
|
-
padding-bottom: 0.5em;
|
508
|
-
}
|
509
|
-
|
510
|
-
li{
|
511
|
-
margin-left: 20px;
|
512
|
-
}
|
513
|
-
|
514
|
-
p{
|
515
|
-
line-height: 2em;
|
516
|
-
}
|
517
|
-
|
518
|
-
table#resource_detail{
|
519
|
-
background-color: white;
|
520
|
-
width: 100%;
|
521
|
-
}
|
522
|
-
|
523
|
-
div.holding{
|
524
|
-
margin-top: 10px;
|
525
|
-
}
|
526
|
-
|
527
|
-
table.holding{
|
528
|
-
background-color: white;
|
529
|
-
width: 100%;
|
530
|
-
}
|
531
|
-
|
532
|
-
abbr[title="required"]{
|
533
|
-
color: red;
|
534
|
-
}
|
535
|
-
|
536
|
-
div.book_jacket{
|
537
|
-
text-align: center;
|
538
|
-
width: 190px;
|
539
|
-
}
|
540
|
-
|
541
|
-
div.book_jacket img.book_jacket{
|
542
|
-
border: 1px solid rgba(0, 0, 0, 0.25);
|
543
|
-
}
|
544
|
-
|
545
|
-
div.search_form{
|
546
|
-
margin-bottom: 10px;
|
547
|
-
}
|
548
|
-
|
549
|
-
.hidden {display: none;}
|
550
|
-
|
551
|
-
.enju_table_header{
|
552
|
-
}
|
553
|
-
|
554
|
-
.bold {
|
555
|
-
font-weight: bold;
|
556
|
-
}
|
557
|
-
|
558
|
-
.normal-weight {
|
559
|
-
font-weight: normal;
|
560
|
-
}
|
561
|
-
|
562
|
-
.right {
|
563
|
-
text-align: right;
|
564
|
-
}
|
565
|
-
|
566
|
-
.center {
|
567
|
-
text-align: center;
|
568
|
-
}
|
569
|
-
|
570
|
-
.nowrap {
|
571
|
-
white-space: nowrap;
|
572
|
-
}
|
573
|
-
|
574
|
-
.display-none {
|
575
|
-
display: none;
|
576
|
-
}
|
@@ -1,144 +0,0 @@
|
|
1
|
-
<div id="navibar">
|
2
|
-
<ul id="bar1" class="menubar">
|
3
|
-
<% if defined?(EnjuCirculation) %>
|
4
|
-
<li>
|
5
|
-
<a href="#circulation_menu">
|
6
|
-
<% if current_user.try(:has_role?, 'Librarian') %>
|
7
|
-
<%= t('page.librarian_circulation') -%>
|
8
|
-
<% else %>
|
9
|
-
<%= t('page.user_circulation') -%>
|
10
|
-
<% end %>
|
11
|
-
</a>
|
12
|
-
<ul>
|
13
|
-
<%- if user_signed_in? -%>
|
14
|
-
<%- if current_user.has_role?('Librarian') -%>
|
15
|
-
<li><%= link_to t('page.checkout'), new_basket_path -%></li>
|
16
|
-
<li><%= link_to t('page.checkin'), new_checkin_path -%></li>
|
17
|
-
<% end %>
|
18
|
-
<li>
|
19
|
-
<%= link_to t('page.listing', model: t('activerecord.models.reserve')), reserves_path -%>
|
20
|
-
</li>
|
21
|
-
<% if defined?(EnjuInterLibraryLoan) %>
|
22
|
-
<% if current_user.has_role?('Librarian') -%>
|
23
|
-
<li><%= link_to t('activerecord.models.inter_library_loan'), inter_library_loans_path -%></li>
|
24
|
-
<% end %>
|
25
|
-
<% end %>
|
26
|
-
<li><%= link_to t('page.checkout_history'), checkouts_path -%></li>
|
27
|
-
<%- else -%>
|
28
|
-
<li><%= link_to t('page.checkout_history'), checkouts_path -%></li>
|
29
|
-
<li><%= link_to t('page.listing', model: t('activerecord.models.reserve')), reserves_path -%></li>
|
30
|
-
<%- end -%>
|
31
|
-
<li><%= link_to t('page.catalog_search'), manifestations_path %></li>
|
32
|
-
</ul>
|
33
|
-
<% end %>
|
34
|
-
</li>
|
35
|
-
<%- if user_signed_in? -%>
|
36
|
-
<li>
|
37
|
-
<a href="#acquisition_menu"><%= t('page.acquisition') -%></a>
|
38
|
-
<ul>
|
39
|
-
<%- if current_user.has_role?('Librarian') -%>
|
40
|
-
<li><%= link_to t('import_request.enter_isbn'), new_import_request_path -%></li>
|
41
|
-
<% if defined?(EnjuNdl) %>
|
42
|
-
<li><%= link_to t('enju_ndl.import_from_ndl_search'), ndl_books_path -%></li>
|
43
|
-
<% end %>
|
44
|
-
<% if defined?(EnjuNii) %>
|
45
|
-
<li><%= link_to t('enju_nii.import_from_cinii_books'), cinii_books_path -%></li>
|
46
|
-
<% end %>
|
47
|
-
<% if defined?(EnjuLoc) %>
|
48
|
-
<li><%= link_to t('enju_loc.import_from_loc_search'), loc_search_index_path -%></li>
|
49
|
-
<% end %>
|
50
|
-
<li><%= link_to t('page.add_resource_manually'), new_manifestation_path -%></li>
|
51
|
-
<li><%= link_to t('page.serial'), manifestations_path(serial: true) -%></li>
|
52
|
-
<li><%= link_to t('page.import_from_file'), new_resource_import_file_path -%></li>
|
53
|
-
<li><%= link_to t('activerecord.models.accept'), new_accept_path -%></li>
|
54
|
-
<% if defined?(EnjuIr) %>
|
55
|
-
<li><%= link_to t('activemodel.models.resource'), resources_path -%></li>
|
56
|
-
<% end %>
|
57
|
-
<% if defined?(EnjuBookmark) %>
|
58
|
-
<li><%= link_to t('page.listing', model: t('activerecord.models.bookmark')), bookmarks_path -%></li>
|
59
|
-
<% end %>
|
60
|
-
<%- else -%>
|
61
|
-
<% if defined?(EnjuBookmark) %>
|
62
|
-
<li><%= link_to t('page.listing', model: t('activerecord.models.bookmark')), bookmarks_path -%></li>
|
63
|
-
<% end %>
|
64
|
-
<%- end -%>
|
65
|
-
</ul>
|
66
|
-
</li>
|
67
|
-
<% end %>
|
68
|
-
<% if defined?(EnjuPurchaseRequest) or defined?(EnjuQuestion) %>
|
69
|
-
<li>
|
70
|
-
<a href="#request_menu"><%= t('page.request') -%></a>
|
71
|
-
<ul>
|
72
|
-
<%- if user_signed_in? -%>
|
73
|
-
<% if defined?(EnjuPurchaseRequest) %>
|
74
|
-
<li><%= link_to t('activerecord.models.purchase_request'), purchase_requests_path -%></li>
|
75
|
-
<% end %>
|
76
|
-
<% if defined?(EnjuQuestion) %>
|
77
|
-
<li><%= link_to t('activerecord.models.question'), questions_path -%></li>
|
78
|
-
<% end %>
|
79
|
-
<%- else -%>
|
80
|
-
<% if defined?(EnjuPurchaseRequest) %>
|
81
|
-
<li><%= link_to t('activerecord.models.purchase_request'), purchase_requests_path -%></li>
|
82
|
-
<% end %>
|
83
|
-
<% if defined?(EnjuQuestion) %>
|
84
|
-
<li><%= link_to t('activerecord.models.question'), questions_path -%></li>
|
85
|
-
<% end %>
|
86
|
-
<% end %>
|
87
|
-
</ul>
|
88
|
-
</li>
|
89
|
-
<% end %>
|
90
|
-
<% if defined?(EnjuEvent) %>
|
91
|
-
<li>
|
92
|
-
<a href="#event_menu"><%= t('activerecord.models.event') -%></a>
|
93
|
-
<ul>
|
94
|
-
<%- unless @library_group.real_libraries.empty? -%>
|
95
|
-
<li><%= link_to t('page.calendar'), events_path(mode: 'calendar') -%></li>
|
96
|
-
<li><%= link_to t('event.all'), events_path -%></li>
|
97
|
-
<%- @library_group.real_libraries.each do |library| -%>
|
98
|
-
<li><%= link_to library.display_name.localize, events_path(library_id: library.name) -%></li>
|
99
|
-
<%- end -%>
|
100
|
-
<%- if can? :create, Event -%>
|
101
|
-
<li><%= link_to t('page.import'), new_event_import_file_path -%></li>
|
102
|
-
<%- end -%>
|
103
|
-
<%- end -%>
|
104
|
-
</ul>
|
105
|
-
</li>
|
106
|
-
<% end %>
|
107
|
-
<li>
|
108
|
-
<a href="#configuration_menu">
|
109
|
-
<% if current_user.try(:has_role?, 'Librarian') %>
|
110
|
-
<%= t('page.management') -%>
|
111
|
-
<% else %>
|
112
|
-
<%= t('page.configuration') -%>
|
113
|
-
<% end %>
|
114
|
-
</a>
|
115
|
-
<ul>
|
116
|
-
<%- if user_signed_in? -%>
|
117
|
-
<%- if current_user.has_role?('Librarian') -%>
|
118
|
-
<li><%= link_to t('user.management'), profiles_path -%></li>
|
119
|
-
<li><%= link_to t('page.agent_management'), agents_path -%></li>
|
120
|
-
<li><%= link_to t('page.import'), page_import_path -%></li>
|
121
|
-
<li><%= link_to t('page.export'), page_export_path -%></li>
|
122
|
-
<% if defined?(EnjuPurchaseRequest) %>
|
123
|
-
<li><%= link_to t('activerecord.models.order_list'), order_lists_path -%></li>
|
124
|
-
<% end %>
|
125
|
-
<li><%= link_to t('page.statistics'), page_statistics_path -%></li>
|
126
|
-
<% if defined?(EnjuSearchLog) %>
|
127
|
-
<li><%= link_to t('activerecord.models.search_history'), search_histories_path %></li>
|
128
|
-
<% end %>
|
129
|
-
<% if @library_group.settings[:erms_url] %>
|
130
|
-
<li><%= link_to t('page.electronic_resource_management'), @library_group.settings[:erms_url] -%></li>
|
131
|
-
<% end %>
|
132
|
-
<li><%= link_to t('page.configuration'), page_configuration_path -%></li>
|
133
|
-
<% else %>
|
134
|
-
<ul>
|
135
|
-
<li><%= link_to t('user.account_management'), edit_my_account_path -%></li>
|
136
|
-
</ul>
|
137
|
-
<%- end -%>
|
138
|
-
<%- else -%>
|
139
|
-
<li><%= link_to t('page.sign_in'), new_user_session_path -%></li>
|
140
|
-
<%- end -%>
|
141
|
-
</ul>
|
142
|
-
</li>
|
143
|
-
</ul>
|
144
|
-
</div>
|