diff --git a/lib/ingestors/taxila/dcc_ingestor.rb b/lib/ingestors/taxila/dcc_ingestor.rb index 6dd92c05d..0ea0bae17 100644 --- a/lib/ingestors/taxila/dcc_ingestor.rb +++ b/lib/ingestors/taxila/dcc_ingestor.rb @@ -52,6 +52,7 @@ def process_dcc(url) event.timezone = 'Amsterdam' event.set_default_times + event.target_audience = parse_audience(event.description) add_event(event) rescue Exception => e @messages << "Extract event fields failed with: #{e.message}" diff --git a/lib/ingestors/taxila/osci_ingestor.rb b/lib/ingestors/taxila/osci_ingestor.rb index 5843d0cd4..ca107e98e 100644 --- a/lib/ingestors/taxila/osci_ingestor.rb +++ b/lib/ingestors/taxila/osci_ingestor.rb @@ -65,6 +65,7 @@ def process_osci(_url) event.source = 'OSCI' event.timezone = 'Amsterdam' event.set_default_times + event.target_audience = parse_audience(event.description) add_event(event) end diff --git a/lib/ingestors/taxila/rst_ingestor.rb b/lib/ingestors/taxila/rst_ingestor.rb index 8d561b0aa..b14e8d856 100644 --- a/lib/ingestors/taxila/rst_ingestor.rb +++ b/lib/ingestors/taxila/rst_ingestor.rb @@ -36,6 +36,7 @@ def process_rst(_url) parent = el.parent material.url = parent.css('.wp-block-buttons > .wp-block-button > a').first.get_attribute('href') material.description = rst_recursive_description_func(parent.css('p')) + material.target_audience = parse_audience(material.description) add_material(material) rescue Exception => e @messages << "Extract event fields failed with: #{e.message}" diff --git a/lib/ingestors/taxila/sense_ingestor.rb b/lib/ingestors/taxila/sense_ingestor.rb index 144431f48..4fbeac157 100644 --- a/lib/ingestors/taxila/sense_ingestor.rb +++ b/lib/ingestors/taxila/sense_ingestor.rb @@ -63,6 +63,7 @@ def process_sense(url) event.timezone = 'Amsterdam' event.set_default_times + event.target_audience = parse_audience(event.description) add_event(event) rescue Exception => e @messages << "Extract event fields failed with: #{e.message}" diff --git a/lib/ingestors/taxila/uhasselt_ingestor.rb b/lib/ingestors/taxila/uhasselt_ingestor.rb index 899c3f8c1..019d7be18 100644 --- a/lib/ingestors/taxila/uhasselt_ingestor.rb +++ b/lib/ingestors/taxila/uhasselt_ingestor.rb @@ -88,6 +88,7 @@ def process_uhasselt(url) event.source = 'UHasselt' event.timezone = 'Amsterdam' + event.target_audience = parse_audience(event.description) add_event(event) rescue Exception => e diff --git a/lib/ingestors/taxila/vu_material_ingestor.rb b/lib/ingestors/taxila/vu_material_ingestor.rb index 2d13fb9c3..33acd6d38 100644 --- a/lib/ingestors/taxila/vu_material_ingestor.rb +++ b/lib/ingestors/taxila/vu_material_ingestor.rb @@ -63,6 +63,7 @@ def process_vu(url) material.title = val['Title'] material.url = "https://vu.nl#{val['Url']}" material.description = val['IntroText'] + material.target_audience = parse_audience(material.description) add_material(material) rescue Exception => e @messages << "Extract event fields failed with: #{e.message}"