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

From Culture.si
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&{{CURRENTTIMESTAMP}}}}
 
| each =
 
| each =
  
 +
<!--
 +
{ {#show: {{{producer|}}} | ?Founded by } }
 +
-->
  
{{#var:inc|importCounter}}
+
{{#data:set  
{{#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.
 

Revision as of 17:28, 24 August 2016

{{#arr:dataloop | 1ca36c5dc0a1e6f5f768eccb654a0939 | each =