diff --git a/app/models/archon_subject.rb b/app/models/archon_subject.rb index e046435b..724bf837 100644 --- a/app/models/archon_subject.rb +++ b/app/models/archon_subject.rb @@ -25,7 +25,10 @@ def self.transform(rec) end def self.get_source_id(rec) - if rec['SubjectSourceID'] && rec['ParentID'] == '0' + if rec.nil? + # return the ID for local subject source + return 5 + elsif rec['SubjectSourceID'] && rec['ParentID'] == '0' return rec['SubjectSourceID'] else get_source_id(rec['Parent']) diff --git a/app/views/index.erb b/app/views/index.erb index 5a11226f..433c92ac 100644 --- a/app/views/index.erb +++ b/app/views/index.erb @@ -1,4 +1,4 @@ -