diff --git a/common/src/main/resources/config/thunibib-common/mycore.properties b/common/src/main/resources/config/thunibib-common/mycore.properties index 26b9b8aaf..7bf09548c 100644 --- a/common/src/main/resources/config/thunibib-common/mycore.properties +++ b/common/src/main/resources/config/thunibib-common/mycore.properties @@ -125,4 +125,4 @@ MCR.Cronjob.Jobs.UpdateSolrProjectCore.Command = thunibib update solr project c MCR.Cronjob.Jobs.UpdateSolrProjectCore.Cron = 0 8 * * * UBO.ORCID2.InfoURL = %MCR.baseurl%faq.xml -MCR.Solr.Proxy.WhiteList = %MCR.Solr.Proxy.WhiteList%,/search,/search-all +MCR.Solr.Proxy.WhiteList = %MCR.Solr.Proxy.WhiteList%,/search,/search-all,/statistics-all diff --git a/common/src/main/resources/config/thunibib-common/solr/main/solr-config.json b/common/src/main/resources/config/thunibib-common/solr/main/solr-config.json index 0458262c5..bc8181ce6 100644 --- a/common/src/main/resources/config/thunibib-common/solr/main/solr-config.json +++ b/common/src/main/resources/config/thunibib-common/solr/main/solr-config.json @@ -42,6 +42,45 @@ "defaults": { "echoParams": "explicit", "defType": "edismax", + "q.alt": "*:*", + "qs": "5", + "mm": "100%", + "q.op": "AND", + "df": "all", + "wt": "xml" + }, + "appends": { + "facet.field": [ + "year", + "subject", + "origin_exact", + "genre", + "oa", + "facet_person", + "connection_nid_text", + "nid_connection" + ], + "json.facet": "{year:{type:terms,field:year,sort:{index:asc},facet:{oa:{type:terms,field:oa,sort:{index:asc}}}}}", + "fq": "+objectType:mods", + "fq": "status:unchecked OR status:confirmed" + }, + "invariants": { + "fl": "", + "start": "0", + "rows": "0", + "facet": "true", + "facet.mincount": "1" + } + } + }, + { + "add-requestHandler": { + "name": "/statistics-all", + "class": "solr.SearchHandler", + "defaults": { + "echoParams": "explicit", + "defType": "edismax", + "q.alt": "*:*", "qs": "5", "mm": "100%", "q.op": "AND", @@ -59,7 +98,8 @@ "connection_nid_text", "nid_connection" ], - "json.facet": "{year:{type:terms,field:year,sort:{index:asc},facet:{oa:{type:terms,field:oa,sort:{index:asc}}}}}" + "json.facet": "{year:{type:terms,field:year,sort:{index:asc},facet:{oa:{type:terms,field:oa,sort:{index:asc}}}}}", + "fq": "+objectType:mods" }, "invariants": { "fl": "", @@ -105,7 +145,7 @@ "wt": "xml" }, "appends": { - "fq": "+objectType:mods " + "fq": "+objectType:mods" } } }, diff --git a/common/src/main/resources/xsl/response-get-handler.xsl b/common/src/main/resources/xsl/response-get-handler.xsl index f13feebc3..de0346af6 100644 --- a/common/src/main/resources/xsl/response-get-handler.xsl +++ b/common/src/main/resources/xsl/response-get-handler.xsl @@ -16,4 +16,15 @@ + + + + + + + + + + +