equal
deleted
inserted
replaced
44 chapterAnnType.title = "chapitrage"; |
44 chapterAnnType.title = "chapitrage"; |
45 myProject.getAnnotationTypes().push(chapterAnnType); |
45 myProject.getAnnotationTypes().push(chapterAnnType); |
46 } else { |
46 } else { |
47 chapterAnnType = anntypes[0]; |
47 chapterAnnType = anntypes[0]; |
48 } |
48 } |
|
49 |
|
50 chapterAnnType.media = myMedia; |
49 |
51 |
50 chapters = chapterAnnType.getAnnotations(); |
52 chapters = chapterAnnType.getAnnotations(); |
51 if(!chapters.length){ |
53 if(!chapters.length){ |
52 var dataChapter = { |
54 var dataChapter = { |
53 title : '', |
55 title : '', |
70 annotationsAnnType.title = "annotations"; |
72 annotationsAnnType.title = "annotations"; |
71 myProject.getAnnotationTypes().push(annotationsAnnType); |
73 myProject.getAnnotationTypes().push(annotationsAnnType); |
72 } else { |
74 } else { |
73 annotationsAnnType = anntypes[0]; |
75 annotationsAnnType = anntypes[0]; |
74 } |
76 } |
|
77 |
|
78 annotationsAnnType.media = myMedia; |
75 |
79 |
76 annotations = annotationsAnnType.getAnnotations(); |
80 annotations = annotationsAnnType.getAnnotations(); |
77 $.each(annotations, function(k, v){ |
81 $.each(annotations, function(k, v){ |
78 var type = v.content.mimetype.split('-'); |
82 var type = v.content.mimetype.split('-'); |
79 type = type[type.length-1] |
83 type = type[type.length-1] |