You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.
//This scripts maps people form ogov-data to the popolo standard http://popoloproject.com
//It takes the ogovPerson variable and outputs a popoloPerson
var popoloPerson = {
name: ogovPerson.name,
other_names: [
{
name: ogovPerson.user
note: "Username"
},
email: ogovPerson.email,
image: ogovPerson.pictureUrl,
summary: ogovPerson.role,
national_identity: "Argentino", //Podemos estar seguros de que todos los legisladores son argentinos?
contact_details: [
{
type: "email"
label: "Correo electrónico oficial"
value: ogovPerson.email
note: window.undefined
}
],
popolo.links: window.undefined, // Podemos incluir aquí el link a la página oficial en el congreso?
popolo.comittees: ogovPerson.comittees //Para comittees en realidad lo que hay que hacer es crear relationships en PopIt con la API de popit. Así que vamos a guardarlas así y después cuando lo parseamos creamos la relación.