Skip to content

Commit 1e7e63e

Browse files
committed
Fixed blank organizer in bioschemas
1 parent a3713a8 commit 1e7e63e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/bioschemas/course_instance_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def self.type
66

77
property :startDate, :start
88
property :endDate, :end
9-
property :organizer, -> (event) { { '@type' => 'Organization', name: event.organizer } if event.organizer }
9+
property :organizer, -> (event) { { '@type' => 'Organization', name: event.organizer } if event.organizer.present? }
1010
property :location, -> (event) {
1111
{
1212
'@type' => 'PostalAddress',

lib/bioschemas/event_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def self.type
1111
property :keywords, :keywords
1212
property :startDate, :start
1313
property :endDate, :end
14-
property :organizer, -> (event) { { '@type' => 'Organization', name: event.organizer } if event.organizer }
14+
property :organizer, -> (event) { { '@type' => 'Organization', name: event.organizer } if event.organizer.present? }
1515
property :location, -> (event) {
1616
{
1717
'@type' => 'PostalAddress',

0 commit comments

Comments
 (0)