This repository has been archived by the owner on Nov 23, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
template.html
1161 lines (1111 loc) · 55.3 KB
/
template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<style>
#tutorial-btn {
margin-bottom: 20px;
}
input[placeholder] {
text-overflow: ellipsis;
}
select {
width: 100%;
}
.form-step {
display: none;
}
.form-group.btn-group {
width: 100%;
}
.checkbox-inline[data-toggle=collapse] {
display: block;
margin-bottom: 10px;
}
@media (min-width: 1200px) {
#image-container {
width: calc(1170px/2);
}
}
@media (min-width: 992px) and (max-width: 1199px) {
#image-container {
width: calc(970px/2);
}
}
@media (min-width: 768px) and (max-width: 991px) {
#image-container {
width: calc(750px/2);
}
}
@media (min-width: 768px) {
#image-container {
position: fixed;
left: inherit;
padding-left: inherit;
padding-right: inherit;
}
#tutorial-btn {
float: right;
margin-top: 30px;
}
}
</style>
<div class="row skeleton">
<!-- Image -->
<div class="col-xs-12 col-sm-6 col-sm-push-6">
<div id="image-container">
<a href="#" id="photo-link"><img alt="Loading" id="photo" src="https://i.imgur.com/GeHxzb7.png"></a>
</div>
</div>
<!-- Question and Answer -->
<div class="col-xs-12 col-sm-6 col-sm-pull-6">
<div class="row">
<div class="col-xs-12 col-sm-8">
<h1 id="question">What is this item?</h1>
</div>
<div class="col-xs-12 col-sm-4">
<a href="../tutorial" id="tutorial-btn" class="btn btn-inverse">
<span class="fa fa-book"></span> Tutorial
</a>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<form id="transcription-form" name="transcription-form" role="form">
<!-- Page 1 -->
<div class="form-step" data-step="1">
<div class="form-group">
<label for="shelfmark">Shelfmark:</label>
<input id="shelfmark" class="form-control" type="text">
</div>
<div class="form-group">
<label for="isbn">ISBN:</label>
<input id="isbn" class="form-control" type="text">
</div>
<div class="form-group">
<label for="script_note">Script note:</label>
<input id="script_note" class="form-control" type="text">
</div>
<div class="form-group">
<label for="language">Language:</label>
<select id="language"></select>
</div>
<label class="checkbox-inline" data-toggle="collapse" data-target="#language-collapse">
<input type="checkbox"> This item is written in more than one language
</label>
<div id="language-collapse" class="collapse">
<br>
<div class="form-group">
<label for="multiple_languages">Additional languages:</label>
<select id="multiple_languages" multiple="multiple"></select>
</div>
<div class="form-group">
<label for="language_note">Language note:</label>
<input id="language_note" class="form-control" type="text">
</div>
</div>
<hr>
<div class="text-right" role="group">
<button type="button" class="btn btn-success btn-next">Next Step</button>
</div>
</div>
<!-- Page 2 -->
<div class="form-step" data-step="2">
<div class="form-group">
<label for="title_romanised">Title (romanised form):</label>
<input id="title_romanised" class="form-control" type="text">
</div>
<div class="form-group">
<label for="non_filing_romanised">Non-filing characters (romanised form):</label>
<input id="non_filing_romanised" class="form-control" type="text">
</div>
<div class="form-group">
<label for="title_original">Title (original script):</label>
<input id="title_original" class="form-control" type="text">
</div>
<div class="form-group">
<label for="non_filing_original">Non-filing characters (original script):</label>
<input id="non_filing_original" class="form-control" type="text">
</div>
<div class="form-group">
<label for="state_of_res_romanised">Statement of responsibility (romanised form):</label>
<input id="state_of_res_romanised" class="form-control" type="text">
</div>
<div class="form-group">
<label for="state_of_res_original">Statement of responsibility (original script):</label>
<input id="state_of_res_original" class="form-control" type="text">
</div>
<div class="form-group">
<label for="notes">Notes:</label>
<input id="notes" class="form-control" type="text">
</div>
<label class="checkbox-inline" data-toggle="collapse" data-target="#title-collapse">
<input type="checkbox"> The item has a subtitle or a parallel title
</label>
<div id="title-collapse" class="collapse">
<br>
<div class="form-group">
<label for="subtitle_romanised">Subtitle (romanised form):</label>
<input id="subtitle_romanised" class="form-control" type="text">
</div>
<div class="form-group">
<label for="subtitle_original">Subtitle (original script):</label>
<input id="subtitle_original" class="form-control" type="text">
</div>
<div class="form-group">
<label for="parallel_title_romanised">Parallel title (romanised form):</label>
<input id="parallel_title_romanised" class="form-control" type="text">
</div>
<div class="form-group">
<label for="parallel_title_original">Parallel title (original script):</label>
<input id="parallel_title_original" class="form-control" type="text">
</div>
</div>
<hr>
<div class="text-right" role="group">
<button type="button" class="btn btn-default btn-previous">Previous Step</button>
<button type="button" class="btn btn-success btn-next">Next Step</button>
</div>
</div>
<!-- Page 3 -->
<div class="form-step" data-step="3">
<div class="form-group btn-group">
<label for="author_type">Main author Type:</label>
<div class="radio">
<label>
<input type="radio" name="author_type" value="personal" data-toggle="collapse"
data-target="#personal_author_collapse">Personal
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="author_type" value="corporate" data-toggle="collapse"
data-target="#corporate_author_collapse">Corporate
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="author_type" value="meeting" data-toggle="collapse"
data-target="#meeting_author_collapse">Meeting
</label>
</div>
</div>
<div id="personal_author_collapse" class="collapse">
<div class="form-group">
<label for="pers_author_romanised">Personal author (romanised form):</label>
<input id="pers_author_romanised" class="form-control" type="text">
</div>
<div class="form-group">
<label for="pers_author_fore_surname">Forename or surname:</label>
<select id="pers_author_fore_surname" class="form-control">
<option selected="" value=""></option>
<option value="Forename">Forename</option>
<option value="Surname">Surname</option>
</select>
</div>
<div class="form-group">
<label for="pers_author_original">Personal author (original script):</label>
<input id="pers_author_original" class="form-control" type="text">
</div>
<div class="form-group">
<label for="pers_author_relationship">Relationship to resource:</label>
<select id="pers_author_relationship" class="form-control">
<option selected="" value=""></option>
<option value="author">Author</option>
<option value="addressee">Addressee</option>
<option value="artist">Artist</option>
<option value="cartographer">Cartographer</option>
<option value="compiler">Compiler</option>
<option value="composer">Composer</option>
<option value="host institution">Host Institution</option>
<option value="issuing body">Issuing Body</option>
<option value="organizer">Organizer</option>
<option value="photographer">Photographer</option>
<option value="sponsoring body">Sponsoring Body</option>
</select>
</div>
</div>
<div id="corporate_author_collapse" class="collapse">
<div class="form-group">
<label for="corp_author_romanised">Corporate author (romanised form):</label>
<input id="corp_author_romanised" class="form-control" type="text">
</div>
<div class="form-group">
<label for="corp_author_original">Corporate author (original script):</label>
<input id="corp_author_original" class="form-control" type="text">
</div>
<div class="form-group">
<label for="corp_author_jurisdiction">Jurisdiction name or direct order:</label>
<select id="corp_author_jurisdiction" class="form-control">
<option selected="" value=""></option>
<option value="Jurisdiction">Jurisdiction</option>
<option value="Direct">Direct</option>
</select>
</div>
<div class="form-group">
<label for="corp_author_relationship">Relationship to resource:</label>
<select id="corp_author_relationship" class="form-control">
<option selected="" value=""></option>
<option value="author">Author</option>
<option value="addressee">Addressee</option>
<option value="artist">Artist</option>
<option value="cartographer">Cartographer</option>
<option value="compiler">Compiler</option>
<option value="composer">Composer</option>
<option value="host institution">Host Institution</option>
<option value="issuing body">Issuing Body</option>
<option value="organizer">Organizer</option>
<option value="photographer">Photographer</option>
<option value="sponsoring body">Sponsoring Body</option>
</select>
</div>
</div>
<div id="meeting_author_collapse" class="collapse">
<div class="form-group">
<label for="meet_author_romanised">Meeting name (romanised form):</label>
<input id="meet_author_romanised" class="form-control" type="text">
</div>
<div class="form-group">
<label for="meet_author_original">Meeting name (original script):</label>
<input id="meet_author_original" class="form-control" type="text">
</div>
<div class="form-group">
<label for="meet_author_relationship">Relationship to resource:</label>
<select id="meet_author_relationship" class="form-control">
<option selected="" value=""></option>
<option value="author">Author</option>
<option value="addressee">Addressee</option>
<option value="artist">Artist</option>
<option value="cartographer">Cartographer</option>
<option value="compiler">Compiler</option>
<option value="composer">Composer</option>
<option value="host institution">Host Institution</option>
<option value="issuing body">Issuing Body</option>
<option value="organizer">Organizer</option>
<option value="photographer">Photographer</option>
<option value="sponsoring body">Sponsoring Body</option>
</select>
</div>
</div>
<label class="checkbox-inline" data-toggle="collapse" data-target="#personal_author_collapse2">
<input type="checkbox"> Specify a second personal author
</label>
<div id="personal_author_collapse2" class="collapse">
<div class="form-group">
<label for="pers_author_romanised_2">Personal author (romanised form):</label>
<input id="pers_author_romanised_2" class="form-control" type="text">
</div>
<div class="form-group">
<label for="pers_author_fore_surname_2">Forename or surname:</label>
<select id="pers_author_fore_surname_2" class="form-control">
<option selected="" value=""></option>
<option value="Forename">Forename</option>
<option value="Surname">Surname</option>
</select>
</div>
<div class="form-group">
<label for="pers_author_original_2">Personal author (original script):</label>
<input id="pers_author_original_2" class="form-control" type="text">
</div>
<div class="form-group">
<label for="pers_author_relationship_2">Relationship to resource:</label>
<select id="pers_author_relationship_2" class="form-control">
<option selected="" value=""></option>
<option value="author">Author</option>
<option value="addressee">Addressee</option>
<option value="artist">Artist</option>
<option value="cartographer">Cartographer</option>
<option value="compiler">Compiler</option>
<option value="composer">Composer</option>
<option value="host institution">Host Institution</option>
<option value="issuing body">Issuing Body</option>
<option value="organizer">Organizer</option>
<option value="photographer">Photographer</option>
<option value="sponsoring body">Sponsoring Body</option>
</select>
</div>
</div>
<label class="checkbox-inline" data-toggle="collapse" data-target="#personal_author_collapse3">
<input type="checkbox"> Specify a third personal author
</label>
<div id="personal_author_collapse3" class="collapse">
<div class="form-group">
<label for="pers_author_romanised_3">Personal author (romanised form):</label>
<input id="pers_author_romanised_3" class="form-control" type="text">
</div>
<div class="form-group">
<label for="pers_author_fore_surname_3">Forename or surname:</label>
<select id="pers_author_fore_surname_3" class="form-control">
<option selected="" value=""></option>
<option value="Forename">Forename</option>
<option value="Surname">Surname</option>
</select>
</div>
<div class="form-group">
<label for="pers_author_original_3">Personal author (original script):</label>
<input id="pers_author_original_3" class="form-control" type="text">
</div>
<div class="form-group">
<label for="pers_author_relationship_3">Relationship to resource:</label>
<select id="pers_author_relationship_3" class="form-control">
<option selected="" value=""></option>
<option value="author">Author</option>
<option value="addressee">Addressee</option>
<option value="artist">Artist</option>
<option value="cartographer">Cartographer</option>
<option value="compiler">Compiler</option>
<option value="composer">Composer</option>
<option value="host institution">Host Institution</option>
<option value="issuing body">Issuing Body</option>
<option value="organizer">Organizer</option>
<option value="photographer">Photographer</option>
<option value="sponsoring body">Sponsoring Body</option>
</select>
</div>
</div>
<label class="checkbox-inline" data-toggle="collapse" data-target="#personal_author_collapse4">
<input type="checkbox"> Specify a fourth personal author
</label>
<div id="personal_author_collapse4" class="collapse">
<div class="form-group">
<label for="pers_author_romanised_4">Personal author (romanised form):</label>
<input id="pers_author_romanised_4" class="form-control" type="text">
</div>
<div class="form-group">
<label for="pers_author_fore_surname_4">Forename or surname:</label>
<select id="pers_author_fore_surname_4" class="form-control">
<option selected="" value=""></option>
<option value="Forename">Forename</option>
<option value="Surname">Surname</option>
</select>
</div>
<div class="form-group">
<label for="pers_author_original_4">Personal author (original script):</label>
<input id="pers_author_original_4" class="form-control" type="text">
</div>
<div class="form-group">
<label for="pers_author_relationship_4">Relationship to resource:</label>
<select id="pers_author_relationship_4" class="form-control">
<option selected="" value=""></option>
<option value="author">Author</option>
<option value="addressee">Addressee</option>
<option value="artist">Artist</option>
<option value="cartographer">Cartographer</option>
<option value="compiler">Compiler</option>
<option value="composer">Composer</option>
<option value="host institution">Host Institution</option>
<option value="issuing body">Issuing Body</option>
<option value="organizer">Organizer</option>
<option value="photographer">Photographer</option>
<option value="sponsoring body">Sponsoring Body</option>
</select>
</div>
</div>
<label class="checkbox-inline" data-toggle="collapse" data-target="#corporate_author_collapse2">
<input type="checkbox"> Specify a second corporate author
</label>
<div id="corporate_author_collapse2" class="collapse">
<div class="form-group">
<label for="corp_author_romanised_2">Corporate author (romanised form):</label>
<input id="corp_author_romanised_2" class="form-control" type="text">
</div>
<div class="form-group">
<label for="corp_author_original_2">Corporate author (original script):</label>
<input id="corp_author_original_2" class="form-control" type="text">
</div>
<div class="form-group">
<label for="corp_author_jurisdiction_2">Jurisdiction name or direct order:</label>
<select id="corp_author_jurisdiction_2" class="form-control">
<option selected="" value=""></option>
<option value="Jurisdiction">Jurisdiction</option>
<option value="Direct">Direct</option>
</select>
</div>
<div class="form-group">
<label for="corp_author_relationship_2">Relationship to resource:</label>
<select id="corp_author_relationship_2" class="form-control">
<option selected="" value=""></option>
<option value="author">Author</option>
<option value="addressee">Addressee</option>
<option value="artist">Artist</option>
<option value="cartographer">Cartographer</option>
<option value="compiler">Compiler</option>
<option value="composer">Composer</option>
<option value="host institution">Host Institution</option>
<option value="issuing body">Issuing Body</option>
<option value="organizer">Organizer</option>
<option value="photographer">Photographer</option>
<option value="sponsoring body">Sponsoring Body</option>
</select>
</div>
</div>
<label class="checkbox-inline" data-toggle="collapse" data-target="#corporate_author_collapse3">
<input type="checkbox"> Specify a third corporate author
</label>
<div id="corporate_author_collapse3" class="collapse">
<div class="form-group">
<label for="corp_author_romanised_3">Corporate author (romanised form):</label>
<input id="corp_author_romanised_3" class="form-control" type="text">
</div>
<div class="form-group">
<label for="corp_author_original_3">Corporate author (original script):</label>
<input id="corp_author_original_3" class="form-control" type="text">
</div>
<div class="form-group">
<label for="corp_author_jurisdiction_3">Jurisdiction name or direct order:</label>
<select id="corp_author_jurisdiction_3" class="form-control">
<option selected="" value=""></option>
<option value="Jurisdiction">Jurisdiction</option>
<option value="Direct">Direct</option>
</select>
</div>
<div class="form-group">
<label for="corp_author_relationship_3">Relationship to resource:</label>
<select id="corp_author_relationship_3" class="form-control">
<option selected="" value=""></option>
<option value="author">Author</option>
<option value="addressee">Addressee</option>
<option value="artist">Artist</option>
<option value="cartographer">Cartographer</option>
<option value="compiler">Compiler</option>
<option value="composer">Composer</option>
<option value="host institution">Host Institution</option>
<option value="issuing body">Issuing Body</option>
<option value="organizer">Organizer</option>
<option value="photographer">Photographer</option>
<option value="sponsoring body">Sponsoring Body</option>
</select>
</div>
</div>
<label class="checkbox-inline" data-toggle="collapse" data-target="#corporate_author_collapse4">
<input type="checkbox"> Specify a fourth corporate author
</label>
<div id="corporate_author_collapse4" class="collapse">
<div class="form-group">
<label for="corp_author_romanised_4">Corporate author (romanised form):</label>
<input id="corp_author_romanised_4" class="form-control" type="text">
</div>
<div class="form-group">
<label for="corp_author_original_4">Corporate author (original script):</label>
<input id="corp_author_original_4" class="form-control" type="text">
</div>
<div class="form-group">
<label for="corp_author_jurisdiction_4">Jurisdiction name or direct order:</label>
<select id="corp_author_jurisdiction_4" class="form-control">
<option selected="" value=""></option>
<option value="Jurisdiction">Jurisdiction</option>
<option value="Direct">Direct</option>
</select>
</div>
<div class="form-group">
<label for="corp_author_relationship_4">Relationship to resource:</label>
<select id="corp_author_relationship_4" class="form-control">
<option selected="" value=""></option>
<option value="author">Author</option>
<option value="addressee">Addressee</option>
<option value="artist">Artist</option>
<option value="cartographer">Cartographer</option>
<option value="compiler">Compiler</option>
<option value="composer">Composer</option>
<option value="host institution">Host Institution</option>
<option value="issuing body">Issuing Body</option>
<option value="organizer">Organizer</option>
<option value="photographer">Photographer</option>
<option value="sponsoring body">Sponsoring Body</option>
</select>
</div>
</div>
<label class="checkbox-inline" data-toggle="collapse" data-target="#meeting_author_collapse2">
<input type="checkbox"> Specify a second meeting name
</label>
<div id="meeting_author_collapse2" class="collapse">
<br>
<div class="form-group">
<label for="meet_author_romanised_2">Meeting name (romanised form):</label>
<input id="meet_author_romanised_2" class="form-control" type="text">
</div>
<div class="form-group">
<label for="meet_author_original_2">Meeting name (original script):</label>
<input id="meet_author_original_2" class="form-control" type="text">
</div>
<div class="form-group">
<label for="meet_author_relationship_2">Relationship to resource:</label>
<select id="meet_author_relationship_2" class="form-control">
<option selected="" value=""></option>
<option value="author">Author</option>
<option value="addressee">Addressee</option>
<option value="artist">Artist</option>
<option value="cartographer">Cartographer</option>
<option value="compiler">Compiler</option>
<option value="composer">Composer</option>
<option value="host institution">Host Institution</option>
<option value="issuing body">Issuing Body</option>
<option value="organizer">Organizer</option>
<option value="photographer">Photographer</option>
<option value="sponsoring body">Sponsoring Body</option>
</select>
</div>
</div>
<hr>
<div class="text-right" role="group">
<button type="button" class="btn btn-default btn-previous">Previous Step</button>
<button type="button" class="btn btn-success btn-next">Next Step</button>
</div>
</div>
<!-- Page 4 -->
<div class="form-step" data-step="4">
<div class="form-group">
<label for="edition_romanised">Edition (romanised form):</label>
<input id="edition_romanised" class="form-control" type="text">
</div>
<div class="form-group">
<label for="edition_original">Edition (original script):</label>
<input id="edition_original" class="form-control" type="text">
</div>
<div class="form-group">
<label for="pages">Pages:</label>
<input id="pages" class="form-control" type="text">
</div>
<div class="form-group">
<label for="illustrations">Illustrations:</label>
<input id="illustrations" class="form-control" type="text">
</div>
<div class="form-group">
<label for="content_type">Content type:</label>
<select id="content_type" class="form-control">
<option selected="" value=""></option>
<option value="cartographic image">Cartographic image</option>
<option value="notated music">Notated music</option>
<option value="still image">Still image</option>
<option value="text">Text</option>
</select>
</div>
<div class="form-group">
<label for="second_content_type">Second content type:</label>
<select id="second_content_type" class="form-control">
<option selected="" value=""></option>
<option value="cartographic image">Cartographic image</option>
<option value="notated music">Notated music</option>
<option value="still image">Still image</option>
<option value="text">Text</option>
</select>
</div>
<label class="checkbox-inline" data-toggle="collapse" data-target="#series-collapse">
<input type="checkbox"> This item is part of a series
</label>
<div id="series-collapse" class="collapse">
<br>
<div class="form-group">
<label for="series_title_romanised">Series title (romanised form):</label>
<input id="series_title_romanised" class="form-control" type="text">
</div>
<div class="form-group">
<label for="series_title_original">Series title (original script):</label>
<input id="series_title_original" class="form-control" type="text">
</div>
<div class="form-group">
<label for="number_in_series">Number in series:</label>
<input id="number_in_series" class="form-control" type="text">
</div>
</div>
<hr>
<div class="text-right" role="group">
<button type="button" class="btn btn-default btn-previous">Previous Step</button>
<button type="button" class="btn btn-success btn-next">Next Step</button>
</div>
</div>
<!-- Page 5 -->
<div class="form-step" data-step="5">
<div class="form-group">
<label for="country">Country of publication:</label>
<select id="country"></select>
</div>
<div class="form-group">
<label for="pub_place_romanised">Place of publication (romanised form):</label>
<input id="pub_place_romanised" class="form-control" type="text">
</div>
<div class="form-group">
<label for="pub_place_original">Place of publication (original script):</label>
<input id="pub_place_original" class="form-control" type="text">
</div>
<div class="form-group">
<label for="publisher_romanised">Publisher (romanised form):</label>
<input id="publisher_romanised" class="form-control" type="text">
</div>
<div class="form-group">
<label for="publisher_original">Publisher (original script):</label>
<input id="publisher_original" class="form-control" type="text">
</div>
<div class="form-group">
<label for="date_of_publication">Date of publication:</label>
<input id="date_of_publication" class="form-control" type="text">
</div>
<div class="form-group">
<label for="norm_date_of_publication">Normalised date of publication:</label>
<input id="norm_date_of_publication" class="form-control" type="text">
</div>
<hr>
<div class="text-right" role="group">
<button type="button" class="btn btn-default btn-previous">Previous Step</button>
<button type="button" class="btn btn-success btn-next">Next Step</button>
</div>
</div>
<!-- Page 6 -->
<div class="form-step" data-step="6">
<div class="form-group">
<label for="first_subject">First subject:</label>
<select id="first_subject" class="subject"></select>
</div>
<div class="form-group">
<label for="second_subject">Second subject:</label>
<select id="second_subject" class="subject"></select>
</div>
<div class="form-group">
<label for="third_subject">Third subject:</label>
<select id="third_subject" class="subject"></select>
</div>
<div class="form-group">
<label for="fourth_subject">Fourth subject:</label>
<select id="fourth_subject" class="subject"></select>
</div>
<div class="form-group">
<label for="fifth_subject">Fifth subject:</label>
<select id="fifth_subject" class="subject"></select>
</div>
<hr>
<div class="text-right" role="group">
<button type="button" class="btn btn-default btn-previous">Previous Step</button>
<button type="button" class="btn btn-success btn-next">Next Step</button>
</div>
</div>
<!-- Page 7 -->
<div class="form-step" data-step="7">
<div class="form-group">
<label for="comments">Comments:</label>
<textarea id="comments" class="form-control" rows="5"></textarea>
</div>
<hr>
<div class="text-right" role="group">
<button type="button" class="btn btn-default btn-previous">Previous Step</button>
<button type="button" class="btn btn-success btn-answer" value="Done">
<span class="fa fa-thumbs-o-up"></span> Done
</button>
</div>
</div>
</form>
</div>
</div>
<!-- Feedback items for the user -->
<div class="padding-top-lg text-center">
<p>You are working on task: <span class="label label-default" id="task-id">#</span></p>
<div class="progress progress-striped">
<div class="progress-bar" id="progress" rel="tooltip" role="progressbar" style="width: 0%;" title="#"></div>
</div>
</div>
</div>
</div>
<script>
/** Add tooltips and placeholders to each field. */
(function() {
let guidance = {
shelfmark: `If the card has a shelfmark transcribe it exactly as given, including upper and`
+ ` lower-case letters and any punctuation and spaces.`,
isbn: `Record the ISBN if present, omitting any hyphens or spaces. If there is more`
+ `than one ISBN, enter the one that most accurately identifies the item.`,
script_note: `Add a note about the original script(s) if this would be important to the user.`,
language: `Enter the main language of the item.`,
multiple_languages: `If there is more than one language, enter all additional languages.`,
language_note: `If the item contains text in more than one language, enter a note on the`
+ ` languages used in the resource.`,
title_romanised: `Transcribe the title, capitalising only the first letter of the first word and`
+ ` any proper nouns.`,
non_filing_romanised: `If the title begins with an initial article or symbol enter the number of`
+ ` letters plus one for any following space`,
title_original: `If the title was a romanised version, give the original here.`,
non_filing_original: `If the title begins with an initial article or symbol enter the number of`
+ ` letters plus one for any following space`,
subtitle_romanised: `If there is a subtitle, transcribe it here.`,
subtitle_original: `If the subtitle was a romanised version, give the original here.`,
parallel_title_romanised: `Transcribe a parallel title here. If there is more than one, add subsequent`
+ ` titles seperated by " = "`,
parallel_title_original: `If the parallel title was a romanised version, give the original here`,
pub_place_romanised: `Transcribe the place of publication as it appears in the source. If more than`
+ ` one place is given, only the first is required.`,
pub_place_original: `If the place of publication was a romanised version, give the original here`,
publisher_romanised: `Transcribe the publisher's name as it appears in the source. If a name is not`
+ ` given but can be ascertained from within or outside the resource include it`
+ ` in square brackets.`,
publisher_original: `If the publisher was a romanised version, give the original here.`,
normalised_pub_year: `If the year of publication was given in Roman numerals or was in brackets,`
+ ` supply a four-digit Arabic number with any uncertain digits given as`
+ ` "u". The Gregorian calendar year should be converted from this and`
+ ` still entered above.`,
date_of_publication: `Transcribe the date as given, unless expressed as words (i.e. "1980",`
+ ` not "Nineteen eighty"). Do not convert Roman numbers to Arabic.`,
norm_date_of_publication: `If the date of publication was given in Roman numerals or was in brackets, `
+ ` supply a four-digit Arabic number with any uncertain digits given as`
+ ` "u"`,
country: `Enter the country of publication.`,
edition_romanised: `Transcribe any edition statement exactly as it appears.`,
edition_original: `If the edition was a romanised version, give the original here.`,
pages: `Record the number of pages. If cataloguing from a card do not use abbreviations`
+ ` if found: use the term "pages" instead of "p." or`
+ ` "pp.".`,
illustrations: `Record any illustrative content. Do not capitalise. If cataloguing from a card`
+ ` do not use abbreviations if found: use the term "illustrations"`
+ ` instead of "ill.".`,
content_type: `Select the appropriate term for the content from the drop-down list provided`,
second_content_type: `Select the appropriate term for the content from the drop-down list provided`
+ ` (e.g. still image). Please note: "still image" is used only when`
+ ` describing a resource such as a comic, not when an item is mostly text with occasional`
+ ` illustrations.`,
series_title_romanised: `Transcribe any series title in romanised form, capitalising only the first`
+ ` letter and any proper nouns.`,
series_title_original: `If the series title was a romanised version, give the original here.`,
number_in_series: `Transcribe any series numbering, including any designation as given.`,
first_subject: `Search for an appropriate subject heading`,
second_subject: `Search for an appropriate subject heading`,
third_subject: `Search for an appropriate subject heading`,
fourth_subject: `Search for an appropriate subject heading`,
fifth_subject: `Search for an appropriate subject heading`,
comments: `Please use this column to enter comments for British Library staff.`,
pers_author_romanised: `Enter the romanised form of the name given on the card beginning with the `
+ `surname/family name (if appropriate), followed by a comma and a space, then `
+ `give all forenames seperated by spaces.`,
pers_author_original: `If the personal author was a romanised version, give the original here.`,
pers_author_relationship: `Select the appropriate designation from the dropdown list.`,
pers_author_fore_surname: `Select an option from the dropdown box to indicate that either the name begins `
+ ` with a forename or a surname.`,
pers_author_romanised_2: `Enter the romanised form of the name given on the card beginning with the `
+ `surname/family name (if appropriate), followed by a comma and a space, then `
+ `give all forenames seperated by spaces.`,
pers_author_original_2: `If the personal author was a romanised version, give the original here.`,
pers_author_relationship_2:`Select the appropriate designation from the dropdown list.`,
pers_author_fore_surname_2:`Select an option from the dropdown box to indicate that either the name begins `
+ ` with a forename or a surname.`,
pers_author_romanised_3: `Enter the romanised form of the name given on the card beginning with the `
+ `surname/family name (if appropriate), followed by a comma and a space, then `
+ `give all forenames seperated by spaces.`,
pers_author_original_3: `If the personal author was a romanised version, give the original here.`,
pers_author_relationship_3:`Select the appropriate designation from the dropdown list.`,
pers_author_fore_surname_3:`Select an option from the dropdown box to indicate that either the name begins `
+ ` with a forename or a surname.`,
pers_author_romanised_4: `Enter the romanised form of the name given on the card beginning with the `
+ `surname/family name (if appropriate), followed by a comma and a space, then `
+ `give all forenames seperated by spaces.`,
pers_author_original_4: `If the personal author was a romanised version, give the original here.`,
pers_author_relationship_4:`Select the appropriate designation from the dropdown list.`,
pers_author_fore_surname_4:`Select an option from the dropdown box to indicate that either the name begins `
+ ` with a forename or a surname.`,
corp_author_romanised: `Record the body's name given at the top left corder of the card. Do not include`
+ ` any brackets.`,
corp_author_original: `If the corporate author was a romanised version, give the original here.`,
corp_author_jurisdiction: `Select from the dropdown box to indicate either that the name is structured as`
+ ` a jurisdiction name (e.g. Australia. Department of Defence. Army Office) or`
+ ` is entered in direct order (e.g. Malaysian Society of Microbiology).`,
corp_author_relationship: `Select the appropriate designation from the dropdown list.`,
corp_author_romanised_2: `Record the body's name given at the top left corder of the card. Do not include`
+ ` any brackets.`,
corp_author_original_2: `If the corporate author was a romanised version, give the original here.`,
corp_author_jurisdiction_2:`Select from the dropdown box to indicate either that the name is structured as`
+ ` a jurisdiction name (e.g. Australia. Department of Defence. Army Office) or`
+ ` is entered in direct order (e.g. Malaysian Society of Microbiology).`,
corp_author_relationship_2:`Select the appropriate designation from the dropdown list.`,
corp_author_romanised_3: `Record the body's name given at the top left corder of the card. Do not include`
+ ` any brackets.`,
corp_author_original_3: `If the corporate author was a romanised version, give the original here.`,
corp_author_jurisdiction_3:`Select from the dropdown box to indicate either that the name is structured as`
+ ` a jurisdiction name (e.g. Australia. Department of Defence. Army Office) or`
+ ` is entered in direct order (e.g. Malaysian Society of Microbiology).`,
corp_author_relationship_3:`Select the appropriate designation from the dropdown list.`,
corp_author_romanised_4: `Record the body's name given at the top left corder of the card. Do not include`
+ ` any brackets.`,
corp_author_original_4: `If the corporate author was a romanised version, give the original here.`,
corp_author_jurisdiction_4:`Select from the dropdown box to indicate either that the name is structured as`
+ ` a jurisdiction name (e.g. Australia. Department of Defence. Army Office) or`
+ ` is entered in direct order (e.g. Malaysian Society of Microbiology).`,
corp_author_relationship_4:`Select the appropriate designation from the dropdown list.`,
meet_author_romanised: `Record the name of the conference, congress, symposium etc.`,
meet_author_original: `If the meeting name was a romanised version, give the original here.`,
meet_author_relationship: `Select the appropriate designation from the dropdown list.`,
meet_author_romanised_2: `Record the name of the conference, congress, symposium etc.`,
meet_author_original_2: `If the meeting name was a romanised version, give the original here.`,
meet_author_relationship_2:`Select the appropriate designation from the dropdown list.`,
state_of_res_romanised: `Transcribe a name as given, including any text such as "written by..."`
+ ` or "edited by...".`,
state_of_res_original: `If the statement of responsibility was a romanised version, give the original`
+ ` here.`,
notes: `For damaged item notes, limited editions, items noted as donated etc.`,
author_type: `Select the type of the main author.`
};
for (let key in guidance) {
let text = guidance[key].replace('\n', '').trim();
$(`#${key}`).attr('placeholder', text);
$(`label[for="${key}"`).after(` <span data-toggle="popover" data-content="${text}" class="fa fa-question-circle">
</span>`);
}
$('[data-toggle="popover"]').popover({trigger: "hover"});
})();
/**Load Select2 controls.*/
(function() {
$.fn.select2.defaults.set("theme", "bootstrap");
$.fn.select2.defaults.set("allowClear", true);
$.fn.select2.defaults.set("width", "100%");
$.getJSON( "https://cdn.rawgit.com/LibCrowds/marc-code-lists/master/countries.json", function(json) {
data = json;
data.unshift({id: "", text: ""}) // Add default
$("#country").select2({
data: data,
placeholder: $("#country").attr('placeholder'),
});
}).fail(function(jqXHR, textStatus) {
pybossaNotify(`Select box error: ${textStatus}`, 'danger');
});
$.getJSON( "https://cdn.rawgit.com/LibCrowds/marc-code-lists/master/languages.json", function(json) {
data = json;
data.unshift({id: "", text: ""}) // Add default
$("#language").select2({
data: data,
placeholder: $("#language").attr('placeholder'),
});
$("#multiple_languages").select2({
data: data,
placeholder: $("#multiple_languages").attr('placeholder'),
});
}).fail(function(jqXHR, textStatus) {
pybossaNotify(`Select box error: ${textStatus}`, 'danger');
});
// Subject data retrieved via AJAX
$('.subject').each(function() {
let placeholder = $(this).attr('placeholder');
$(this).select2({
placeholder: placeholder,
ajax: {
url: 'https://fast.oclc.org/searchfast/fastsuggest',
dataType: 'jsonp',
cache: true,
data: function (params) {
return {
query: params.term,
queryIndex: 'suggestall',
queryReturn: 'suggestall,idroot,auth,tag,type,raw,breaker,indicator',
suggest: 'autoSubject'
};
},
processResults: function (data, params) {
return {
results: $.map( data.response.docs, function (item) {
return {
id: formatMARCString(item),
text: formatSuggestion(item),
}
})
};
},
minimumInputLength: 1,
}
});
});
})();
/** Collapse previous selection when author type radio buttons clicked. */
$('input[name=author_type]').on('click', function() {
$('#personal_author_collapse.in').collapse('toggle');
$('#corporate_author_collapse.in').collapse('toggle');
$('#meeting_author_collapse.in').collapse('toggle');
});
/** Format a subject heading suggestion. */
function formatSuggestion(suggestion) {
if (suggestion.type == 'alt') {
return suggestion.suggestall + ' - use ' + suggestion.auth;
}
return suggestion.auth;
}
/** Format a subject heading MARC string. */
function formatMARCString(suggestion) {
let base = suggestion.breaker || suggestion.raw || suggestion.auth;
let tag = parseInt(suggestion.tag) + 500;
return `${tag} ${suggestion.indicator}7$a ${base}$2fast$0(OCoLC)${suggestion.idroot}`;
}
/** Key bindings. */
$(window).on('keydown', function(evt) {
let page = parseInt($('.form-step:visible').data('step'));
// Hit enter to go to the next page or submit
if (event.keyCode == 13) {
evt.preventDefault();
if (page == 7) {
$('.btn-answer').triggerHandler('click');
} else {
changePage(page + 1);
}
}
});
/** Override default form submission behaviour. */
$('form').submit(function() {
return false;
});
/** Handle next page button click. */
$('.btn-next').on('click', function(evt) {
let page = parseInt($('.form-step:visible').data('step'));
changePage(page + 1);
});
/** Handle previous page button click. */
$('.btn-previous').on('click', function(evt) {
let page = parseInt($('.form-step:visible').data('step'));
changePage(page - 1);
});
/** Change page. */
function changePage(i) {
$('.form-step[data-step=' + (i - 1) + ']').slideUp();
$('.form-step[data-step=' + (i + 1) + ']').slideUp();
$('.form-step[data-step=' + i + ']').slideDown({
complete: function(){
$("input:visible, textarea:visible").first().focus();
}
});
showProgress(i, 7);