BACKTRACE

(expand)

GET

Variable Value
production
"true"

POST

No POST data.

No cookie data.

Rack ENV

Variable Value
GATEWAY_INTERFACE
CGI/1.2
HTTP_ACCEPT
*/*
HTTP_HOST
localhost:5000
HTTP_USER_AGENT
Typhoeus - https://github.com/typhoeus/typhoeus
HTTP_VERSION
HTTP/1.1
PATH_INFO
/actor/ulan/500239941.html
QUERY_STRING
production=true
REMOTE_ADDR
127.0.0.1
REQUEST_METHOD
GET
REQUEST_PATH
/actor/ulan/500239941.html
REQUEST_URI
/actor/ulan/500239941.html?production=true
SCRIPT_NAME
SERVER_NAME
localhost
SERVER_PORT
5000
SERVER_PROTOCOL
HTTP/1.1
SERVER_SOFTWARE
puma 3.10.0 Russell's Teapot
puma.config
#<Puma::Configuration:0x007fa1e6104bd8 @options=#<Puma::UserFileDefaultOptions:0x007fa1e6881f00 @user_options={:environment=>"development", :logger=>#<Puma::Events:0x007fa1e61058f8 @formatter=#<Puma::Events::PidFormatter:0x007fa1e7980f18>, @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>, @debug=false, @hooks={:on_booted=>[], :state=>[]}>}, @file_options={:config_files=>["config/puma.rb"], :workers=>2, :min_threads=>5, :max_threads=>5, :preload_app=>true, :rackup=>"config.ru", :binds=>["tcp://0.0.0.0:5000"], :environment=>"development"}, @default_options={:min_threads=>0, :max_threads=>16, :log_requests=>false, :debug=>false, :binds=>["tcp://0.0.0.0:9292"], :workers=>0, :daemon=>false, :mode=>:http, :worker_timeout=>60, :worker_boot_timeout=>60, :worker_shutdown_timeout=>30, :remote_address=>:socket, :tag=>"aac_browse_app", :environment=>"development", :rackup=>"config.ru", :logger=>#<IO:<STDOUT>>, :persistent_timeout=>20, :first_data_timeout=>30}>, @plugins=#<Puma::PluginLoader:0x007fa1e6881758 @instances=[]>, @user_dsl=#<Puma::DSL:0x007fa1e68803a8 @config=#<Puma::Configuration:0x007fa1e6104bd8 ...>, @options={:environment=>"development", :logger=>#<Puma::Events:0x007fa1e61058f8 @formatter=#<Puma::Events::PidFormatter:0x007fa1e7980f18>, @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>, @debug=false, @hooks={:on_booted=>[], :state=>[]}>}, @plugins=[]>, @file_dsl=#<Puma::DSL:0x007fa1e6873568 @config=#<Puma::Configuration:0x007fa1e6104bd8 ...>, @options={:config_files=>["config/puma.rb"], :workers=>2, :min_threads=>5, :max_threads=>5, :preload_app=>true, :rackup=>"config.ru", :binds=>["tcp://0.0.0.0:5000"], :environment=>"development"}, @plugins=[], @path="config/puma.rb">, @default_dsl=#<Puma::DSL:0x007fa1e6872de8 @config=#<Puma::Configuration:0x007fa1e6104bd8 ...>, @options={:min_threads=>0, :max_threads=>16, :log_requests=>false, :debug=>false, :binds=>["tcp://0.0.0.0:9292"], :workers=>0, :daemon=>false, :mode=>:http, :worker_timeout=>60, :worker_boot_timeout=>60, :worker_shutdown_timeout=>30, :remote_address=>:socket, :tag=>"aac_browse_app", :environment=>"development", :rackup=>"config.ru", :logger=>#<IO:<STDOUT>>, :persistent_timeout=>20, :first_data_timeout=>30}, @plugins=[]>>
puma.socket
#<TCPSocket:fd 14>
rack.after_reply
[]
rack.cors
#<Rack::Cors::Result:0x007fa1e7d5ee00 @preflight=false, @hit=false, @miss_reason="no-origin">
rack.errors
#<Object:0x007fa1e798a590>
rack.hijack
#<Puma::Client:0x3fd0f3e27288 @ready=true>
rack.hijack?
true
rack.input
#<Puma::NullIO:0x007fa1e7931850>
rack.logger
#<Rack::NullLogger:0x007fa1e7c09640 @app=#<Rack::Protection::FrameOptions:0x007fa1e7c09758 @app=#<Rack::Protection::HttpOrigin:0x007fa1e7c098e8 @app=#<Rack::Protection::IPSpoofing:0x007fa1e7c09988 @app=#<Rack::Protection::JsonCsrf:0x007fa1e7c09a78 @app=#<Rack::Protection::PathTraversal:0x007fa1e7c09b18 @app=#<Rack::Protection::XSSHeader:0x007fa1e7c09c08 @app=#<AmericanArtCollaborativeSite:0x007fa1e7c4d318 @current_engine=:ruby, @default_layout=:layout, @preferred_extension=nil, @app=nil, @template_cache=#<Tilt::Cache:0x007fa1e7c4d278 @cache={[:haml, :"templates/actor.html", {:outvar=>"@_out_buf", :default_encoding=>"utf-8"}, "source"]=>#<Tilt::HamlTemplate:0x007fa1e7d563e0 @options={:outvar=>"@_out_buf"}, @line=1, @file="source/templates/actor.html.haml", @compiled_method={[:obj]=>#<UnboundMethod: Tilt::CompiledTemplates#__tilt_70166673187580>}, @default_encoding="utf-8", @reader=#<Proc:0x007fa1e7d562a0@/Users/dnewbury/.rvm/gems/ruby-2.4.1/gems/tilt-2.0.8/lib/tilt/template.rb:85 (lambda)>, @data="- content_for :title_text do\n = get_actor_name(obj)\n \n%section.container.main_content\n \n %header\n %h2= get_actor_name(obj)\n -if val = display_value(obj[\"contact_point\"], field: \"value\")\n .address.secondary=val\n\n .row\n .col-md-6\n -if bio = get_actor_bio(obj)\n %p= bio\n -if bio = by_classification(obj.dig(\"subject_of\"),\"aat:300080091\")\n %p= display_value(bio, keep_newlines: true) \n -if bio = by_classification(obj.dig(\"subject_of\"),\"toybox:aat_description\")\n %h5 About the Dataset\n %p= display_value(bio, keep_newlines: true) \n\n .col-md-5.offset-md-1\n\n // Instititution-specific section\n - if obj[\"schema:logo\"]\n %section.row\n - if val = obj[\"schema:logo\"]\n .col-12.text-center.logo_lockup\n =image_tag obj.dig(\"schema:logo\"), class: 'img-fluid img-thumbnail'\n - if obj[\"toybox:related_artwork_count\"]\n .col.stat.text-center\n \#{obj[\"toybox:related_artwork_count\"][\"@value\"].to_i.to_s(:delimited)}\n .stat_label Items\n - if obj[\"toybox:related_artist_count\"]\n .col.stat.text-center\n \#{obj[\"toybox:related_artist_count\"][\"@value\"].to_i.to_s(:delimited)}\n .stat_label Creators\n - if obj[\"toybox:latest_artwork_date\"] && obj[\"toybox:earliest_artwork_date\"]\n .col.stat.text-center\n \#{obj[\"toybox:earliest_artwork_date\"][\"@value\"]} — \#{obj[\"toybox:latest_artwork_date\"][\"@value\"]}\n .stat_label Date Range\n \n .metadata\n %dl.row<\n =list_item \"Alternate Names\", except_classification(obj.dig(\"actor_identified_by\"),[\"aat:300404670\",\"aat:300404672\"])\n =list_item \"Birth\", event_time_string(obj.dig(\"brought_into_existence_by\"))\n =list_item \"Birth Location\", event_place_string(obj.dig(\"brought_into_existence_by\"))\n =list_item \"Death\", event_time_string(obj.dig(\"taken_out_of_existence_by\"))\n =list_item \"Death Location\", event_place_string(obj.dig(\"taken_out_of_existence_by\"))\n =list_item \"Gender\", by_classification(obj.dig(\"classified_as\"),\"aat:300055147\", \"label\"), downcase: true, only_first: true\n =list_item \"Nationality\", by_classification(obj.dig(\"member_of\"),\"aat:300379842\", \"label\"), only_first: true\n - if obj[\"toybox:related_actors\"]\n = haml \"toyboxes/related_actors\".to_sym, layout: false, locals: {people: obj[\"toybox:related_actors\"]}\n %dl.row<\n =list_item \"Partner URL\", link_to_foaf(obj[\"homepage\"])\n =list_item \"Linked Data URI\", external_link_to(obj[\"id\"])\n =list_item \"External Authority\", obj.dig(\"exact_match\"), is_link: true, field: \"id\"\n - json = settings.redis.get(\"aac:reverse_lookup:\#{obj[\"id\"]}\")\n =list_item \"View LOD\", [external_link_to(\"\#{json}.json\", \"as JSON-LD\"), external_link_to(\"\#{json}.ttl\", \"as Turtle\")], join_char: \"  \", pluralize: false\n \n // This is an alternate option for the first toybox.\n - if obj.dig(\"depicted_by\") && false\n %dl.row<\n =list_item \"Depicted In\", obj.dig(\"depicted_by\"), pluralize: false, is_entity: true, field: \"entity\"\n \n\n- if obj[\"depicted_by\"]\n %section.container-fluid.toybox.featured_items\n .container\n .row\n .col\n %h3=\"Selected Images of \#{get_actor_name(obj)}\"\n .row.align-items-center\n - [obj[\"depicted_by\"]].flatten(1).first(6).each do |item|\n .col-2\n = haml \"toyboxes/item_preview\".to_sym, layout: false, locals: {id: item[\"id\"]} \n\n- if obj[\"toybox:created_by\"]\n = haml \"toyboxes/work_grid\".to_sym, layout: false, locals: {works: obj[\"toybox:created_by\"], title: \"Objects Created by \#{obj[\"label\"].first}\"}\n\n\n- if obj[\"toybox:featured_items\"]\n %section.container-fluid.toybox.featured_items\n .container\n .row\n .col\n %h3 Featured Objects\n .row.align-items-center\n - obj[\"toybox:featured_items\"].first(12).each do |item|\n .col-2\n = haml \"toyboxes/item_preview\".to_sym, layout: false, locals: {id: item[\"id\"]} \n\n- if obj[\"toybox:most_common_artists\"]\n %section.container-fluid.toybox.featured_items\n .container\n .row\n .col\n %h3 Most Common Creators\n .row.align-items-center\n - obj[\"toybox:most_common_artists\"].first(6).each do |item|\n - id = item[\"toybox:common_artist\"][\"id\"]\n - common_artist = JSON.parse(settings.redis.get(\"aac:data:\#{id}\"))[\"@graph\"][0] rescue nil\n - if common_artist\n .col-2\n - count = item[\"toybox:common_artist_count\"][\"@value\"]\n - caption = \"\#{common_artist[\"label\"]}<br/>\#{count} items\"\n .item_preview\n = display_image(common_artist, caption: caption, link: true, thumbnail: true, placeholder: true)\n\n\n:javascript\n console.log(\#{obj.to_json});\n\n\n", @engine=#<Haml::TempleEngine:0x007fa1e7d561b0 @options=#<Temple::ImmutableMap:0x007fa1e7d55a80 @map=[{:attr_wrapper=>"'", :autoclose=>["area", "base", "basefont", "br", "col", "command", "embed", "frame", "hr", "img", "input", "isindex", "keygen", "link", "menuitem", "meta", "param", "source", "track", "wbr"], :encoding=>nil, :escape_attrs=>true, :escape_html=>false, :filename=>"source/templates/actor.html.haml", :format=>:html5, :hyphenate_data_attrs=>true, :line=>1, :mime_type=>"text/html", :preserve=>["textarea", "pre", "code"], :remove_whitespace=>false, :suppress_eval=>false, :cdata=>false, :parser_class=>Haml::Parser, :compiler_class=>Haml::Compiler, :trace=>false, :filters=>{}, :buffer=>"@_out_buf", :save_buffer=>true}]>, @chain=[[:Parser, #<Proc:0x007fa1e6a24a60@/Users/dnewbury/.rvm/gems/ruby-2.4.1/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:89>], [:Compiler, #<Proc:0x007fa1e6a24808@/Users/dnewbury/.rvm/gems/ruby-2.4.1/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:89>], [:"Haml::Escapable", #<Proc:0x007fa1e7159920@/Users/dnewbury/.rvm/gems/ruby-2.4.1/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>], [:ControlFlow, #<Proc:0x007fa1e7153de0@/Users/dnewbury/.rvm/gems/ruby-2.4.1/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>], [:MultiFlattener, #<Proc:0x007fa1e6421eb0@/Users/dnewbury/.rvm/gems/ruby-2.4.1/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>], [:StaticMerger, #<Proc:0x007fa1e7b97658@/Users/dnewbury/.rvm/gems/ruby-2.4.1/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>], [:"Haml::Generator", #<Proc:0x007fa1e7b971a8@/Users/dnewbury/.rvm/gems/ruby-2.4.1/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>]], @encoding=#<Encoding:UTF-8>, @call_chain=[#<Haml::Parser:0x007fa1e7d558f0 @options=#<Haml::Options:0x007fa1e7d558c8 @attr_wrapper="'", @autoclose=["area", "base", "basefont", "br", "col", "command", "embed", "frame", "hr", "img", "input", "isindex", "keygen", "link", "menuitem", "meta", "param", "source", "track", "wbr"], @encoding="UTF-8", @escape_attrs=true, @escape_html=false, @filename="source/templates/actor.html.haml", @format=:html5, @hyphenate_data_attrs=true, @line=1, @mime_type="text/html", @preserve=["textarea", "pre", "code"], @remove_whitespace=false, @suppress_eval=false, @cdata=false, @parser_class=Haml::Parser, @compiler_class=Haml::Compiler, @trace=false, @filters={}>, @script_level_stack=[], @template_index=0, @template_tabs=0, @template=[], @parent=(root nil (silent_script {:text=>" content_for :title_text do", :keyword=>nil} (script {:text=>" get_actor_name(obj)", :escape_html=>false, :preserve=>false, :keyword=>nil})) (tag {:name=>"section", :attributes=>{"class"=>"container main_content"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"header", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h2", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"get_actor_name(obj)"}) (silent_script {:text=>"if val = display_value(obj[\"contact_point\"], field: \"value\")", :keyword=>"if"} (tag {:name=>"div", :attributes=>{"class"=>"address secondary"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"val"}))) (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"col-md-6"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>"if bio = get_actor_bio(obj)", :keyword=>"if"} (tag {:name=>"p", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"bio"})) (silent_script {:text=>"if bio = by_classification(obj.dig(\"subject_of\"),\"aat:300080091\")", :keyword=>"if"} (tag {:name=>"p", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"display_value(bio, keep_newlines: true)"})) (silent_script {:text=>"if bio = by_classification(obj.dig(\"subject_of\"),\"toybox:aat_description\")", :keyword=>"if"} (tag {:name=>"h5", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"About the Dataset"}) (tag {:name=>"p", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"display_value(bio, keep_newlines: true)"}))) (tag {:name=>"div", :attributes=>{"class"=>"col-md-5 offset-md-1"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (comment {:conditional=>nil, :text=>"/ Instititution-specific section", :revealed=>false, :parse=>false}) (silent_script {:text=>" if obj[\"schema:logo\"]", :keyword=>"if"} (tag {:name=>"section", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>" if val = obj[\"schema:logo\"]", :keyword=>"if"} (tag {:name=>"div", :attributes=>{"class"=>"col-12 text-center logo_lockup"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>"image_tag obj.dig(\"schema:logo\"), class: 'img-fluid img-thumbnail'", :escape_html=>false, :preserve=>false, :keyword=>nil}))) (silent_script {:text=>" if obj[\"toybox:related_artwork_count\"]", :keyword=>"if"} (tag {:name=>"div", :attributes=>{"class"=>"col stat text-center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>"\"\#{obj[\"toybox:related_artwork_count\"][\"@value\"].to_i.to_s(:delimited)}\"", :escape_html=>false, :preserve=>false, :keyword=>nil}) (tag {:name=>"div", :attributes=>{"class"=>"stat_label"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Items"}))) (silent_script {:text=>" if obj[\"toybox:related_artist_count\"]", :keyword=>"if"} (tag {:name=>"div", :attributes=>{"class"=>"col stat text-center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>"\"\#{obj[\"toybox:related_artist_count\"][\"@value\"].to_i.to_s(:delimited)}\"", :escape_html=>false, :preserve=>false, :keyword=>nil}) (tag {:name=>"div", :attributes=>{"class"=>"stat_label"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Creators"}))) (silent_script {:text=>" if obj[\"toybox:latest_artwork_date\"] && obj[\"toybox:earliest_artwork_date\"]", :keyword=>"if"} (tag {:name=>"div", :attributes=>{"class"=>"col stat text-center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>"\"\#{obj[\"toybox:earliest_artwork_date\"][\"@value\"]} \\u2014 \#{obj[\"toybox:latest_artwork_date\"][\"@value\"]}\"", :escape_html=>false, :preserve=>false, :keyword=>nil}) (tag {:name=>"div", :attributes=>{"class"=>"stat_label"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Date Range"}))))) (tag {:name=>"div", :attributes=>{"class"=>"metadata"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"dl", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>true, :nuke_outer_whitespace=>false, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>"list_item \"Alternate Names\", except_classification(obj.dig(\"actor_identified_by\"),[\"aat:300404670\",\"aat:300404672\"])", :escape_html=>false, :preserve=>false, :keyword=>nil}) (script {:text=>"list_item \"Birth\", event_time_string(obj.dig(\"brought_into_existence_by\"))", :escape_html=>false, :preserve=>false, :keyword=>nil}) (script {:text=>"list_item \"Birth Location\", event_place_string(obj.dig(\"brought_into_existence_by\"))", :escape_html=>false, :preserve=>false, :keyword=>nil}) (script {:text=>"list_item \"Death\", event_time_string(obj.dig(\"taken_out_of_existence_by\"))", :escape_html=>false, :preserve=>false, :keyword=>nil}) (script {:text=>"list_item \"Death Location\", event_place_string(obj.dig(\"taken_out_of_existence_by\"))", :escape_html=>false, :preserve=>false, :keyword=>nil}) (script {:text=>"list_item \"Gender\", by_classification(obj.dig(\"classified_as\"),\"aat:300055147\", \"label\"), downcase: true, only_first: true", :escape_html=>false, :preserve=>false, :keyword=>nil}) (script {:text=>"list_item \"Nationality\", by_classification(obj.dig(\"member_of\"),\"aat:300379842\", \"label\"), only_first: true", :escape_html=>false, :preserve=>false, :keyword=>nil})) (silent_script {:text=>" if obj[\"toybox:related_actors\"]", :keyword=>"if"} (script {:text=>" haml \"toyboxes/related_actors\".to_sym, layout: false, locals: {people: obj[\"toybox:related_actors\"]}", :escape_html=>false, :preserve=>false, :keyword=>nil})) (tag {:name=>"dl", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>true, :nuke_outer_whitespace=>false, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>"list_item \"Partner URL\", link_to_foaf(obj[\"homepage\"])", :escape_html=>false, :preserve=>false, :keyword=>nil}) (script {:text=>"list_item \"Linked Data URI\", external_link_to(obj[\"id\"])", :escape_html=>false, :preserve=>false, :keyword=>nil}) (script {:text=>"list_item \"External Authority\", obj.dig(\"exact_match\"), is_link: true, field: \"id\"", :escape_html=>false, :preserve=>false, :keyword=>nil}) (silent_script {:text=>" json = settings.redis.get(\"aac:reverse_lookup:\#{obj[\"id\"]}\")", :keyword=>nil}) (script {:text=>"list_item \"View LOD\", [external_link_to(\"\#{json}.json\", \"as JSON-LD\"), external_link_to(\"\#{json}.ttl\", \"as Turtle\")], join_char: \"  \", pluralize: false", :escape_html=>false, :preserve=>false, :keyword=>nil})) (comment {:conditional=>nil, :text=>"/ This is an alternate option for the first toybox.", :revealed=>false, :parse=>false}) (silent_script {:text=>" if obj.dig(\"depicted_by\") && false", :keyword=>"if"} (tag {:name=>"dl", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>true, :nuke_outer_whitespace=>false, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>"list_item \"Depicted In\", obj.dig(\"depicted_by\"), pluralize: false, is_entity: true, field: \"entity\"", :escape_html=>false, :preserve=>false, :keyword=>nil}))))))) (silent_script {:text=>" if obj[\"depicted_by\"]", :keyword=>"if"} (tag {:name=>"section", :attributes=>{"class"=>"container-fluid toybox featured_items"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"container"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"col"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h3", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"Selected Images of \#{get_actor_name(obj)}\""}))) (tag {:name=>"div", :attributes=>{"class"=>"row align-items-center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>" [obj[\"depicted_by\"]].flatten(1).first(6).each do |item|", :keyword=>nil} (tag {:name=>"div", :attributes=>{"class"=>"col-2"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" haml \"toyboxes/item_preview\".to_sym, layout: false, locals: {id: item[\"id\"]}", :escape_html=>false, :preserve=>false, :keyword=>nil}))))))) (silent_script {:text=>" if obj[\"toybox:created_by\"]", :keyword=>"if"} (script {:text=>" haml \"toyboxes/work_grid\".to_sym, layout: false, locals: {works: obj[\"toybox:created_by\"], title: \"Objects Created by \#{obj[\"label\"].first}\"}", :escape_html=>false, :preserve=>false, :keyword=>nil})) (silent_script {:text=>" if obj[\"toybox:featured_items\"]", :keyword=>"if"} (tag {:name=>"section", :attributes=>{"class"=>"container-fluid toybox featured_items"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"container"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"col"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h3", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Featured Objects"}))) (tag {:name=>"div", :attributes=>{"class"=>"row align-items-center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>" obj[\"toybox:featured_items\"].first(12).each do |item|", :keyword=>nil} (tag {:name=>"div", :attributes=>{"class"=>"col-2"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" haml \"toyboxes/item_preview\".to_sym, layout: false, locals: {id: item[\"id\"]}", :escape_html=>false, :preserve=>false, :keyword=>nil}))))))) (silent_script {:text=>" if obj[\"toybox:most_common_artists\"]", :keyword=>"if"} (tag {:name=>"section", :attributes=>{"class"=>"container-fluid toybox featured_items"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"container"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"col"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h3", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Most Common Creators"}))) (tag {:name=>"div", :attributes=>{"class"=>"row align-items-center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>" obj[\"toybox:most_common_artists\"].first(6).each do |item|", :keyword=>nil} (silent_script {:text=>" id = item[\"toybox:common_artist\"][\"id\"]", :keyword=>nil}) (silent_script {:text=>" common_artist = JSON.parse(settings.redis.get(\"aac:data:\#{id}\"))[\"@graph\"][0] rescue nil", :keyword=>nil}) (silent_script {:text=>" if common_artist", :keyword=>"if"} (tag {:name=>"div", :attributes=>{"class"=>"col-2"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>" count = item[\"toybox:common_artist_count\"][\"@value\"]", :keyword=>nil}) (silent_script {:text=>" caption = \"\#{common_artist[\"label\"]}<br/>\#{count} items\"", :keyword=>nil}) (tag {:name=>"div", :attributes=>{"class"=>"item_preview"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" display_image(common_artist, caption: caption, link: true, thumbnail: true, placeholder: true)", :escape_html=>false, :preserve=>false, :keyword=>nil}))))))))) (filter {:name=>"javascript", :text=>"console.log(\#{obj.to_json});\n"})), @root=(root nil (silent_script {:text=>" content_for :title_text do", :keyword=>nil} (script {:text=>" get_actor_name(obj)", :escape_html=>false, :preserve=>false, :keyword=>nil})) (tag {:name=>"section", :attributes=>{"class"=>"container main_content"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"header", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h2", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"get_actor_name(obj)"}) (silent_script {:text=>"if val = display_value(obj[\"contact_point\"], field: \"value\")", :keyword=>"if"} (tag {:name=>"div", :attributes=>{"class"=>"address secondary"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"val"}))) (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"col-md-6"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>"if bio = get_actor_bio(obj)", :keyword=>"if"} (tag {:name=>"p", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"bio"})) (silent_script {:text=>"if bio = by_classification(obj.dig(\"subject_of\"),\"aat:300080091\")", :keyword=>"if"} (tag {:name=>"p", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"display_value(bio, keep_newlines: true)"})) (silent_script {:text=>"if bio = by_classification(obj.dig(\"subject_of\"),\"toybox:aat_description\")", :keyword=>"if"} (tag {:name=>"h5", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"About the Dataset"}) (tag {:name=>"p", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"display_value(bio, keep_newlines: true)"}))) (tag {:name=>"div", :attributes=>{"class"=>"col-md-5 offset-md-1"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (comment {:conditional=>nil, :text=>"/ Instititution-specific section", :revealed=>false, :parse=>false}) (silent_script {:text=>" if obj[\"schema:logo\"]", :keyword=>"if"} (tag {:name=>"section", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>" if val = obj[\"schema:logo\"]", :keyword=>"if"} (tag {:name=>"div", :attributes=>{"class"=>"col-12 text-center logo_lockup"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>"image_tag obj.dig(\"schema:logo\"), class: 'img-fluid img-thumbnail'", :escape_html=>false, :preserve=>false, :keyword=>nil}))) (silent_script {:text=>" if obj[\"toybox:related_artwork_count\"]", :keyword=>"if"} (tag {:name=>"div", :attributes=>{"class"=>"col stat text-center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>"\"\#{obj[\"toybox:related_artwork_count\"][\"@value\"].to_i.to_s(:delimited)}\"", :escape_html=>false, :preserve=>false, :keyword=>nil}) (tag {:name=>"div", :attributes=>{"class"=>"stat_label"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Items"}))) (silent_script {:text=>" if obj[\"toybox:related_artist_count\"]", :keyword=>"if"} (tag {:name=>"div", :attributes=>{"class"=>"col stat text-center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>"\"\#{obj[\"toybox:related_artist_count\"][\"@value\"].to_i.to_s(:delimited)}\"", :escape_html=>false, :preserve=>false, :keyword=>nil}) (tag {:name=>"div", :attributes=>{"class"=>"stat_label"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Creators"}))) (silent_script {:text=>" if obj[\"toybox:latest_artwork_date\"] && obj[\"toybox:earliest_artwork_date\"]", :keyword=>"if"} (tag {:name=>"div", :attributes=>{"class"=>"col stat text-center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>"\"\#{obj[\"toybox:earliest_artwork_date\"][\"@value\"]} \\u2014 \#{obj[\"toybox:latest_artwork_date\"][\"@value\"]}\"", :escape_html=>false, :preserve=>false, :keyword=>nil}) (tag {:name=>"div", :attributes=>{"class"=>"stat_label"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Date Range"}))))) (tag {:name=>"div", :attributes=>{"class"=>"metadata"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"dl", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>true, :nuke_outer_whitespace=>false, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>"list_item \"Alternate Names\", except_classification(obj.dig(\"actor_identified_by\"),[\"aat:300404670\",\"aat:300404672\"])", :escape_html=>false, :preserve=>false, :keyword=>nil}) (script {:text=>"list_item \"Birth\", event_time_string(obj.dig(\"brought_into_existence_by\"))", :escape_html=>false, :preserve=>false, :keyword=>nil}) (script {:text=>"list_item \"Birth Location\", event_place_string(obj.dig(\"brought_into_existence_by\"))", :escape_html=>false, :preserve=>false, :keyword=>nil}) (script {:text=>"list_item \"Death\", event_time_string(obj.dig(\"taken_out_of_existence_by\"))", :escape_html=>false, :preserve=>false, :keyword=>nil}) (script {:text=>"list_item \"Death Location\", event_place_string(obj.dig(\"taken_out_of_existence_by\"))", :escape_html=>false, :preserve=>false, :keyword=>nil}) (script {:text=>"list_item \"Gender\", by_classification(obj.dig(\"classified_as\"),\"aat:300055147\", \"label\"), downcase: true, only_first: true", :escape_html=>false, :preserve=>false, :keyword=>nil}) (script {:text=>"list_item \"Nationality\", by_classification(obj.dig(\"member_of\"),\"aat:300379842\", \"label\"), only_first: true", :escape_html=>false, :preserve=>false, :keyword=>nil})) (silent_script {:text=>" if obj[\"toybox:related_actors\"]", :keyword=>"if"} (script {:text=>" haml \"toyboxes/related_actors\".to_sym, layout: false, locals: {people: obj[\"toybox:related_actors\"]}", :escape_html=>false, :preserve=>false, :keyword=>nil})) (tag {:name=>"dl", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>true, :nuke_outer_whitespace=>false, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>"list_item \"Partner URL\", link_to_foaf(obj[\"homepage\"])", :escape_html=>false, :preserve=>false, :keyword=>nil}) (script {:text=>"list_item \"Linked Data URI\", external_link_to(obj[\"id\"])", :escape_html=>false, :preserve=>false, :keyword=>nil}) (script {:text=>"list_item \"External Authority\", obj.dig(\"exact_match\"), is_link: true, field: \"id\"", :escape_html=>false, :preserve=>false, :keyword=>nil}) (silent_script {:text=>" json = settings.redis.get(\"aac:reverse_lookup:\#{obj[\"id\"]}\")", :keyword=>nil}) (script {:text=>"list_item \"View LOD\", [external_link_to(\"\#{json}.json\", \"as JSON-LD\"), external_link_to(\"\#{json}.ttl\", \"as Turtle\")], join_char: \"  \", pluralize: false", :escape_html=>false, :preserve=>false, :keyword=>nil})) (comment {:conditional=>nil, :text=>"/ This is an alternate option for the first toybox.", :revealed=>false, :parse=>false}) (silent_script {:text=>" if obj.dig(\"depicted_by\") && false", :keyword=>"if"} (tag {:name=>"dl", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>true, :nuke_outer_whitespace=>false, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>"list_item \"Depicted In\", obj.dig(\"depicted_by\"), pluralize: false, is_entity: true, field: \"entity\"", :escape_html=>false, :preserve=>false, :keyword=>nil}))))))) (silent_script {:text=>" if obj[\"depicted_by\"]", :keyword=>"if"} (tag {:name=>"section", :attributes=>{"class"=>"container-fluid toybox featured_items"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"container"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"col"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h3", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"Selected Images of \#{get_actor_name(obj)}\""}))) (tag {:name=>"div", :attributes=>{"class"=>"row align-items-center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>" [obj[\"depicted_by\"]].flatten(1).first(6).each do |item|", :keyword=>nil} (tag {:name=>"div", :attributes=>{"class"=>"col-2"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" haml \"toyboxes/item_preview\".to_sym, layout: false, locals: {id: item[\"id\"]}", :escape_html=>false, :preserve=>false, :keyword=>nil}))))))) (silent_script {:text=>" if obj[\"toybox:created_by\"]", :keyword=>"if"} (script {:text=>" haml \"toyboxes/work_grid\".to_sym, layout: false, locals: {works: obj[\"toybox:created_by\"], title: \"Objects Created by \#{obj[\"label\"].first}\"}", :escape_html=>false, :preserve=>false, :keyword=>nil})) (silent_script {:text=>" if obj[\"toybox:featured_items\"]", :keyword=>"if"} (tag {:name=>"section", :attributes=>{"class"=>"container-fluid toybox featured_items"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"container"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"col"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h3", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Featured Objects"}))) (tag {:name=>"div", :attributes=>{"class"=>"row align-items-center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>" obj[\"toybox:featured_items\"].first(12).each do |item|", :keyword=>nil} (tag {:name=>"div", :attributes=>{"class"=>"col-2"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" haml \"toyboxes/item_preview\".to_sym, layout: false, locals: {id: item[\"id\"]}", :escape_html=>false, :preserve=>false, :keyword=>nil}))))))) (silent_script {:text=>" if obj[\"toybox:most_common_artists\"]", :keyword=>"if"} (tag {:name=>"section", :attributes=>{"class"=>"container-fluid toybox featured_items"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"container"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"col"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h3", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Most Common Creators"}))) (tag {:name=>"div", :attributes=>{"class"=>"row align-items-center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>" obj[\"toybox:most_common_artists\"].first(6).each do |item|", :keyword=>nil} (silent_script {:text=>" id = item[\"toybox:common_artist\"][\"id\"]", :keyword=>nil}) (silent_script {:text=>" common_artist = JSON.parse(settings.redis.get(\"aac:data:\#{id}\"))[\"@graph\"][0] rescue nil", :keyword=>nil}) (silent_script {:text=>" if common_artist", :keyword=>"if"} (tag {:name=>"div", :attributes=>{"class"=>"col-2"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>" count = item[\"toybox:common_artist_count\"][\"@value\"]", :keyword=>nil}) (silent_script {:text=>" caption = \"\#{common_artist[\"label\"]}<br/>\#{count} items\"", :keyword=>nil}) (tag {:name=>"div", :attributes=>{"class"=>"item_preview"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" display_image(common_artist, caption: caption, link: true, thumbnail: true, placeholder: true)", :escape_html=>false, :preserve=>false, :keyword=>nil}))))))))) (filter {:name=>"javascript", :text=>"console.log(\#{obj.to_json});\n"})), @flat=false, @filter_buffer=nil, @indentation=" ", @next_line=#<struct Haml::Parser::Line whitespace=nil, text="-#", full="-#", index=111, parser=#<Haml::Parser:0x007fa1e7d558f0 ...>, eod=true>, @line=#<struct Haml::Parser::Line whitespace=nil, text="-#", full="-#", index=111, parser=#<Haml::Parser:0x007fa1e7d558f0 ...>, eod=true>, @tab_up=nil, @flat_spaces=nil>, #<Haml::Compiler:0x007fa1e7d54860 @options=#<Haml::Options:0x007fa1e7d54838 @attr_wrapper="'", @autoclose=["area", "base", "basefont", "br", "col", "command", "embed", "frame", "hr", "img", "input", "isindex", "keygen", "link", "menuitem", "meta", "param", "source", "track", "wbr"], @encoding="UTF-8", @escape_attrs=true, @escape_html=false, @filename="source/templates/actor.html.haml", @format=:html5, @hyphenate_data_attrs=true, @line=1, @mime_type="text/html", @preserve=["textarea", "pre", "code"], @remove_whitespace=false, @suppress_eval=false, @cdata=false, @parser_class=Haml::Parser, @compiler_class=Haml::Compiler, @trace=false, @filters={}>, @to_merge=[], @temple=[:multi, [:code, " content_for :title_text do\n"], [:dynamic, "( get_actor_name(obj)\n).to_s"], [:static, "\n"], [:code, "end;"], [:static, "<section"], [:newline], [:multi, [:static, " class='container main_content'"]], [:static, ">\n"], [:static, "<header"], [:newline], [:newline], [:multi], [:static, ">\n"], [:static, "<h2"], [:newline], [:multi], [:static, ">"], [:dynamic, "(get_actor_name(obj)\n).to_s"], [:static, "</h2>\n"], [:code, "if val = display_value(obj[\"contact_point\"], field: \"value\")\n"], [:static, "<div"], [:multi, [:static, " class='address secondary'"]], [:static, ">"], [:dynamic, "(val\n).to_s"], [:static, "</div>\n"], [:code, "end;"], [:static, "</header>\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='row'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='col-md-6'"]], [:static, ">\n"], [:code, "\nif bio = get_actor_bio(obj)\n"], [:static, "<p"], [:multi], [:static, ">"], [:dynamic, "(bio\n).to_s"], [:static, "</p>\n"], [:code, "end;"], [:code, "if bio = by_classification(obj.dig(\"subject_of\"),\"aat:300080091\")\n"], [:static, "<p"], [:multi], [:static, ">"], [:dynamic, "(display_value(bio, keep_newlines: true)\n).to_s"], [:static, "</p>\n"], [:code, "end;"], [:code, "if bio = by_classification(obj.dig(\"subject_of\"),\"toybox:aat_description\")\n"], [:static, "<h5"], [:multi], [:static, ">"], [:static, "About the Dataset</h5>\n"], [:static, "<p"], [:newline], [:multi], [:static, ">"], [:dynamic, "(display_value(bio, keep_newlines: true)\n).to_s"], [:static, "</p>\n"], [:code, "end;"], [:static, "</div>\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='col-md-5 offset-md-1'"]], [:static, ">\n"], [:static, "<!-- "], [:static, "/ Instititution-specific section"], [:static, " -->\n"], [:code, "\n\n\n if obj[\"schema:logo\"]\n"], [:static, "<section"], [:multi, [:static, " class='row'"]], [:static, ">\n"], [:code, "\n if val = obj[\"schema:logo\"]\n"], [:static, "<div"], [:multi, [:static, " class='col-12 text-center logo_lockup'"]], [:static, ">\n"], [:dynamic, "\n(image_tag obj.dig(\"schema:logo\"), class: 'img-fluid img-thumbnail'\n).to_s"], [:static, "\n"], [:static, "</div>\n"], [:code, "end;"], [:code, " if obj[\"toybox:related_artwork_count\"]\n"], [:static, "<div"], [:multi, [:static, " class='col stat text-center'"]], [:static, ">\n"], [:dynamic, "\n(\"\#{obj[\"toybox:related_artwork_count\"][\"@value\"].to_i.to_s(:delimited)}\"\n).to_s"], [:static, "\n"], [:static, "<div"], [:multi, [:static, " class='stat_label'"]], [:static, ">"], [:static, "Items</div>\n"], [:static, "</div>\n"], [:code, "end;"], [:code, "\n if obj[\"toybox:related_artist_count\"]\n"], [:static, "<div"], [:multi, [:static, " class='col stat text-center'"]], [:static, ">\n"], [:dynamic, "\n(\"\#{obj[\"toybox:related_artist_count\"][\"@value\"].to_i.to_s(:delimited)}\"\n).to_s"], [:static, "\n"], [:static, "<div"], [:multi, [:static, " class='stat_label'"]], [:static, ">"], [:static, "Creators</div>\n"], [:static, "</div>\n"], [:code, "end;"], [:code, "\n if obj[\"toybox:latest_artwork_date\"] && obj[\"toybox:earliest_artwork_date\"]\n"], [:static, "<div"], [:multi, [:static, " class='col stat text-center'"]], [:static, ">\n"], [:dynamic, "\n(\"\#{obj[\"toybox:earliest_artwork_date\"][\"@value\"]} \\u2014 \#{obj[\"toybox:latest_artwork_date\"][\"@value\"]}\"\n).to_s"], [:static, "\n"], [:static, "<div"], [:multi, [:static, " class='stat_label'"]], [:static, ">"], [:static, "Date Range</div>\n"], [:static, "</div>\n"], [:code, "end;"], [:static, "</section>\n"], [:code, "end;"], [:static, "<div"], [:newline], [:newline], [:multi, [:static, " class='metadata'"]], [:static, ">\n"], [:static, "<dl"], [:newline], [:multi, [:static, " class='row'"]], [:static, ">"], [:dynamic, "\n(list_item \"Alternate Names\", except_classification(obj.dig(\"actor_identified_by\"),[\"aat:300404670\",\"aat:300404672\"])\n).to_s"], [:dynamic, "(list_item \"Birth\", event_time_string(obj.dig(\"brought_into_existence_by\"))\n).to_s"], [:dynamic, "(list_item \"Birth Location\", event_place_string(obj.dig(\"brought_into_existence_by\"))\n).to_s"], [:dynamic, "(list_item \"Death\", event_time_string(obj.dig(\"taken_out_of_existence_by\"))\n).to_s"], [:dynamic, "(list_item \"Death Location\", event_place_string(obj.dig(\"taken_out_of_existence_by\"))\n).to_s"], [:dynamic, "(list_item \"Gender\", by_classification(obj.dig(\"classified_as\"),\"aat:300055147\", \"label\"), downcase: true, only_first: true\n).to_s"], [:dynamic, "(list_item \"Nationality\", by_classification(obj.dig(\"member_of\"),\"aat:300379842\", \"label\"), only_first: true\n).to_s"], [:static, "</dl>\n"], [:code, " if obj[\"toybox:related_actors\"]\n"], [:dynamic, "( haml \"toyboxes/related_actors\".to_sym, layout: false, locals: {people: obj[\"toybox:related_actors\"]}\n).to_s"], [:static, "\n"], [:code, "end;"], [:static, "<dl"], [:multi, [:static, " class='row'"]], [:static, ">"], [:dynamic, "\n(list_item \"Partner URL\", link_to_foaf(obj[\"homepage\"])\n).to_s"], [:dynamic, "(list_item \"Linked Data URI\", external_link_to(obj[\"id\"])\n).to_s"], [:dynamic, "(list_item \"External Authority\", obj.dig(\"exact_match\"), is_link: true, field: \"id\"\n).to_s"], [:code, " json = settings.redis.get(\"aac:reverse_lookup:\#{obj[\"id\"]}\")\n"], [:dynamic, "(list_item \"View LOD\", [external_link_to(\"\#{json}.json\", \"as JSON-LD\"), external_link_to(\"\#{json}.ttl\", \"as Turtle\")], join_char: \"  \", pluralize: false\n).to_s"], [:code, "_hamlout.rstrip!\n"], [:static, "</dl>\n"], [:static, "<!-- "], [:static, "/ This is an alternate option for the first toybox."], [:static, " -->\n"], [:code, "\n if obj.dig(\"depicted_by\") && false\n"], [:static, "<dl"], [:multi, [:static, " class='row'"]], [:static, ">"], [:dynamic, "\n(list_item \"Depicted In\", obj.dig(\"depicted_by\"), pluralize: false, is_entity: true, field: \"entity\"\n).to_s"], [:static, "</dl>\n"], [:code, "end;"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "</section>\n"], [:code, "\n\n if obj[\"depicted_by\"]\n"], [:static, "<section"], [:multi, [:static, " class='container-fluid toybox featured_items'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='container'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='row'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='col'"]], [:static, ">\n"], [:static, "<h3"], [:newline], [:multi], [:static, ">"], [:dynamic, "(\"Selected Images of \#{get_actor_name(obj)}\"\n).to_s"], [:static, "</h3>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "<div"], [:multi, [:static, " class='row align-items-center'"]], [:static, ">\n"], [:code, "\n [obj[\"depicted_by\"]].flatten(1).first(6).each do |item|\n"], [:static, "<div"], [:multi, [:static, " class='col-2'"]], [:static, ">\n"], [:dynamic, "\n( haml \"toyboxes/item_preview\".to_sym, layout: false, locals: {id: item[\"id\"]}\n).to_s"], [:static, "\n"], [:static, "</div>\n"], [:code, "end;"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "</section>\n"], [:code, "end;"], [:code, "\n if obj[\"toybox:created_by\"]\n"], [:dynamic, "( haml \"toyboxes/work_grid\".to_sym, layout: false, locals: {works: obj[\"toybox:created_by\"], title: \"Objects Created by \#{obj[\"label\"].first}\"}\n).to_s"], [:static, "\n"], [:code, "end;"], [:code, "\n\n if obj[\"toybox:featured_items\"]\n"], [:static, "<section"], [:multi, [:static, " class='container-fluid toybox featured_items'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='container'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='row'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='col'"]], [:static, ">\n"], [:static, "<h3"], [:newline], [:multi], [:static, ">"], [:static, "Featured Objects</h3>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='row align-items-center'"]], [:static, ">\n"], [:code, "\n obj[\"toybox:featured_items\"].first(12).each do |item|\n"], [:static, "<div"], [:multi, [:static, " class='col-2'"]], [:static, ">\n"], [:dynamic, "\n( haml \"toyboxes/item_preview\".to_sym, layout: false, locals: {id: item[\"id\"]}\n).to_s"], [:static, "\n"], [:static, "</div>\n"], [:code, "end;"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "</section>\n"], [:code, "end;"], [:code, "\n if obj[\"toybox:most_common_artists\"]\n"], [:static, "<section"], [:multi, [:static, " class='container-fluid toybox featured_items'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='container'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='row'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='col'"]], [:static, ">\n"], [:static, "<h3"], [:newline], [:multi], [:static, ">"], [:static, "Most Common Creators</h3>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='row align-items-center'"]], [:static, ">\n"], [:code, "\n obj[\"toybox:most_common_artists\"].first(6).each do |item|\n"], [:code, " id = item[\"toybox:common_artist\"][\"id\"]\n"], [:code, " common_artist = JSON.parse(settings.redis.get(\"aac:data:\#{id}\"))[\"@graph\"][0] rescue nil\n"], [:code, " if common_artist\n"], [:static, "<div"], [:multi, [:static, " class='col-2'"]], [:static, ">\n"], [:code, "\n count = item[\"toybox:common_artist_count\"][\"@value\"]\n"], [:code, " caption = \"\#{common_artist[\"label\"]}<br/>\#{count} items\"\n"], [:static, "<div"], [:multi, [:static, " class='item_preview'"]], [:static, ">\n"], [:dynamic, "\n( display_image(common_artist, caption: caption, link: true, thumbnail: true, placeholder: true)\n).to_s"], [:static, "\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:code, "end;"], [:code, "end;"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "</section>\n"], [:code, "end;"], [:dynamic, "\n\n(find_and_preserve(Haml::Filters::Javascript.render_with_options(\n\"console.log(\#{obj.to_json});\\n\", _hamlout.options))\n).to_s"], [:static, "\n"]], @node=nil, @filters={"plain"=>Haml::Filters::Plain, "javascript"=>Haml::Filters::Javascript, "css"=>Haml::Filters::Css, "cdata"=>Haml::Filters::Cdata, "escaped"=>Haml::Filters::Escaped, "ruby"=>Haml::Filters::Ruby, "preserve"=>Haml::Filters::Preserve, "sass"=>Haml::Filters::Sass, "scss"=>Haml::Filters::Scss, "less"=>Haml::Filters::Less, "markdown"=>Haml::Filters::Markdown, "erb"=>Haml::Filters::Erb, "coffee"=>Haml::Filters::Coffee, "coffeescript"=>Haml::Filters::Coffee}, @attribute_compiler=#<Haml::AttributeCompiler:0x007fa1e7e678d8 @is_html=true, @attr_wrapper="'", @escape_attrs=true, @hyphenate_data_attrs=true>, @output_line=112>, #<Haml::Escapable:0x007fa1e7e673d8 @options=#<Temple::ImmutableMap:0x007fa1e7e67018 @map=[{}]>, @escape_code="::Haml::Helpers.html_escape((%s))", @escaper=#<Proc:0x007fa1e7e66a00@(eval):1>, @once_escape_code="::Haml::Helpers.escape_once((%s))", @once_escaper=#<Proc:0x007fa1e7e664b0@(eval):1>, @escape=false>, #<Temple::Filters::ControlFlow:0x007fa1e7e65f88 @options=#<Temple::ImmutableMap:0x007fa1e7e65cb8 @map=[{}]>>, #<Temple::Filters::MultiFlattener:0x007fa1e7e65768 @options=#<Temple::ImmutableMap:0x007fa1e7e65470 @map=[{}]>>, #<Temple::Filters::StaticMerger:0x007fa1e7e64ed0 @options=#<Temple::ImmutableMap:0x007fa1e7e64bb0 @map=[{}]>>, #<Haml::Generator:0x007fa1e7e64638 @options=#<Temple::ImmutableMap:0x007fa1e7e64408 @map=[{:freeze_static=>true}]>>], @precompiled=" content_for :title_text do\n; _hamlout.buffer << ((( get_actor_name(obj)\n).to_s).to_s);; _hamlout.buffer << (\"\\n\".freeze);; end;; _hamlout.buffer << (\"<section class='container main_content'>\\n<header>\\n<h2>\".freeze);; \n; \n; \n; \n; _hamlout.buffer << (((get_actor_name(obj)\n).to_s).to_s);; _hamlout.buffer << (\"</h2>\\n\".freeze);; if val = display_value(obj[\"contact_point\"], field: \"value\")\n; _hamlout.buffer << (\"<div class='address secondary'>\".freeze);; _hamlout.buffer << (((val\n).to_s).to_s);; _hamlout.buffer << (\"</div>\\n\".freeze);; end;; _hamlout.buffer << (\"</header>\\n<div class='row'>\\n<div class='col-md-6'>\\n\".freeze);; \n; \n; \nif bio = get_actor_bio(obj)\n; _hamlout.buffer << (\"<p>\".freeze);; _hamlout.buffer << (((bio\n).to_s).to_s);; _hamlout.buffer << (\"</p>\\n\".freeze);; end;; if bio = by_classification(obj.dig(\"subject_of\"),\"aat:300080091\")\n; _hamlout.buffer << (\"<p>\".freeze);; _hamlout.buffer << (((display_value(bio, keep_newlines: true)\n).to_s).to_s);; _hamlout.buffer << (\"</p>\\n\".freeze);; end;; if bio = by_classification(obj.dig(\"subject_of\"),\"toybox:aat_description\")\n; _hamlout.buffer << (\"<h5>About the Dataset</h5>\\n<p>\".freeze);; \n; _hamlout.buffer << (((display_value(bio, keep_newlines: true)\n).to_s).to_s);; _hamlout.buffer << (\"</p>\\n\".freeze);; end;; _hamlout.buffer << (\"</div>\\n<div class='col-md-5 offset-md-1'>\\n<!-- / Instititution-specific section -->\\n\".freeze);; \n; \n\n\n if obj[\"schema:logo\"]\n; _hamlout.buffer << (\"<section class='row'>\\n\".freeze);; \n if val = obj[\"schema:logo\"]\n; _hamlout.buffer << (\"<div class='col-12 text-center logo_lockup'>\\n\".freeze);; _hamlout.buffer << ((\n(image_tag obj.dig(\"schema:logo\"), class: 'img-fluid img-thumbnail'\n).to_s).to_s);; _hamlout.buffer << (\"\\n</div>\\n\".freeze);; end;; if obj[\"toybox:related_artwork_count\"]\n; _hamlout.buffer << (\"<div class='col stat text-center'>\\n\".freeze);; _hamlout.buffer << ((\n(\"\#{obj[\"toybox:related_artwork_count\"][\"@value\"].to_i.to_s(:delimited)}\"\n).to_s).to_s);; _hamlout.buffer << (\"\\n<div class='stat_label'>Items</div>\\n</div>\\n\".freeze);; end;; \n if obj[\"toybox:related_artist_count\"]\n; _hamlout.buffer << (\"<div class='col stat text-center'>\\n\".freeze);; _hamlout.buffer << ((\n(\"\#{obj[\"toybox:related_artist_count\"][\"@value\"].to_i.to_s(:delimited)}\"\n).to_s).to_s);; _hamlout.buffer << (\"\\n<div class='stat_label'>Creators</div>\\n</div>\\n\".freeze);; end;; \n if obj[\"toybox:latest_artwork_date\"] && obj[\"toybox:earliest_artwork_date\"]\n; _hamlout.buffer << (\"<div class='col stat text-center'>\\n\".freeze);; _hamlout.buffer << ((\n(\"\#{obj[\"toybox:earliest_artwork_date\"][\"@value\"]} \\u2014 \#{obj[\"toybox:latest_artwork_date\"][\"@value\"]}\"\n).to_s).to_s);; _hamlout.buffer << (\"\\n<div class='stat_label'>Date Range</div>\\n</div>\\n\".freeze);; end;; _hamlout.buffer << (\"</section>\\n\".freeze);; end;; _hamlout.buffer << (\"<div class='metadata'>\\n<dl class='row'>\".freeze);; \n; \n; \n; _hamlout.buffer << ((\n(list_item \"Alternate Names\", except_classification(obj.dig(\"actor_identified_by\"),[\"aat:300404670\",\"aat:300404672\"])\n).to_s).to_s);; _hamlout.buffer << (((list_item \"Birth\", event_time_string(obj.dig(\"brought_into_existence_by\"))\n).to_s).to_s);; _hamlout.buffer << (((list_item \"Birth Location\", event_place_string(obj.dig(\"brought_into_existence_by\"))\n).to_s).to_s);; _hamlout.buffer << (((list_item \"Death\", event_time_string(obj.dig(\"taken_out_of_existence_by\"))\n).to_s).to_s);; _hamlout.buffer << (((list_item \"Death Location\", event_place_string(obj.dig(\"taken_out_of_existence_by\"))\n).to_s).to_s);; _hamlout.buffer << (((list_item \"Gender\", by_classification(obj.dig(\"classified_as\"),\"aat:300055147\", \"label\"), downcase: true, only_first: true\n).to_s).to_s);; _hamlout.buffer << (((list_item \"Nationality\", by_classification(obj.dig(\"member_of\"),\"aat:300379842\", \"label\"), only_first: true\n).to_s).to_s);; _hamlout.buffer << (\"</dl>\\n\".freeze);; if obj[\"toybox:related_actors\"]\n; _hamlout.buffer << ((( haml \"toyboxes/related_actors\".to_sym, layout: false, locals: {people: obj[\"toybox:related_actors\"]}\n).to_s).to_s);; _hamlout.buffer << (\"\\n\".freeze);; end;; _hamlout.buffer << (\"<dl class='row'>\".freeze);; _hamlout.buffer << ((\n(list_item \"Partner URL\", link_to_foaf(obj[\"homepage\"])\n).to_s).to_s);; _hamlout.buffer << (((list_item \"Linked Data URI\", external_link_to(obj[\"id\"])\n).to_s).to_s);; _hamlout.buffer << (((list_item \"External Authority\", obj.dig(\"exact_match\"), is_link: true, field: \"id\"\n).to_s).to_s);; json = settings.redis.get(\"aac:reverse_lookup:\#{obj[\"id\"]}\")\n; _hamlout.buffer << (((list_item \"View LOD\", [external_link_to(\"\#{json}.json\", \"as JSON-LD\"), external_link_to(\"\#{json}.ttl\", \"as Turtle\")], join_char: \"  \", pluralize: false\n).to_s).to_s);; _hamlout.rstrip!\n; _hamlout.buffer << (\"</dl>\\n<!-- / This is an alternate option for the first toybox. -->\\n\".freeze);; \n if obj.dig(\"depicted_by\") && false\n; _hamlout.buffer << (\"<dl class='row'>\".freeze);; _hamlout.buffer << ((\n(list_item \"Depicted In\", obj.dig(\"depicted_by\"), pluralize: false, is_entity: true, field: \"entity\"\n).to_s).to_s);; _hamlout.buffer << (\"</dl>\\n\".freeze);; end;; _hamlout.buffer << (\"</div>\\n</div>\\n</div>\\n</section>\\n\".freeze);; \n\n if obj[\"depicted_by\"]\n; _hamlout.buffer << (\"<section class='container-fluid toybox featured_items'>\\n<div class='container'>\\n<div class='row'>\\n<div class='col'>\\n<h3>\".freeze);; \n; \n; \n; \n; _hamlout.buffer << (((\"Selected Images of \#{get_actor_name(obj)}\"\n).to_s).to_s);; _hamlout.buffer << (\"</h3>\\n</div>\\n</div>\\n<div class='row align-items-center'>\\n\".freeze);; \n [obj[\"depicted_by\"]].flatten(1).first(6).each do |item|\n; _hamlout.buffer << (\"<div class='col-2'>\\n\".freeze);; _hamlout.buffer << ((\n( haml \"toyboxes/item_preview\".to_sym, layout: false, locals: {id: item[\"id\"]}\n).to_s).to_s);; _hamlout.buffer << (\"\\n</div>\\n\".freeze);; end;; _hamlout.buffer << (\"</div>\\n</div>\\n</section>\\n\".freeze);; end;; \n if obj[\"toybox:created_by\"]\n; _hamlout.buffer << ((( haml \"toyboxes/work_grid\".to_sym, layout: false, locals: {works: obj[\"toybox:created_by\"], title: \"Objects Created by \#{obj[\"label\"].first}\"}\n).to_s).to_s);; _hamlout.buffer << (\"\\n\".freeze);; end;; \n\n if obj[\"toybox:featured_items\"]\n; _hamlout.buffer << (\"<section class='container-fluid toybox featured_items'>\\n<div class='container'>\\n<div class='row'>\\n<div class='col'>\\n<h3>Featured Objects</h3>\\n</div>\\n</div>\\n<div class='row align-items-center'>\\n\".freeze);; \n; \n; \n; \n; \n; \n obj[\"toybox:featured_items\"].first(12).each do |item|\n; _hamlout.buffer << (\"<div class='col-2'>\\n\".freeze);; _hamlout.buffer << ((\n( haml \"toyboxes/item_preview\".to_sym, layout: false, locals: {id: item[\"id\"]}\n).to_s).to_s);; _hamlout.buffer << (\"\\n</div>\\n\".freeze);; end;; _hamlout.buffer << (\"</div>\\n</div>\\n</section>\\n\".freeze);; end;; \n if obj[\"toybox:most_common_artists\"]\n; _hamlout.buffer << (\"<section class='container-fluid toybox featured_items'>\\n<div class='container'>\\n<div class='row'>\\n<div class='col'>\\n<h3>Most Common Creators</h3>\\n</div>\\n</div>\\n<div class='row align-items-center'>\\n\".freeze);; \n; \n; \n; \n; \n; \n obj[\"toybox:most_common_artists\"].first(6).each do |item|\n; id = item[\"toybox:common_artist\"][\"id\"]\n; common_artist = JSON.parse(settings.redis.get(\"aac:data:\#{id}\"))[\"@graph\"][0] rescue nil\n; if common_artist\n; _hamlout.buffer << (\"<div class='col-2'>\\n\".freeze);; \n count = item[\"toybox:common_artist_count\"][\"@value\"]\n; caption = \"\#{common_artist[\"label\"]}<br/>\#{count} items\"\n; _hamlout.buffer << (\"<div class='item_preview'>\\n\".freeze);; _hamlout.buffer << ((\n( display_image(common_artist, caption: caption, link: true, thumbnail: true, placeholder: true)\n).to_s).to_s);; _hamlout.buffer << (\"\\n</div>\\n</div>\\n\".freeze);; end;; end;; _hamlout.buffer << (\"</div>\\n</div>\\n</section>\\n\".freeze);; end;; _hamlout.buffer << ((\n\n(find_and_preserve(Haml::Filters::Javascript.render_with_options(\n\"console.log(\#{obj.to_json});\\n\", _hamlout.options))\n).to_s).to_s);; _hamlout.buffer << (\"\\n\".freeze);">>}>>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml"], :xss_mode=>:block, :nosniff=>true, :img_src=>"'self' data:", :font_src=>"'self'", :without_session=>true}>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml"], :img_src=>"'self' data:", :font_src=>"'self'", :without_session=>true}>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml"], :allow_if=>nil, :img_src=>"'self' data:", :font_src=>"'self'", :without_session=>true}>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml"], :img_src=>"'self' data:", :font_src=>"'self'", :without_session=>true}>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml"], :allow_if=>nil, :img_src=>"'self' data:", :font_src=>"'self'", :without_session=>true}>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml"], :frame_options=>:sameorigin, :img_src=>"'self' data:", :font_src=>"'self'", :without_session=>true}, @frame_options="SAMEORIGIN">>
rack.multiprocess
false
rack.multithread
true
rack.request.cookie_hash
{}
rack.request.query_hash
{"production"=>"true"}
rack.request.query_string
production=true
rack.run_once
false
rack.url_scheme
http
rack.version
[1, 3]
sinatra.accept
[#<Sinatra::Request::AcceptEntry:0x007fa1e7dc3be8 @entry="*/*", @type="*/*", @params={}, @q=1.0>]
sinatra.error
#<TypeError: no implicit conversion of String into Integer>
sinatra.error.params
{"production"=>"true", "captures"=>[], "id"=>"actor/ulan/500239941", "extension"=>"html"}
sinatra.route
GET /*id(.:extension)?

You're seeing this error because you have enabled the show_exceptions setting.