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

Create a urireferencer widget #1

Closed
koenedaele opened this issue Nov 26, 2015 · 5 comments
Closed

Create a urireferencer widget #1

koenedaele opened this issue Nov 26, 2015 · 5 comments
Assignees
Milestone

Comments

@koenedaele
Copy link
Member

Create a widget that displays information based on a report by UriRegistry. Json looks like this:

{
 "count": 8,
 "applications": [
  {
   "count": 6,
   "success": true,
   "has_references": true,
   "items": [
    {"uri": "https://inventaris.onroerenderfgoed.be/erfgoed/node/deo_gebeurtenis.2", "title": "My excavation"},
    {"uri": "https://inventaris.onroerenderfgoed.be/afbeeldingen/176071", "title": "ID341-Kortrijk-ROLLEGEM"},
    {"uri": "https://inventaris.onroerenderfgoed.be/afbeeldingen/176072", "title": "ID342-Kuurne-StCatharina"},
    {"uri": "https://inventaris.onroerenderfgoed.be/afbeeldingen/176075", "title": "ID348-MENEN,StFranciscus"},
    {"uri": "https://inventaris.onroerenderfgoed.be/afbeeldingen/178043", "title": "Heist-op-den-Berg_Schriek_Leo_Kempenaersstraat_28_01"}
   ],
   "title": "Inventaris Onroerend Erfgoed",
   "uri": "https://inventaris.onroerenderfgoed.be",
   "service_url": "https://inventaris.onroerenderfgoed.be/references"
  }, {
   "count": 0,
   "success": true,
   "has_references": false,
   "items": [],
   "title": "Adviezen",
   "uri": "http://backend-pr-3117:37780/",
   "service_url": "http://backend-pr-3117:37780/references"
  }, {
   "count": 0,
   "success": true,
   "has_references": false,
   "items": [],
   "title": "Beheersplannen",
   "uri": "https://plannen.onroerenderfgoed.be/",
   "service_url": "https://plannen.onroerenderfgoed.be/references"
  }, {
   "count": 2,
   "success": true,
   "has_references": true,
   "items": [
    {"uri": "https://besluiten.onroerenderfgoed.be/besluiten/5426", "title": "Dreef van reuzenlevensboom"},
    {"uri": "https://besluiten.onroerenderfgoed.be/besluiten/1328", "title": "Staakmolen "}
   ],
   "title": "Besluiten",
   "uri": "https://besluiten.onroerenderfgoed.be/",
   "service_url": "https://besluiten.onroerenderfgoed.be/references"
  }
],
 "query_uri": "https://id.erfgoed.net/actoren/1",
 "success": true,
 "has_references": true
}
@koenedaele koenedaele added this to the 0.1.0 milestone Nov 26, 2015
@taeymma
Copy link
Contributor

taeymma commented Nov 26, 2015

@taeymma
Copy link
Contributor

taeymma commented Jan 4, 2016

Why are the applications with 'count: 0' included in the results?

@taeymma
Copy link
Contributor

taeymma commented Jan 4, 2016

The widget only display the info? or also links to the found results?

@koenedaele
Copy link
Member Author

Count 0 is present so a client can be sure that a certain service was queried and gave no results. Possibly because of an error if succes is False. If we didn't show them, we wouldn't be able to tell the difference between not queried and no references.

@koenedaele
Copy link
Member Author

Turning the URIs into links would be good. Please make it clear that we're possibly only showing 5 out of a lot of results.

taeymma pushed a commit that referenced this issue Jan 5, 2016
taeymma pushed a commit that referenced this issue Jan 5, 2016
taeymma pushed a commit that referenced this issue Jan 5, 2016
taeymma pushed a commit that referenced this issue Jan 5, 2016
taeymma pushed a commit that referenced this issue Jan 6, 2016
@taeymma taeymma closed this as completed Jan 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants