Difference between revisions of "Culture.si:EUProjects/Import"

From Culture.si
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#var:set|importCounter|0}}
 
 
{{#arr:dataloop
 
{{#arr:dataloop
| {{#fetch:gsx|0AuYd3j1jRiN4dE9HcXVYQUxVVmNUZ195Zm9BLVJPUVE|od4}}
+
| {{#fetch:json|http://ced-slovenia.eu/project/feed/?format=infografika&cb{{CURRENTTIMESTAMP}}}}
 
| each =
 
| each =
  
 
+
{{#data:set  
{{#var:inc|importCounter}}
 
{{#data:set
 
 
|EUProject
 
|EUProject
 
|_{{#str:random}}{{#str:random}}  
 
|_{{#str:random}}{{#str:random}}  
|name = {{{gsx$nazivprojektaeng}}}
+
|name = {{{name}}}
|name_slo = {{{gsx$nazivprojektaslo}}}
+
|name_slo = {{{name_slo}}}
|url = {{{gsx$urlprojekta}}}
+
|url = {{{url}}}
|ccp = {{{gsx$urlodccp}}}
+
|ccp = {{{ccp}}}
|producer = {{#title:fullpagenamek|{{#str:replace|{{{gsx$culture.sipovezava-krovnaorganizacijaproducentprojekta}}}|http://www.culture.si/en/|}}}}
+
|producer = {{{producer|}}}
|department = {{#title:fullpagenamek|{{#str:replace|{{{gsx$culture.sipovezava-enotaizvajalecprojekta}}}|http://www.culture.si/en/|}}}}
+
|producer_slo = {{{producer_slo|}}}
|department_slo = {{#show: {{#title:fullpagenamek|{{#str:replace|{{{gsx$culture.sipovezava-enotaizvajalecprojekta}}}|http://www.culture.si/en/|}}}} | ?Contact}}
+
|status = {{{status|}}}
|department_link = {{{gsx$culture.sipovezava-enotaizvajalecprojekta}}}
+
|department = {{{department|}}}
|status = {{{gsx$statusorganizacijejavnazasebna}}}
+
|department_slo = {{{department_slo|}}}
|role = {{{gsx$statusorganizacijeproducentavprojektuvodjapartner}}}
+
|role = {{{role}}}
|year = {{{gsx$letorazpisakosepridobipodporaeu}}}
+
|year = {{{year}}}
|category = {{{gsx$področjeprojektaf}}}
+
|category = {{{category}}}
|eu_program = {{{gsx$imeprogramaeu}}}
+
|eu_program = {{{eu_program}}}
 
}}
 
}}
  
 
}}
 
}}
 
{{#var:get|importCounter}} records imported.
 

Latest revision as of 21:40, 24 August 2016