-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge dev into master
- Loading branch information
Showing
32 changed files
with
967 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
app/serializers/yoksis/resumes/academic_duties_serializer.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# frozen_string_literal: true | ||
|
||
module Yoksis | ||
module Resumes | ||
class AcademicDutiesSerializer < Serializer | ||
attribute(:duty_id) { object[:gorev_id].safe_to_i } | ||
attribute(:title_id) { object[:kadro_unvan_id].safe_to_i } | ||
attribute(:title_name) { object[:kadro_unvan_adi].titleize_tr } | ||
attribute(:place_id) { object[:yer_id].safe_to_i } | ||
attribute(:place_name) { object[:yer_ad].titleize_tr } | ||
attribute(:country_id) { object[:ulke_id].safe_to_i } | ||
attribute(:country_name) { object[:ulke_ad].titleize_tr } | ||
attribute(:year_of_start) { object[:bastar1].safe_to_i } | ||
attribute(:year_of_end) { object[:bittar1].safe_to_i } | ||
attribute(:scientific_field_name) { object[:bilimalan_adi].titleize_tr } | ||
attribute(:university_id) { object[:univ_id].safe_to_i } | ||
attribute(:university_name) { object[:univ_birim_adi].titleize_tr } | ||
attribute(:faculty) { object[:fakultebilgisi].titleize_tr } | ||
attribute(:department) { object[:bolumbilgisi].titleize_tr } | ||
attribute(:field) { object[:alanbilgisi].titleize_tr } | ||
attribute(:field_of_specialization_id) { object[:uzmanlik_alani].safe_to_i } | ||
attribute(:field_of_specialization_name) { object[:uzmanlik_alani_ad].titleize_tr } | ||
attribute(:unit_id) { object[:birim_id].safe_to_i } | ||
attribute(:academic_status_id) { object[:akademik_durum].safe_to_i } | ||
attribute(:academic_status_name) { object[:akademik_durum_adi].titleize_tr } | ||
attribute(:academic_unit_name) { object[:akademik_birim_adi].titleize_tr } | ||
attribute(:active_or_passive_id) { object[:aktif_pasif].safe_to_i } | ||
attribute(:active_or_passive_name) { object[:aktif_pasif_ad].titleize_tr } | ||
attribute(:date_of_update) { object[:guncelleme_tarihi] && Time.zone.parse(object[:guncelleme_tarihi]) } | ||
end | ||
end | ||
end |
15 changes: 15 additions & 0 deletions
15
app/serializers/yoksis/resumes/academic_links_serializer.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# frozen_string_literal: true | ||
|
||
module Yoksis | ||
module Resumes | ||
class AcademicLinksSerializer < Serializer | ||
attribute(:researcher_id) { object[:arastirmaci_id].safe_to_i } | ||
attribute(:staff_first_name) { object[:personel_adi].titleize_tr } | ||
attribute(:staff_last_name) { object[:personel_soyadi].titleize_tr } | ||
attribute(:staff_title) { object[:kadro_unvan_adi].titleize_tr } | ||
attribute(:staff_workplace) { object[:kadro_yeri].titleize_tr } | ||
attribute(:yok_link) { object[:yokakademik_link] } | ||
attribute(:photograph_link) { object[:resim_link] } | ||
end | ||
end | ||
end |
25 changes: 25 additions & 0 deletions
25
app/serializers/yoksis/resumes/administrative_duties_serializer.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# frozen_string_literal: true | ||
|
||
module Yoksis | ||
module Resumes | ||
class AdministrativeDutiesSerializer < Serializer | ||
attribute(:registry_id) { object[:idgor_id].safe_to_i } | ||
attribute(:duty_id) { object[:gorev_id].safe_to_i } | ||
attribute(:name) { object[:gorev_adi].titleize_tr } | ||
attribute(:place_id) { object[:yer_id].safe_to_i } | ||
attribute(:place_name) { object[:yer_ad].titleize_tr } | ||
attribute(:country_id) { object[:ulke_id].safe_to_i } | ||
attribute(:country_name) { object[:ulke_ad].titleize_tr } | ||
attribute(:year_of_start) { object[:bas_tar].safe_to_i } | ||
attribute(:year_of_end) { object[:bit_tar].safe_to_i } | ||
attribute(:university_id) { object[:unv_id].safe_to_i } | ||
attribute(:university_name) { object[:unv_birim_adi].titleize_tr } | ||
attribute(:major) { object[:abd].titleize_tr } | ||
attribute(:faculty) { object[:fakultemyoenst].titleize_tr } | ||
attribute(:department) { object[:bolumbilgisi].titleize_tr } | ||
attribute(:active_or_passive_id) { object[:aktif_pasif].safe_to_i } | ||
attribute(:active_or_passive_name) { object[:aktif_pasif_ad].titleize_tr } | ||
attribute(:date_of_update) { object[:guncelleme_tarihi] && Time.zone.parse(object[:guncelleme_tarihi]) } | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.