Changeset 895 for branches/prototype-v0


Ignore:
Timestamp:
Jan 15, 2019, 1:21:46 PM (6 years ago)
Author:
djay
Message:

Add download_link nested output for every complex data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/prototype-v0/zoo-project/zoo-kernel/service_internal_hpc.c

    r894 r895  
    163163    }else{
    164164      if(mimeType!=NULL){
    165         elements *tmp=dupElements(cur);
    166         tmp->name=zStrdup("download_link");
    167         tmp->content=createMap("Title",_("Download link"));
    168         addToMap(tmp->content,"Abstract",_("The download link"));
    169         addToMap(tmp->defaults->content,"useMapserver","false");
    170         if(tmp->supported!=NULL){
    171           freeIOType(&tmp->supported);
    172           free(tmp->supported);
    173           tmp->supported=NULL;
    174         }
     165        elements *tmp=dupElements(cur);
     166        tmp->name=zStrdup("download_link");
     167        tmp->content=createMap("Title",_("Download link"));
     168        addToMap(tmp->content,"Abstract",_("The download link"));
     169        addToMap(tmp->defaults->content,"useMapserver","false");
     170        if(tmp->supported!=NULL){
     171          freeIOType(&tmp->supported);
     172          free(tmp->supported);
     173          tmp->supported=NULL;
     174        }
     175        addToElements(&cur->child,tmp);
     176        free(cur->format);
     177        cur->format=NULL;
     178        if(cur->defaults!=NULL){
     179          freeIOType(&cur->defaults);
     180          free(cur->defaults);
     181          cur->defaults=NULL;
     182        }
     183        if(cur->supported!=NULL){
     184          freeIOType(&cur->supported);
     185          free(cur->supported);
     186          cur->supported=NULL;
     187        }
     188        freeElements(&tmp);
     189        free(tmp);
    175190      }
    176191    }
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png