This commit is contained in:
BoHung Chiu 2023-04-10 16:22:02 +08:00
parent 7fb3c9386b
commit f6dc36e194
1 changed files with 11 additions and 11 deletions

View File

@ -75,7 +75,7 @@ module AsiaSyncPlugin
end
# 研討會論文
def self.sync_conference_papers(query_result, user)
def self.sync_conference_papers(query_result, member)
puts "Conference Paper for user: #{self.user_id(member)}"
conference_papers = query_result["conference"].to_a
if !query_result['emp'].blank?
@ -98,7 +98,7 @@ module AsiaSyncPlugin
end
# 研究計畫 Research Grants
def self.sync_projects(query_result, user)
def self.sync_projects(query_result, member)
puts "Projects(Research Grants) for user: #{self.user_id(member)}"
projects = query_result["research"].to_a
if !query_result['emp'].blank?
@ -123,7 +123,7 @@ module AsiaSyncPlugin
end
# 專書 books
def self.sync_books(query_result, user)
def self.sync_books(query_result, member)
puts "books for user: #{self.user_id(member)}"
books = query_result["books"].to_a
books1 = query_result["books1"].to_a
@ -167,7 +167,7 @@ module AsiaSyncPlugin
end
end
#專利 Patents
def self.sync_patents(query_result, user)
def self.sync_patents(query_result, member)
puts "Patents for user: #{self.user_id(member)}"
patents = query_result["patent"].to_a
if !query_result['emp'].blank?
@ -193,7 +193,7 @@ module AsiaSyncPlugin
end
end
#獲獎(榮譽) Award
def self.sync_honors(query_result, user)
def self.sync_honors(query_result, member)
puts "Honors(Awards) for user: #{self.user_id(member)}"
honors = query_result["award"].to_a
if !query_result['emp'].blank?
@ -212,7 +212,7 @@ module AsiaSyncPlugin
end
end
#教師參與展演活動(展演) Show
def self.sync_activities(query_result, user)
def self.sync_activities(query_result, member)
puts "Activities(Shows) for user: #{self.user_id(member)}"
activities = query_result["show"].to_a
if !query_result['emp'].blank?
@ -235,7 +235,7 @@ module AsiaSyncPlugin
end
end
#授課課程(教學資料) Course Information
def self.sync_courses(query_result, user)
def self.sync_courses(query_result, member)
puts "Courses(Course Information) for user: #{self.user_id(member)}"
courses = query_result["cos_data"].to_a
if !query_result['emp'].blank?
@ -276,7 +276,7 @@ module AsiaSyncPlugin
end
end
#指導論文(個人研究) Thesis Advisor
def self.sync_researches(query_result, user)
def self.sync_researches(query_result, member)
puts "Researches(Thesis Advisor) for user: #{self.user_id(member)}"
researches = query_result["paper_data"].to_a
if !query_result['emp'].blank?
@ -298,7 +298,7 @@ module AsiaSyncPlugin
end
end
#創作 Create design
def self.sync_create_designs(query_result, user)
def self.sync_create_designs(query_result, member)
puts "Create Designs for user: #{self.user_id(member)}"
create_designs = query_result["create"].to_a
if !query_result['emp'].blank?
@ -317,7 +317,7 @@ module AsiaSyncPlugin
end
end
#技術轉移
def self.sync_tec_transfers(query_result, user)
def self.sync_tec_transfers(query_result, member)
puts "Technology Transfers for user: #{self.user_id(member)}"
tec_transfers = query_result["tec_transfer"].to_a
if !query_result['emp'].blank?
@ -341,7 +341,7 @@ module AsiaSyncPlugin
end
end
#指導大專生計畫 College Student Participation in Research Projects
def self.sync_college_projects(query_result, user)
def self.sync_college_projects(query_result, member)
puts "College Projects for user: #{self.user_id(member)}"
college_projects = query_result["college_data"].to_a
if !query_result['emp'].blank?