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/500012432.html
QUERY_STRING
production=true
REMOTE_ADDR
127.0.0.1
REQUEST_METHOD
GET
REQUEST_PATH
/actor/ulan/500012432.html
REQUEST_URI
/actor/ulan/500012432.html?production=true
SCRIPT_NAME
SERVER_NAME
localhost
SERVER_PORT
5000
SERVER_PROTOCOL
HTTP/1.1
SERVER_SOFTWARE
puma 3.11.3 Love Song
puma.config
#<Puma::Configuration:0x00007f9dfe83b528 @options=#<Puma::UserFileDefaultOptions:0x00007f9dfe83b078 @user_options={:environment=>"development", :logger=>#<Puma::Events:0x00007f9dfe83b780 @formatter=#<Puma::Events::PidFormatter:0x00007f9dfc912e58>, @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>, @debug=false, @hooks={: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:0x00007f9dfe83af10 @instances=[]>, @user_dsl=#<Puma::DSL:0x00007f9dfe83ad58 @config=#<Puma::Configuration:0x00007f9dfe83b528 ...>, @options={:environment=>"development", :logger=>#<Puma::Events:0x00007f9dfe83b780 @formatter=#<Puma::Events::PidFormatter:0x00007f9dfc912e58>, @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>, @debug=false, @hooks={:state=>[]}>}, @plugins=[]>, @file_dsl=#<Puma::DSL:0x00007f9dfe83abf0 @config=#<Puma::Configuration:0x00007f9dfe83b528 ...>, @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:0x00007f9dfe83ab50 @config=#<Puma::Configuration:0x00007f9dfe83b528 ...>, @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, AF_INET, 127.0.0.1, 5000>
rack.after_reply
[]
rack.cors
#<Rack::Cors::Result:0x00007f9e056f63c8 @preflight=false, @hit=false, @miss_reason="no-origin">
rack.errors
#<Object:0x00007f9dfc921e80>
rack.hijack
#<Puma::Client:0x3fcf01253b94 @ready=true>
rack.hijack?
true
rack.input
#<Puma::NullIO:0x00007f9dfd88db30>
rack.logger
#<Rack::NullLogger:0x00007f9dfe8d1be0 @app=#<Rack::Protection::FrameOptions:0x00007f9dfe8d1fa0 @app=#<Rack::Protection::HttpOrigin:0x00007f9dfe8d22c0 @app=#<Rack::Protection::IPSpoofing:0x00007f9dfe8d28b0 @app=#<Rack::Protection::JsonCsrf:0x00007f9dfe8d2978 @app=#<Rack::Protection::PathTraversal:0x00007f9dfe8d2bd0 @app=#<Rack::Protection::XSSHeader:0x00007f9dfe8d2d38 @app=#<AmericanArtCollaborativeSite:0x00007f9dfe14ec10 @current_engine=:ruby, @default_layout=:layout, @preferred_extension=nil, @app=nil, @template_cache=#<Tilt::Cache:0x00007f9dfe14ead0 @cache={[:haml, :"templates/actor.html", {:outvar=>"@_out_buf", :default_encoding=>"utf-8"}, "source"]=>#<Tilt::HamlTemplate:0x00007f9e05e6dd40 @options={:outvar=>"@_out_buf"}, @line=1, @file="source/templates/actor.html.haml", @compiled_method={[:obj]=>#<UnboundMethod: Tilt::CompiledTemplates#__tilt_70158283023120>}, @default_encoding="utf-8", @reader=#<Proc:0x00007f9e05e6db60@/Users/david/.rvm/gems/ruby-2.5.0/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 - uri = settings.redis.get(\"aac:reverse_lookup:\#{id}\")\n - common_artist = JSON.parse(settings.redis.get(\"aac:uri:\#{uri}\"))[\"@graph\"][0] rescue nil\n - if common_artist\n .col-2\n - count = item[\"toybox:common_artist_count\"][\"@value\"]\n - caption = \"\#{first_or_only 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:0x00007f9e05e6d9f8 @options=#<Temple::ImmutableMap:0x00007f9e05e6d0e8 @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:0x00007f9dfe0e7fb0@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:89>], [:Compiler, #<Proc:0x00007f9dfe0e7d58@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:89>], [:"Haml::Escapable", #<Proc:0x00007f9dfe0e7060@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>], [:ControlFlow, #<Proc:0x00007f9dfe0e4388@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>], [:MultiFlattener, #<Proc:0x00007f9dff0ca1f8@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>], [:StaticMerger, #<Proc:0x00007f9dff0bbd10@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>], [:"Haml::Generator", #<Proc:0x00007f9dff0bb798@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>]], @encoding=#<Encoding:UTF-8>, @call_chain=[#<Haml::Parser:0x00007f9e05e6cee0 @options=#<Haml::Options:0x00007f9e05e6ceb8 @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=>" uri = settings.redis.get(\"aac:reverse_lookup:\#{id}\")", :keyword=>nil}) (silent_script {:text=>" common_artist = JSON.parse(settings.redis.get(\"aac:uri:\#{uri}\"))[\"@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 = \"\#{first_or_only 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=>" uri = settings.redis.get(\"aac:reverse_lookup:\#{id}\")", :keyword=>nil}) (silent_script {:text=>" common_artist = JSON.parse(settings.redis.get(\"aac:uri:\#{uri}\"))[\"@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 = \"\#{first_or_only 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=112, parser=#<Haml::Parser:0x00007f9e05e6cee0 ...>, eod=true>, @line=#<struct Haml::Parser::Line whitespace=nil, text="-#", full="-#", index=112, parser=#<Haml::Parser:0x00007f9e05e6cee0 ...>, eod=true>, @tab_up=nil, @flat_spaces=nil>, #<Haml::Compiler:0x00007f9e05e6bb58 @options=#<Haml::Options:0x00007f9e05e6bb30 @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, " uri = settings.redis.get(\"aac:reverse_lookup:\#{id}\")\n"], [:code, " common_artist = JSON.parse(settings.redis.get(\"aac:uri:\#{uri}\"))[\"@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 = \"\#{first_or_only 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:0x00007f9e05e6a668 @is_html=true, @attr_wrapper="'", @escape_attrs=true, @hyphenate_data_attrs=true>, @output_line=113>, #<Haml::Escapable:0x00007f9e05e69d30 @options=#<Temple::ImmutableMap:0x00007f9e05e69998 @map=[{}]>, @escape_code="::Haml::Helpers.html_escape((%s))", @escaper=#<Proc:0x00007f9e05e693a8@(eval):1>, @once_escape_code="::Haml::Helpers.escape_once((%s))", @once_escaper=#<Proc:0x00007f9e05e68ea8@(eval):1>, @escape=false>, #<Temple::Filters::ControlFlow:0x00007f9e05e689d0 @options=#<Temple::ImmutableMap:0x00007f9e05e68728 @map=[{}]>>, #<Temple::Filters::MultiFlattener:0x00007f9e05e680e8 @options=#<Temple::ImmutableMap:0x00007f9e05e67d50 @map=[{}]>>, #<Temple::Filters::StaticMerger:0x00007f9e05e677d8 @options=#<Temple::ImmutableMap:0x00007f9e05e674b8 @map=[{}]>>, #<Haml::Generator:0x00007f9e05e66ea0 @options=#<Temple::ImmutableMap:0x00007f9e05e66cc0 @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; uri = settings.redis.get(\"aac:reverse_lookup:\#{id}\")\n; common_artist = JSON.parse(settings.redis.get(\"aac:uri:\#{uri}\"))[\"@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 = \"\#{first_or_only 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);">>, [:haml, :"toyboxes/related_actors", {:outvar=>"@_out_buf", :default_encoding=>"utf-8"}, "source"]=>#<Tilt::HamlTemplate:0x00007f9e01a52c50 @options={:outvar=>"@_out_buf"}, @line=1, @file="source/toyboxes/related_actors.haml", @compiled_method={[:people]=>#<UnboundMethod: Tilt::CompiledTemplates#__tilt_70158283023120>}, @default_encoding="utf-8", @reader=#<Proc:0x00007f9e01a52700@/Users/david/.rvm/gems/ruby-2.5.0/gems/tilt-2.0.8/lib/tilt/template.rb:85 (lambda)>, @data="- list = get_relationship_list(people)\n- if list.length > 0\n %dl.row\n - list.each do |reltype, links|\n = list_item reltype, links, pluralize: false", @engine=#<Haml::TempleEngine:0x00007f9e01a525e8 @options=#<Temple::ImmutableMap:0x00007f9e01a51eb8 @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/toyboxes/related_actors.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:0x00007f9dfe0e7fb0@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:89>], [:Compiler, #<Proc:0x00007f9dfe0e7d58@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:89>], [:"Haml::Escapable", #<Proc:0x00007f9dfe0e7060@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>], [:ControlFlow, #<Proc:0x00007f9dfe0e4388@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>], [:MultiFlattener, #<Proc:0x00007f9dff0ca1f8@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>], [:StaticMerger, #<Proc:0x00007f9dff0bbd10@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>], [:"Haml::Generator", #<Proc:0x00007f9dff0bb798@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>]], @encoding=#<Encoding:UTF-8>, @call_chain=[#<Haml::Parser:0x00007f9e01a51d00 @options=#<Haml::Options:0x00007f9e01a51cb0 @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/toyboxes/related_actors.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=>" list = get_relationship_list(people)", :keyword=>nil}) (silent_script {:text=>" if list.length > 0", :keyword=>"if"} (tag {:name=>"dl", :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=>" list.each do |reltype, links|", :keyword=>nil} (script {:text=>" list_item reltype, links, pluralize: false", :escape_html=>false, :preserve=>false, :keyword=>nil}))))), @root=(root nil (silent_script {:text=>" list = get_relationship_list(people)", :keyword=>nil}) (silent_script {:text=>" if list.length > 0", :keyword=>"if"} (tag {:name=>"dl", :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=>" list.each do |reltype, links|", :keyword=>nil} (script {:text=>" list_item reltype, links, pluralize: false", :escape_html=>false, :preserve=>false, :keyword=>nil}))))), @flat=false, @filter_buffer=nil, @indentation=" ", @next_line=#<struct Haml::Parser::Line whitespace=nil, text="-#", full="-#", index=5, parser=#<Haml::Parser:0x00007f9e01a51d00 ...>, eod=true>, @line=#<struct Haml::Parser::Line whitespace=nil, text="-#", full="-#", index=5, parser=#<Haml::Parser:0x00007f9e01a51d00 ...>, eod=true>, @tab_up=nil>, #<Haml::Compiler:0x00007f9e01a50b58 @options=#<Haml::Options:0x00007f9e01a50b30 @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/toyboxes/related_actors.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, " list = get_relationship_list(people)\n"], [:code, " if list.length > 0\n"], [:static, "<dl"], [:multi, [:static, " class='row'"]], [:static, ">\n"], [:code, "\n list.each do |reltype, links|\n"], [:dynamic, "( list_item reltype, links, pluralize: false\n).to_s"], [:static, "\n"], [:code, "end;"], [:static, "</dl>\n"], [:code, "end;"]], @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:0x00007f9dfcb4b738 @is_html=true, @attr_wrapper="'", @escape_attrs=true, @hyphenate_data_attrs=true>, @output_line=6>, #<Haml::Escapable:0x00007f9dfcb4b210 @options=#<Temple::ImmutableMap:0x00007f9dfcb4aec8 @map=[{}]>, @escape_code="::Haml::Helpers.html_escape((%s))", @escaper=#<Proc:0x00007f9dfcb4a6d0@(eval):1>, @once_escape_code="::Haml::Helpers.escape_once((%s))", @once_escaper=#<Proc:0x00007f9dfcb4a1a8@(eval):1>, @escape=false>, #<Temple::Filters::ControlFlow:0x00007f9dfcb49cd0 @options=#<Temple::ImmutableMap:0x00007f9dfcb49a00 @map=[{}]>>, #<Temple::Filters::MultiFlattener:0x00007f9dfcb49410 @options=#<Temple::ImmutableMap:0x00007f9dfcb49168 @map=[{}]>>, #<Temple::Filters::StaticMerger:0x00007f9dfcb48bc8 @options=#<Temple::ImmutableMap:0x00007f9dfcb48768 @map=[{}]>>, #<Haml::Generator:0x00007f9dfcb48088 @options=#<Temple::ImmutableMap:0x00007f9dfcb2bde8 @map=[{:freeze_static=>true}]>>], @precompiled=" list = get_relationship_list(people)\n; if list.length > 0\n; _hamlout.buffer << (\"<dl class='row'>\\n\".freeze);; \n list.each do |reltype, links|\n; _hamlout.buffer << ((( list_item reltype, links, pluralize: false\n).to_s).to_s);; _hamlout.buffer << (\"\\n\".freeze);; end;; _hamlout.buffer << (\"</dl>\\n\".freeze);; end;">>, [:haml, :"toyboxes/item_preview", {:outvar=>"@_out_buf", :default_encoding=>"utf-8"}, "source"]=>#<Tilt::HamlTemplate:0x00007f9e02764088 @options={:outvar=>"@_out_buf"}, @line=1, @file="source/toyboxes/item_preview.haml", @compiled_method={[:id]=>#<UnboundMethod: Tilt::CompiledTemplates#__tilt_70158283023120>}, @default_encoding="utf-8", @reader=#<Proc:0x00007f9e01983f40@/Users/david/.rvm/gems/ruby-2.5.0/gems/tilt-2.0.8/lib/tilt/template.rb:85 (lambda)>, @data="- uri = settings.redis.get(\"aac:reverse_lookup:\#{id}\")\n- obj = JSON.parse(settings.redis.get(\"aac:uri:\#{uri}\"))[\"@graph\"][0] rescue nil\n- if obj\n .item_preview\n = display_image(obj, caption: entity_label(obj), link: true, thumbnail: true, placeholder: true)\n-else\n .item_preview\n = display_image({}, caption: id, link: false, thumbnail: true, placeholder: true)\n", @engine=#<Haml::TempleEngine:0x00007f9e01983c70 @options=#<Temple::ImmutableMap:0x00007f9e01983518 @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/toyboxes/item_preview.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:0x00007f9dfe0e7fb0@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:89>], [:Compiler, #<Proc:0x00007f9dfe0e7d58@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:89>], [:"Haml::Escapable", #<Proc:0x00007f9dfe0e7060@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>], [:ControlFlow, #<Proc:0x00007f9dfe0e4388@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>], [:MultiFlattener, #<Proc:0x00007f9dff0ca1f8@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>], [:StaticMerger, #<Proc:0x00007f9dff0bbd10@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>], [:"Haml::Generator", #<Proc:0x00007f9dff0bb798@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>]], @encoding=#<Encoding:UTF-8>, @call_chain=[#<Haml::Parser:0x00007f9e01983310 @options=#<Haml::Options:0x00007f9e019832e8 @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/toyboxes/item_preview.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=>" uri = settings.redis.get(\"aac:reverse_lookup:\#{id}\")", :keyword=>nil}) (silent_script {:text=>" obj = JSON.parse(settings.redis.get(\"aac:uri:\#{uri}\"))[\"@graph\"][0] rescue nil", :keyword=>nil}) (silent_script {:text=>" if obj", :keyword=>"if"} (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(obj, caption: entity_label(obj), link: true, thumbnail: true, placeholder: true)", :escape_html=>false, :preserve=>false, :keyword=>nil})) (silent_script {:text=>"else", :keyword=>"else"}) (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({}, caption: id, link: false, thumbnail: true, placeholder: true)", :escape_html=>false, :preserve=>false, :keyword=>nil})))), @root=(root nil (silent_script {:text=>" uri = settings.redis.get(\"aac:reverse_lookup:\#{id}\")", :keyword=>nil}) (silent_script {:text=>" obj = JSON.parse(settings.redis.get(\"aac:uri:\#{uri}\"))[\"@graph\"][0] rescue nil", :keyword=>nil}) (silent_script {:text=>" if obj", :keyword=>"if"} (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(obj, caption: entity_label(obj), link: true, thumbnail: true, placeholder: true)", :escape_html=>false, :preserve=>false, :keyword=>nil})) (silent_script {:text=>"else", :keyword=>"else"}) (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({}, caption: id, link: false, thumbnail: true, placeholder: true)", :escape_html=>false, :preserve=>false, :keyword=>nil})))), @flat=false, @filter_buffer=nil, @indentation=" ", @next_line=#<struct Haml::Parser::Line whitespace=nil, text="-#", full="-#", index=8, parser=#<Haml::Parser:0x00007f9e01983310 ...>, eod=true>, @line=#<struct Haml::Parser::Line whitespace=nil, text="-#", full="-#", index=8, parser=#<Haml::Parser:0x00007f9e01983310 ...>, eod=true>, @tab_up=nil>, #<Haml::Compiler:0x00007f9e01981d08 @options=#<Haml::Options:0x00007f9e01981cb8 @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/toyboxes/item_preview.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, " uri = settings.redis.get(\"aac:reverse_lookup:\#{id}\")\n"], [:code, " obj = JSON.parse(settings.redis.get(\"aac:uri:\#{uri}\"))[\"@graph\"][0] rescue nil\n"], [:code, " if obj\n"], [:static, "<div"], [:multi, [:static, " class='item_preview'"]], [:static, ">\n"], [:dynamic, "\n( display_image(obj, caption: entity_label(obj), link: true, thumbnail: true, placeholder: true)\n).to_s"], [:static, "\n"], [:static, "</div>\n"], [:code, "else\n"], [:static, "<div"], [:multi, [:static, " class='item_preview'"]], [:static, ">\n"], [:dynamic, "\n( display_image({}, caption: id, link: false, thumbnail: true, placeholder: true)\n).to_s"], [:static, "\n"], [:static, "</div>\n"], [:code, "end;"]], @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:0x00007f9e01980958 @is_html=true, @attr_wrapper="'", @escape_attrs=true, @hyphenate_data_attrs=true>, @output_line=9>, #<Haml::Escapable:0x00007f9e019803e0 @options=#<Temple::ImmutableMap:0x00007f9e01980110 @map=[{}]>, @escape_code="::Haml::Helpers.html_escape((%s))", @escaper=#<Proc:0x00007f9e0197bae8@(eval):1>, @once_escape_code="::Haml::Helpers.escape_once((%s))", @once_escaper=#<Proc:0x00007f9e0197b610@(eval):1>, @escape=false>, #<Temple::Filters::ControlFlow:0x00007f9e0197b098 @options=#<Temple::ImmutableMap:0x00007f9e0197adc8 @map=[{}]>>, #<Temple::Filters::MultiFlattener:0x00007f9e0197a698 @options=#<Temple::ImmutableMap:0x00007f9e0197a3a0 @map=[{}]>>, #<Temple::Filters::StaticMerger:0x00007f9e01979d60 @options=#<Temple::ImmutableMap:0x00007f9e01979ab8 @map=[{}]>>, #<Haml::Generator:0x00007f9e01979540 @options=#<Temple::ImmutableMap:0x00007f9e01979338 @map=[{:freeze_static=>true}]>>], @precompiled=" uri = settings.redis.get(\"aac:reverse_lookup:\#{id}\")\n; obj = JSON.parse(settings.redis.get(\"aac:uri:\#{uri}\"))[\"@graph\"][0] rescue nil\n; if obj\n; _hamlout.buffer << (\"<div class='item_preview'>\\n\".freeze);; _hamlout.buffer << ((\n( display_image(obj, caption: entity_label(obj), link: true, thumbnail: true, placeholder: true)\n).to_s).to_s);; _hamlout.buffer << (\"\\n</div>\\n\".freeze);; else\n; _hamlout.buffer << (\"<div class='item_preview'>\\n\".freeze);; _hamlout.buffer << ((\n( display_image({}, caption: id, link: false, thumbnail: true, placeholder: true)\n).to_s).to_s);; _hamlout.buffer << (\"\\n</div>\\n\".freeze);; end;">>, [:haml, :"toyboxes/work_grid", {:outvar=>"@_out_buf", :default_encoding=>"utf-8"}, "source"]=>#<Tilt::HamlTemplate:0x00007f9e02700790 @options={:outvar=>"@_out_buf"}, @line=1, @file="source/toyboxes/work_grid.haml", @compiled_method={[:title, :works]=>#<UnboundMethod: Tilt::CompiledTemplates#__tilt_70158283023120>}, @default_encoding="utf-8", @reader=#<Proc:0x00007f9e02700650@/Users/david/.rvm/gems/ruby-2.5.0/gems/tilt-2.0.8/lib/tilt/template.rb:85 (lambda)>, @data="- split_works = split_by_owner(works)\n- split_works.each do |owner, owners_works|\n %section.container-fluid.toybox.featured_items\n .container\n .row\n .col\n %h3 Objects at \#{owner} (\#{owners_works.count})\n .row\n - owners_works.each do |item|\n .col-2\n = haml \"toyboxes/item_preview\".to_sym, layout: false, locals: {id: item[\"id\"]} \n", @engine=#<Haml::TempleEngine:0x00007f9e02700560 @options=#<Temple::ImmutableMap:0x00007f9e026fbe48 @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/toyboxes/work_grid.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:0x00007f9dfe0e7fb0@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:89>], [:Compiler, #<Proc:0x00007f9dfe0e7d58@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:89>], [:"Haml::Escapable", #<Proc:0x00007f9dfe0e7060@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>], [:ControlFlow, #<Proc:0x00007f9dfe0e4388@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>], [:MultiFlattener, #<Proc:0x00007f9dff0ca1f8@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>], [:StaticMerger, #<Proc:0x00007f9dff0bbd10@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>], [:"Haml::Generator", #<Proc:0x00007f9dff0bb798@/Users/david/.rvm/gems/ruby-2.5.0/gems/temple-0.8.0/lib/temple/mixins/engine_dsl.rb:76>]], @encoding=#<Encoding:UTF-8>, @call_chain=[#<Haml::Parser:0x00007f9e026fbcb8 @options=#<Haml::Options:0x00007f9e026fbc90 @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/toyboxes/work_grid.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=>" split_works = split_by_owner(works)", :keyword=>nil}) (silent_script {:text=>" split_works.each do |owner, owners_works|", :keyword=>nil} (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=>"\"Objects at \#{owner} (\#{owners_works.count})\""}))) (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} (silent_script {:text=>" owners_works.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})))))))), @root=(root nil (silent_script {:text=>" split_works = split_by_owner(works)", :keyword=>nil}) (silent_script {:text=>" split_works.each do |owner, owners_works|", :keyword=>nil} (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=>"\"Objects at \#{owner} (\#{owners_works.count})\""}))) (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} (silent_script {:text=>" owners_works.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})))))))), @flat=false, @filter_buffer=nil, @indentation=" ", @next_line=#<struct Haml::Parser::Line whitespace=nil, text="-#", full="-#", index=11, parser=#<Haml::Parser:0x00007f9e026fbcb8 ...>, eod=true>, @line=#<struct Haml::Parser::Line whitespace=nil, text="-#", full="-#", index=11, parser=#<Haml::Parser:0x00007f9e026fbcb8 ...>, eod=true>, @tab_up=nil>, #<Haml::Compiler:0x00007f9e026fab10 @options=#<Haml::Options:0x00007f9e026faae8 @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/toyboxes/work_grid.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, " split_works = split_by_owner(works)\n"], [:code, " split_works.each do |owner, owners_works|\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, "(\"Objects at \#{owner} (\#{owners_works.count})\"\n).to_s"], [:static, "</h3>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "<div"], [:multi, [:static, " class='row'"]], [:static, ">\n"], [:code, "\n owners_works.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;"]], @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:0x00007f9e026f9968 @is_html=true, @attr_wrapper="'", @escape_attrs=true, @hyphenate_data_attrs=true>, @output_line=12>, #<Haml::Escapable:0x00007f9e026f9468 @options=#<Temple::ImmutableMap:0x00007f9e026f9170 @map=[{}]>, @escape_code="::Haml::Helpers.html_escape((%s))", @escaper=#<Proc:0x00007f9e026f8c20@(eval):1>, @once_escape_code="::Haml::Helpers.escape_once((%s))", @once_escaper=#<Proc:0x00007f9e026f8720@(eval):1>, @escape=false>, #<Temple::Filters::ControlFlow:0x00007f9e026f8220 @options=#<Temple::ImmutableMap:0x00007f9e026f3ef0 @map=[{}]>>, #<Temple::Filters::MultiFlattener:0x00007f9e026f3888 @options=#<Temple::ImmutableMap:0x00007f9e026f3608 @map=[{}]>>, #<Temple::Filters::StaticMerger:0x00007f9e026f2ff0 @options=#<Temple::ImmutableMap:0x00007f9e026f2ca8 @map=[{}]>>, #<Haml::Generator:0x00007f9e026f2690 @options=#<Temple::ImmutableMap:0x00007f9e026f2488 @map=[{:freeze_static=>true}]>>], @precompiled=" split_works = split_by_owner(works)\n; split_works.each do |owner, owners_works|\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 << (((\"Objects at \#{owner} (\#{owners_works.count})\"\n).to_s).to_s);; _hamlout.buffer << (\"</h3>\\n</div>\\n</div>\\n<div class='row'>\\n\".freeze);; \n owners_works.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;">>}>>, @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:0x00007f9e020f0e68 @entry="*/*", @type="*/*", @params={}, @q=1.0>]
sinatra.error
#<TypeError: no implicit conversion of String into Integer>
sinatra.error.params
{"production"=>"true", "captures"=>["actor/ulan/500012432", "html"], "slug"=>"actor/ulan/500012432", "extension"=>"html"}
sinatra.route
GET \/(?<slug>.+?)(?:\.(?<extension>html|json|jsonld|ttl))?

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