Modify Links model to generate GetCapabilities links for WMS, WFS, WCS 

__What does this PR do?__

Changes Link instances created in geoserver_post_save to add URLs for valid GetCapabilities requests instead of the generic /geoserver/wms and /geoserver/wfs URLs that were used previously.  Also removes the 'OWS' name Link from the link set associated with a ResourceBase and updates the ResourceBase.get_ows_url() to return the WMS GetCapabilties link instead.

Updates the template full_metadata.xml in catalogue app so that  ISO XML responses will include these links (in addition to the 'data' and 'image' type links it already does).  This is useful for downstream clients of the CS-W service to be able to recognize and provide better representation of resources in GeoNode.
Excellent!
Thanks a lot!

G

On 14 Aug 2014, at 19:18, Tom Kralidis <notifications@github.com> wrote:

> In geonode/catalogue/templates/catalogue/full_metadata.xml:
> 
> > @@ -325,6 +325,24 @@
> >               </gmd:CI_OnlineResource>
> >             </gmd:onLine>
> >             {% endfor %}
> > +           {% for link in layer.link_set.ows %}
> > +           <gmd:onLine>
> > +             <gmd:CI_OnlineResource>
> > +               <gmd:linkage>
> > +                 <gmd:URL>{{link.url}}</gmd:URL>
> > +               </gmd:linkage>
> > +               <gmd:protocol>
> > +                 <gco:CharacterString>WWW:DOWNLOAD-1.0-http--download</gco:CharacterString>
> i.e.
> 
> <gmd:protocol>
>  <gco:CharacterString>{{link.link_type}}</gco:CharacterString>
> —
> Reply to this email directly or view it on GitHub.
> 

---
Dr. Gregory Giuliani
Scientific collaborator - Spatial Data Infrastructure
http://www.unige.ch/envirospace/People/giuliani.html
**************************************************************
University of Geneva
Institute for Environmental Sciences/enviroSPACE
7 route de Drize, CH - 1227 CAROUGE
Phone: (+41 22) 379 07 09 Fax: (+41 22) 379 07 44
Web: http://www.unige.ch/envirospace
Email: gregory.giuliani@unige.ch
**************************************************************
UNEP/DEWA/GRID-Geneva
International Environment House
11, chemin des Anémones, CH - 1219 CHATELAINE
Phone: (+41 22) 917 84 17 Fax: (+41 22) 917 80 29
Web: http://www.grid.unep.ch
Email: gregory.giuliani@unepgrid.ch
**************************************************************