diff --git a/src/client/reducers/manuscripts.js b/src/client/reducers/manuscripts.js index 482f8e6d02a69d7f9e4fe63e55ce6e8419c0e606..239e03c0aca6cd5035a489dd4ad16624d45380e2 100644 --- a/src/client/reducers/manuscripts.js +++ b/src/client/reducers/manuscripts.js @@ -131,7 +131,7 @@ export const INITIAL_STATE = { valueType: 'owner', makeLink: true, sortValues: true, - numberedList: true, + numberedList: false, minWidth: 250 }, { diff --git a/src/client/reducers/manuscriptsFacets.js b/src/client/reducers/manuscriptsFacets.js index c74152b2fd4a4a94958cc6e1eb7993c39ec203a9..47003a85c86328bf603bf71608eebc53317b4082 100644 --- a/src/client/reducers/manuscriptsFacets.js +++ b/src/client/reducers/manuscriptsFacets.js @@ -67,6 +67,23 @@ export const INITIAL_STATE = { filterType: 'uriFilter', uriFilter: null }, + owner: { + id: 'owner', + label: 'Owner', + // predicate: defined in backend + distinctValueCount: 0, + values: [], + flatValues: [], + sortBy: 'instanceCount', + sortDirection: 'desc', + sortButton: true, + spatialFilterButton: false, + isFetching: false, + searchField: true, + containerClass: 'ten', + filterType: 'uriFilter', + uriFilter: null + }, // language: { // id: 'language', // label: 'Language', diff --git a/src/server/sparql/FacetConfigs.js b/src/server/sparql/FacetConfigs.js index 9658b6289c4565009a1c09b7fc48d99436f37951..fd5c5aed5753999d4f00dd13a341ec401dff774c 100644 --- a/src/server/sparql/FacetConfigs.js +++ b/src/server/sparql/FacetConfigs.js @@ -63,6 +63,7 @@ export const facetConfigs = { facetValueFilter: '', label: 'Owner', labelPath: 'crm:P51_has_former_or_current_owner/skos:prefLabel', + predicate: 'crm:P51_has_former_or_current_owner', type: 'list', }, }, diff --git a/src/server/sparql/SparqlQueriesManuscripts.js b/src/server/sparql/SparqlQueriesManuscripts.js index 9f5d9191395c7ead4333d22ab7e2034475af343b..abc61244c6114e81d8b2aa0f865e0e053fde81fc 100644 --- a/src/server/sparql/SparqlQueriesManuscripts.js +++ b/src/server/sparql/SparqlQueriesManuscripts.js @@ -37,14 +37,15 @@ export const manuscriptProperties = ` { ?id crm:P51_has_former_or_current_owner ?owner__id . ?owner__id skos:prefLabel ?owner__prefLabel . - OPTIONAL { ?owner__id mmm-schema:data_provider_url ?owner__dataProviderUrl } - OPTIONAL { - [] rdf:subject ?id ; - rdf:predicate crm:P51_has_former_or_current_owner ; - rdf:object ?owner__id ; - mmm-schema:order ?order . - BIND(xsd:integer(?order) + 1 AS ?owner__order) - } + BIND (?owner__id AS ?owner__dataProviderUrl) + #OPTIONAL { ?owner__id mmm-schema:data_provider_url ?owner__dataProviderUrl } + #OPTIONAL { + # [] rdf:subject ?id ; + # rdf:predicate crm:P51_has_former_or_current_owner ; + # rdf:object ?owner__id ; + # mmm-schema:order ?order . + # BIND(xsd:integer(?order) + 1 AS ?owner__order) + #} } UNION {