Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken fact sheets URLs in SEAFO info pop-up #135

Open
fabio2111 opened this issue Dec 1, 2014 · 1 comment
Open

Broken fact sheets URLs in SEAFO info pop-up #135

fabio2111 opened this issue Dec 1, 2014 · 1 comment

Comments

@fabio2111
Copy link

The links to the fact sheets from the search results are working but those links in the info pop-up return a system error page

This occurs at least for Kreps seamount (VME_SEAFO_196) and Unnamed number 17 (VME_SEAFO_198), but the webservice is returning the proper URL http://www.fao.org/figis/ws/vme/webservice/get?inventoryIdentifier=VME_SEAFO_196 or http://www.fao.org/figis/ws/vme/webservice/get?inventoryIdentifier=VME_SEAFO_196&year=2014

@tdipisa
Copy link
Member

tdipisa commented Dec 1, 2014

Investigating on the problem I saw that as required few time ago (probably this summer), we use
the URL below for the popup:

http://www.fao.org/figis/ws/vme/webservice/vme/VME_SEAFO_196/specificmeasure

that generates a different output in respect to the URL you have provided in this issue:

http://www.fao.org/figis/ws/vme/webservice/get?inventoryIdentifier=VME_SEAFO_196

Which URL we have to use ?

For the first one we have the output below:

{
"uuid":"3ac9f979-d51d-4fa4-98ec-0e132c90e343",
"note":"These are all the Specific Measure for the Vme",
"vmeId":24282,
"localName":"Kreps seamount",
"inventoryIdentifier":"VME_SEAFO_196",
"geoArea":"Southeast Atlantic",
"owner":"South East Atlantic Fisheries Organisation",
"vmeType":"Closed area (SEAFO)",
"responseList":[
{
"text":"All fishing activities for fisheries resources covered by the SEAFO Convention shall be prohibited from 1 January 2011 in the areas defined in Annex 1 of this Conservation Measure. (CM 18/10). Area: (Kreps seamount), Number 16 on the attached map – considered to be unexploited. Coordinates: 13o00’S 15o05’W, 12o44’S 14o10’W, 15o43’S 12o40’W, 16o34’S 13o13’W, 18o32’S 12o10’W, 18o46’S 13o18’W, 17o10’S 14o46’W, 16o20’S 14o46’W ,16o05’S 13o50’W",
"year":2010,
"validityPeriodStart":"2011-01-01",
"validityPeriodEnd":"9999-12-31",
"reviewYear":0,
"sourceURL":"http://www.seafo.org/Documents/Conservation-Measures",
"factsheetURL":""
}
]
}

For the second one the output below instead (the same returned from the advanced search tool):

{
"request":{
"uuid":"a7e49eb4-e1e5-4422-97c7-c46c8a3f02a7",
"id":0,
"authority":0,
"type":0,
"criteria":0,
"year":0,
"geographicFeatureId":null,
"inventoryIdentifier":"VME_SEAFO_196",
"text":null
},
"resultList":[
{
"vmeId":24282,
"scope":"VME",
"localName":"Kreps seamount",
"inventoryIdentifier":"VME_SEAFO_196",
"factsheetUrl":"fishery/vme/24282/168123/en",
"geoArea":"Southeast Atlantic",
"owner":"South East Atlantic Fisheries Organisation",
"vmeType":"Closed area (SEAFO)",
"geographicFeatureId":"VME_SEAFO_196_2011",
"year":2011,
"envelope":"",
"validityPeriodFrom":"2011-01-01",
"validityPeriodTo":"9999-12-31"
}
],
"totalResult":1
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants