Skip to content
Snippets Groups Projects
Commit 1f1e943e authored by Tarje Saelen Lavik's avatar Tarje Saelen Lavik
Browse files

Added owner to doc and photo

parent 636ae588
No related branches found
No related tags found
No related merge requests found
...@@ -201,8 +201,15 @@ ...@@ -201,8 +201,15 @@
<button type="button" class="btn btn-xs btn-link"><i class="fa fa-exclamation-triangle m-button-black"></i> <a href="mailto:mslib@uib.no?subject=Marcus - tilbakemelding på {{first.main.identifier.value}}&body=Tilbakemeldingen gjelder: {{first.main.identifier.value}} ({{lodspk.local.curie}}). La lenken være med, vi trenger den for å svare.">Feil? Gi oss beskjed!</a></button> <button type="button" class="btn btn-xs btn-link"><i class="fa fa-exclamation-triangle m-button-black"></i> <a href="mailto:mslib@uib.no?subject=Marcus - tilbakemelding på {{first.main.identifier.value}}&body=Tilbakemeldingen gjelder: {{first.main.identifier.value}} ({{lodspk.local.curie}}). La lenken være med, vi trenger den for å svare.">Feil? Gi oss beskjed!</a></button>
<!-- ALL DATA --> <!-- ALL DATA -->
<button type="button" class="btn btn-xs btn-link all-data" data-toggle="modal" data-target="#full-meta-view"><i class="fa fa-heart m-button-red pulse animated"></i> Vis data</button> <button type="button" class="btn btn-xs btn-link all-data" data-toggle="modal" data-target="#full-meta-view"><i class="fa fa-heart m-button-red pulse animated"></i> Vis data</button>
{% if models.owner|length != 0 %}
<p style="margin-left: 6px;"><small>
<i class="fa fa-archive"></i> Eies av {%for row in models.owner%}{%if !forloop.last%}, {%endif%}<a href="{{row.uri.value}}">{{row.label.value}}</a>{%endfor%}</button>
</small></p>
{%endif%}
</div>
</div>
<div class="col-md-8 col-md-pull-4"> <div class="col-md-8 col-md-pull-4">
{% for row in models.description %} {% for row in models.description %}
......
SELECT DISTINCT ?uri ?title ?label ?alternative ?available ?identifier ?img WHERE {
<{{ uri }}> bibo:owner ?uri .
OPTIONAL { ?uri dct:title ?title . }
OPTIONAL { ?uri rdfs:label ?label . }
OPTIONAL { ?uri foaf:name ?label . }
OPTIONAL { ?uri skos:prefLabel ?label . }
OPTIONAL { ?uri dct:alternative ?alternative . }
OPTIONAL { ?uri dct:identifier ?identifier . }
OPTIONAL { <{{ uri }}> foaf:logo ?img . }
OPTIONAL { <{{ uri }}> ubbont:hasThumbnail ?img . }
}
...@@ -233,7 +233,14 @@ ...@@ -233,7 +233,14 @@
</button> </button>
<!-- ALL DATA --> <!-- ALL DATA -->
<button type="button" class="btn btn-xs btn-link all-data" data-toggle="modal" data-target="#full-meta-view"><i class="fa fa-heart m-button-red pulse animated"></i> Vis data</button> <button type="button" class="btn btn-xs btn-link all-data" data-toggle="modal" data-target="#full-meta-view"><i class="fa fa-heart m-button-red pulse animated"></i> Vis data</button>
{% if models.owner|length != 0 %}
<p style="margin-left: 6px;"><small>
<i class="fa fa-archive"></i> Eies av {%for row in models.owner%}{%if !forloop.last%}, {%endif%}<a href="{{row.uri.value}}">{{row.label.value}}</a>{%endfor%}</button>
</small></p>
{%endif%}
</div> </div>
<div class="col-md-8 col-md-pull-4"> <div class="col-md-8 col-md-pull-4">
......
SELECT DISTINCT ?uri ?title ?label ?alternative ?available ?identifier ?img WHERE {
<{{ uri }}> bibo:owner ?uri .
OPTIONAL { ?uri dct:title ?title . }
OPTIONAL { ?uri rdfs:label ?label . }
OPTIONAL { ?uri foaf:name ?label . }
OPTIONAL { ?uri skos:prefLabel ?label . }
OPTIONAL { ?uri dct:alternative ?alternative . }
OPTIONAL { ?uri dct:identifier ?identifier . }
OPTIONAL { <{{ uri }}> foaf:logo ?img . }
OPTIONAL { <{{ uri }}> ubbont:hasThumbnail ?img . }
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment