{"action":"created","issue":{"url":"https://api.github.com/repos/ioos/catalog-ckan/issues/97","repository_url":"https://api.github.com/repos/ioos/catalog-ckan","labels_url":"https://api.github.com/repos/ioos/catalog-ckan/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/ioos/catalog-ckan/issues/97/comments","events_url":"https://api.github.com/repos/ioos/catalog-ckan/issues/97/events","html_url":"https://github.com/ioos/catalog-ckan/issues/97","id":190102343,"number":97,"title":"Add some logic to reorder CI_OnlineResource links","user":{"login":"mwengren","id":1469921,"avatar_url":"https://avatars.githubusercontent.com/u/1469921?v=3","gravatar_id":"","url":"https://api.github.com/users/mwengren","html_url":"https://github.com/mwengren","followers_url":"https://api.github.com/users/mwengren/followers","following_url":"https://api.github.com/users/mwengren/following{/other_user}","gists_url":"https://api.github.com/users/mwengren/gists{/gist_id}","starred_url":"https://api.github.com/users/mwengren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwengren/subscriptions","organizations_url":"https://api.github.com/users/mwengren/orgs","repos_url":"https://api.github.com/users/mwengren/repos","events_url":"https://api.github.com/users/mwengren/events{/privacy}","received_events_url":"https://api.github.com/users/mwengren/received_events","type":"User","site_admin":false},"labels":[{"id":353615951,"url":"https://api.github.com/repos/ioos/catalog-ckan/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/ioos/catalog-ckan/milestones/5","html_url":"https://github.com/ioos/catalog-ckan/milestones/Catalog%20Release%20%231%20(data.ioos.us)","labels_url":"https://api.github.com/repos/ioos/catalog-ckan/milestones/5/labels","id":1921551,"number":5,"title":"Catalog Release #1 (data.ioos.us)","description":"Release the IOOS CKAN Catalog (data.ioos.us), based on ISO metadata from IOOS data provider WAFs registered via Harvest Registry (registry.ioos.us). ","creator":{"login":"kknee","id":196868,"avatar_url":"https://avatars.githubusercontent.com/u/196868?v=3","gravatar_id":"","url":"https://api.github.com/users/kknee","html_url":"https://github.com/kknee","followers_url":"https://api.github.com/users/kknee/followers","following_url":"https://api.github.com/users/kknee/following{/other_user}","gists_url":"https://api.github.com/users/kknee/gists{/gist_id}","starred_url":"https://api.github.com/users/kknee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kknee/subscriptions","organizations_url":"https://api.github.com/users/kknee/orgs","repos_url":"https://api.github.com/users/kknee/repos","events_url":"https://api.github.com/users/kknee/events{/privacy}","received_events_url":"https://api.github.com/users/kknee/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":17,"state":"open","created_at":"2016-08-03T18:17:34Z","updated_at":"2016-11-17T17:04:01Z","due_on":"2016-12-14T00:00:00Z","closed_at":null},"comments":1,"created_at":"2016-11-17T16:53:40Z","updated_at":"2016-11-17T17:51:02Z","closed_at":null,"body":"It's possible to tweak the CKAN harvesting code to make certain OnlineResource link xpaths in ISO XML appear before others in the 'Data and Resources' section on a dataset detail page. For example, the SOS GetCaps link is at the bottom of list in [this dataset](https://dev-catalog.ioos.us/dataset/king-county-point-williams-buoy-south-seattle).  Ideally, it would be first, above all the others.\n\nThere's no cut-and-dry way to do this because links will appear in various xpath locations depending on data provider, interpretation of ISO, etc. But, we can probably improve what we have.  For example, prioritizing CI_OnlineResource links in SV_ServiceIdentification sections over others will help (and fix the above in that case).  \n\nHere's what I did for the NOAA Catalog:\n\nhttps://github.com/mwengren/ckanext-spatial/blob/noaa_dev_18f/ckanext/spatial/harvesters/base.py#L410-L416 \n\nand \nhttps://github.com/mwengren/ckanext-spatial/blob/noaa_dev_18f/ckanext/spatial/model/harvested_metadata.py#L898-L945\n\nIt seemed to work pretty well for some metadata sampled from the NOAA Catalog.  Can we look into doing something similar or just copying this?"},"comment":{"url":"https://api.github.com/repos/ioos/catalog-ckan/issues/comments/261318190","html_url":"https://github.com/ioos/catalog-ckan/issues/97#issuecomment-261318190","issue_url":"https://api.github.com/repos/ioos/catalog-ckan/issues/97","id":261318190,"user":{"login":"lukecampbell","id":1155163,"avatar_url":"https://avatars.githubusercontent.com/u/1155163?v=3","gravatar_id":"","url":"https://api.github.com/users/lukecampbell","html_url":"https://github.com/lukecampbell","followers_url":"https://api.github.com/users/lukecampbell/followers","following_url":"https://api.github.com/users/lukecampbell/following{/other_user}","gists_url":"https://api.github.com/users/lukecampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/lukecampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukecampbell/subscriptions","organizations_url":"https://api.github.com/users/lukecampbell/orgs","repos_url":"https://api.github.com/users/lukecampbell/repos","events_url":"https://api.github.com/users/lukecampbell/events{/privacy}","received_events_url":"https://api.github.com/users/lukecampbell/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T17:51:02Z","updated_at":"2016-11-17T17:51:02Z","body":"sure, looks easy. Thanks for the code!"}}
{"actor":{"display_login":"lukecampbell"}}