├── lib ├── tasks │ ├── .gitkeep │ ├── mongo.rake │ └── sample_weather_bootstrap.rake └── modules │ └── randomizer.rb ├── public ├── favicon.ico ├── stylesheets │ ├── .gitkeep │ ├── reset.css │ ├── fonts.css │ ├── imgareaselect-default.css │ ├── jquery.annotate.css │ └── styles.css ├── images │ ├── 1.jpeg │ ├── 2.jpeg │ ├── rails.png │ ├── border-h.gif │ ├── border-v.gif │ ├── cancel.png │ ├── bgtexture.jpg │ ├── border-anim-h.gif │ └── border-anim-v.gif ├── javascripts │ ├── .DS_Store │ ├── application.js │ ├── transcription.js │ ├── rails.js │ ├── jquery.imgareaselect.pack.js │ ├── jquery.imgareaselect.js │ └── jquery.annotate.js ├── robots.txt ├── 422.html ├── 404.html └── 500.html ├── vendor └── plugins │ └── .gitkeep ├── spec └── javascripts │ ├── helpers │ ├── .gitkeep │ └── jasmine_jquery-1.2.0.js │ ├── jquery.annotate.js │ └── support │ ├── jasmine_config.rb │ ├── jasmine_runner.rb │ └── jasmine.yml ├── app ├── helpers │ ├── home_helper.rb │ ├── templates_helper.rb │ ├── application_helper.rb │ ├── transcriptions_helper.rb │ └── asset_collections_helper.rb ├── controllers │ ├── assets_controller.rb │ ├── home_controller.rb │ ├── asset_collections_controller.rb │ ├── templates_controller.rb │ ├── application_controller.rb │ └── transcriptions_controller.rb ├── views │ ├── home │ │ ├── about.html.erb │ │ └── index.html.erb │ ├── templates │ │ ├── show.html.erb │ │ └── new.html.erb │ ├── shared │ │ ├── _flash.html.erb │ │ └── _banner.html.erb │ ├── transcriptions │ │ ├── show.html.erb │ │ ├── add_entity.js.erb │ │ ├── index.html.erb │ │ ├── edit.html.erb │ │ └── new.html.erb │ ├── layouts │ │ ├── application.html.erb │ │ ├── asset_collections.html.erb │ │ ├── templates.html.erb │ │ └── transcriptions.html.erb │ └── asset_collections │ │ ├── index.html.erb │ │ └── show.html.erb └── models │ ├── template.rb │ ├── annotation.rb │ ├── zooniverse_user.rb │ ├── entity.rb │ ├── field.rb │ ├── asset_collection.rb │ ├── transcription.rb │ └── asset.rb ├── test ├── unit │ ├── helpers │ │ ├── books_helper_test.rb │ │ ├── home_helper_test.rb │ │ ├── annotations_helper_test.rb │ │ ├── templates_helper_test.rb │ │ └── transcriptions_helper_test.rb │ ├── field_test.rb │ ├── annotation_test.rb │ ├── template_test.rb │ ├── entity_test.rb │ ├── transcription_test.rb │ ├── zooniverse_user_test.rb │ ├── asset_collection_test.rb │ └── asset_test.rb ├── functional │ ├── asset_collections_controller_test.rb │ ├── home_controller_test.rb │ ├── transcriptions_controller_test.rb │ └── templates_controller_test.rb ├── performance │ └── browsing_test.rb ├── factories.rb └── test_helper.rb ├── config.ru ├── .gitignore ├── config ├── environment.rb ├── initializers │ ├── mongo_mapper.rb │ ├── mime_types.rb │ ├── inflections.rb │ ├── backtrace_silencers.rb │ ├── session_store.rb │ ├── secret_token.rb │ └── barista_config.rb ├── site_settings.hudson.yml ├── mongodb.hudson.yml ├── locales │ └── en.yml ├── boot.rb ├── routes.rb ├── database.yml ├── environments │ ├── development.rb │ ├── test.rb │ └── production.rb └── application.rb ├── doc └── README_FOR_APP ├── Rakefile ├── script └── rails ├── db └── seeds.rb ├── Gemfile ├── README.md ├── Gemfile.lock └── license.txt /lib/tasks/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/plugins/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/stylesheets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/javascripts/helpers/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/helpers/home_helper.rb: -------------------------------------------------------------------------------- 1 | module HomeHelper 2 | end 3 | -------------------------------------------------------------------------------- /app/helpers/templates_helper.rb: -------------------------------------------------------------------------------- 1 | module TemplatesHelper 2 | end 3 | -------------------------------------------------------------------------------- /app/helpers/application_helper.rb: -------------------------------------------------------------------------------- 1 | module ApplicationHelper 2 | end 3 | -------------------------------------------------------------------------------- /app/helpers/transcriptions_helper.rb: -------------------------------------------------------------------------------- 1 | module TranscriptionsHelper 2 | end 3 | -------------------------------------------------------------------------------- /app/helpers/asset_collections_helper.rb: -------------------------------------------------------------------------------- 1 | module AssetCollectionsHelper 2 | end 3 | -------------------------------------------------------------------------------- /spec/javascripts/jquery.annotate.js: -------------------------------------------------------------------------------- 1 | descibe("jquery.annotation.js", function(){ 2 | 3 | }); -------------------------------------------------------------------------------- /app/controllers/assets_controller.rb: -------------------------------------------------------------------------------- 1 | class AssetsController < ApplicationController 2 | 3 | end -------------------------------------------------------------------------------- /public/images/1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zooniverse-glacier/Scribe/HEAD/public/images/1.jpeg -------------------------------------------------------------------------------- /public/images/2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zooniverse-glacier/Scribe/HEAD/public/images/2.jpeg -------------------------------------------------------------------------------- /public/images/rails.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zooniverse-glacier/Scribe/HEAD/public/images/rails.png -------------------------------------------------------------------------------- /public/images/border-h.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zooniverse-glacier/Scribe/HEAD/public/images/border-h.gif -------------------------------------------------------------------------------- /public/images/border-v.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zooniverse-glacier/Scribe/HEAD/public/images/border-v.gif -------------------------------------------------------------------------------- /public/images/cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zooniverse-glacier/Scribe/HEAD/public/images/cancel.png -------------------------------------------------------------------------------- /public/images/bgtexture.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zooniverse-glacier/Scribe/HEAD/public/images/bgtexture.jpg -------------------------------------------------------------------------------- /public/javascripts/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zooniverse-glacier/Scribe/HEAD/public/javascripts/.DS_Store -------------------------------------------------------------------------------- /public/images/border-anim-h.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zooniverse-glacier/Scribe/HEAD/public/images/border-anim-h.gif -------------------------------------------------------------------------------- /public/images/border-anim-v.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zooniverse-glacier/Scribe/HEAD/public/images/border-anim-v.gif -------------------------------------------------------------------------------- /test/unit/helpers/books_helper_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class BooksHelperTest < ActionView::TestCase 4 | end 5 | -------------------------------------------------------------------------------- /test/unit/helpers/home_helper_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class HomeHelperTest < ActionView::TestCase 4 | end 5 | -------------------------------------------------------------------------------- /test/unit/helpers/annotations_helper_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class AnnotationsHelperTest < ActionView::TestCase 4 | end 5 | -------------------------------------------------------------------------------- /test/unit/helpers/templates_helper_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class TemplatesHelperTest < ActionView::TestCase 4 | end 5 | -------------------------------------------------------------------------------- /test/unit/helpers/transcriptions_helper_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class TranscriptionsHelperTest < ActionView::TestCase 4 | end 5 | -------------------------------------------------------------------------------- /config.ru: -------------------------------------------------------------------------------- 1 | # This file is used by Rack-based servers to start the application. 2 | 3 | require ::File.expand_path('../config/environment', __FILE__) 4 | run Scribe::Application 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .bundle 2 | db/*.sqlite3 3 | db/scribe* 4 | .DS_Store 5 | log/*.log 6 | tmp/**/* 7 | db/mongod.lock 8 | .project 9 | config/mongodb.yml 10 | config/site_settings.yml 11 | -------------------------------------------------------------------------------- /config/environment.rb: -------------------------------------------------------------------------------- 1 | # Load the rails application 2 | require File.expand_path('../application', __FILE__) 3 | 4 | # Initialize the rails application 5 | Scribe::Application.initialize! 6 | -------------------------------------------------------------------------------- /public/javascripts/application.js: -------------------------------------------------------------------------------- 1 | // Place your application-specific JavaScript functions and classes here 2 | // This file is automatically included by javascript_include_tag :defaults 3 | -------------------------------------------------------------------------------- /app/views/home/about.html.erb: -------------------------------------------------------------------------------- 1 |
This is where we can describe the project etc 5 |
6 | 7 |<%= flash[level] %>
5 |<%= link_to "Click here", "/transcribe" %> to start transcribing.
5 |<%= link_to "Click here", "/about" %> to learn about the project.
6 | 7 |Title : <%=collection.title%>
8 |Author : <%=collection.author%>
9 |No pages : <%=collection.assets.count%>
10 |Has <%=transcription.annotations.count%> transcriptions
7 |<%=link_to "edit", :controller=>"transcriptions", :action=>:edit, :id=> transcription.id%> transcriptions
8 |Maybe you tried to change something you didn't have access to.
24 |You may have mistyped the address or the page may have moved.
24 |We've been notified about this issue and we'll take a look at it shortly.
24 |<%= @collection.title %>
50 | <%- if @collection.author -%> 51 | 52 | <%- end -%> 53 |page 0 of <%= @collection.assets.count%> pages
54 |prev
57 |next
58 |Click and drag over the document to add annotations.
87 |Currently transcribing
85 |<%=@collection.title%>
86 |Page <%=@asset.order%>
87 |Click and drag over the document to add annotations.
94 |
128 |
129 |
130 | Template name
134 | <%=text_field_tag "name" %> 135 |Description
136 | <%=text_area_tag "description"%> 137 |Default zoom level
138 | <%=text_field_tag "default_zoom"%> 139 | New entity 140 | Done 141 | <%end%> 142 |"+marker_id+"
")); 311 | var controls = $(""); 312 | 313 | controls.append($("edit").click(function(event){ 314 | event.stopPropagation(); 315 | self._editAnnotation(marker_id); 316 | })); 317 | controls.append($("delete").click(function(event){ 318 | //console.log("running delete"); 319 | event.stopPropagation(); 320 | self._deleteAnnotation(marker_id); 321 | })); 322 | marker.append(controls); 323 | this.element.append(marker); 324 | }, 325 | 326 | _deleteAnnotation : function (annotation_id){ 327 | $("#scribe_marker"+annotation_id).remove(); 328 | this.options.annotations[annotation_id]=null; 329 | this._trigger('anotationDeleted',{},"message deleting"+annotation_id) 330 | if(this.options.onAnnotationRemoved!=null){ 331 | this.options.onAnnotationRemoved.call(this, annotation_id); 332 | } 333 | 334 | }, 335 | _editAnnotation : function (annotation_id){ 336 | var annotation = this.options.annotations[annotation_id]; 337 | this.options.editing_id=annotation_id; 338 | 339 | this._trigger('anotationEdited',{},"message editing"+annotation_id) 340 | if(this.options.onAnnotationEditedStarted!=null){ 341 | this.options.onAnnotationEditedStarted.call(this,{annotation_id:annotation_id, data:annotation}); 342 | } 343 | this.showBoxWithAnnotation(annotation); 344 | }, 345 | _generateField : function (field){ 346 | var inputDiv= $(""); 347 | var label = $(""+field.name+"
"); 348 | inputDiv.append(label) 349 | switch(field.kind){ 350 | case("text"): 351 | result=$(""); 352 | result.attr("kind",'text') 353 | .attr("id","scribe_field_"+field.field_key); 354 | if (field.options.text){ 355 | if(field.options.text.max_length){ 356 | result.attr("size",field.options.text.max_length); 357 | } 358 | } 359 | break; 360 | case("select"): 361 | var result = $("