Skip to content

Commit

Permalink
Merge branch 'develop' into 2939-shib
Browse files Browse the repository at this point in the history
Conflicts from #3108 (3089-jsoup):
	src/main/java/Bundle.properties
	src/main/webapp/dataverseuser.xhtml
	src/test/java/edu/harvard/iq/dataverse/util/BundleUtilTest.java

- Had to fix welcome notification on signup (no more
  notification.welcome1 and notification.welcome2)
- Apply dataverse.saved.search.success fix from 09454b2
  • Loading branch information
pdurbin committed May 12, 2016
2 parents 5dba82d + be5b26e commit fe5b00d
Show file tree
Hide file tree
Showing 44 changed files with 712 additions and 497 deletions.
1 change: 1 addition & 0 deletions conf/solr/4.6.0/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@
<field name="parentName" type="string" stored="true" indexed="false" multiValued="false"/>
<field name="parentCitation" type="string" stored="true" indexed="false" multiValued="false"/>
<field name="citation" type="string" stored="true" indexed="false" multiValued="false"/>
<field name="citationHtml" type="string" stored="true" indexed="false" multiValued="false"/>
<field name="identifier" type="string" stored="true" indexed="true" multiValued="false"/>
<field name="persistentUrl" type="string" stored="true" indexed="false" multiValued="false"/>
<field name="unf" type="string" stored="true" indexed="true" multiValued="false"/>
Expand Down
52 changes: 29 additions & 23 deletions doc/sphinx-guides/source/api/search.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Unlike the web interface, this new API is limited to *published* data until `iss

The parameters and JSON response are partly inspired by the `GitHub Search API <https://developer.github.com/v3/search/>`_.

Please note that in Dataverse 4.3 and older the "citation" field wrapped the persistent ID URL in an ``<a>`` tag but this has been changed to plaintext. If you want the old value with HTML in it, a new field called "citationHtml" can be used.

Parameters
----------

Expand Down Expand Up @@ -54,7 +56,7 @@ https://apitest.dataverse.org/api/search?q=trees
"image_url":"https://apitest.dataverse.org/api/access/dvCardImage/7",
"identifier":"trees",
"description":"A tree dataverse with some birds",
"published_at":"2015-01-12T16:05:12Z"
"published_at":"2016-05-10T12:53:38Z"
},
{
"name":"Chestnut Trees",
Expand All @@ -63,20 +65,21 @@ https://apitest.dataverse.org/api/search?q=trees
"image_url":"https://apitest.dataverse.org/api/access/dvCardImage/9",
"identifier":"chestnuttrees",
"description":"A dataverse with chestnut trees and an oriole",
"published_at":"2015-01-12T18:02:32Z"
"published_at":"2016-05-10T12:52:38Z"
},
{
"name":"trees.png",
"type":"file",
"url":"https://apitest.dataverse.org/api/access/datafile/12",
"image_url":"https://apitest.dataverse.org/api/access/preview/12",
"image_url":"https://apitest.dataverse.org/api/access/fileCardImage/12",
"file_id":"12",
"description":"",
"published_at":"2015-01-12T16:05:44Z",
"published_at":"2016-05-10T12:53:39Z",
"file_type":"PNG Image",
"file_content_type":"image/png",
"size_in_bytes":8361,
"md5":"0386269a5acb2c57b4eade587ff4db64",
"dataset_citation":"Spruce, Sabrina, 2015, \"Spruce Goose\", http://dx.doi.org/10.5072/FK2/Y6RGTQ, Root Dataverse, V1"
"dataset_citation":"Spruce, Sabrina, 2016, \"Spruce Goose\", http://dx.doi.org/10.5072/FK2/NFSEHG, Root Dataverse, V1"
},
{
"name":"Birds",
Expand All @@ -85,7 +88,7 @@ https://apitest.dataverse.org/api/search?q=trees
"image_url":"https://apitest.dataverse.org/api/access/dvCardImage/2",
"identifier":"birds",
"description":"A bird dataverse with some trees",
"published_at":"2015-01-12T18:01:51Z"
"published_at":"2016-05-10T12:57:27Z"
}
],
"count_in_response":4
Expand All @@ -97,7 +100,7 @@ https://apitest.dataverse.org/api/search?q=trees
Advanced Search Example
-----------------------

https://apitest.dataverse.org/api/search?q=finch&show_relevance=true&show_facets=true&fq=publication_date_s:2015&subtree=birds
https://apitest.dataverse.org/api/search?q=finch&show_relevance=true&show_facets=true&fq=publicationDate:2016&subtree=birds

In this example, ``show_relevance=true`` matches per field are shown. Available facets are shown with ``show_facets=true`` and of the facets is being used with ``fq=publication_date_s:2015``. The search is being narrowed to the dataverse with the identifier "birds" with the parameter ``subtree=birds``.

Expand All @@ -119,7 +122,7 @@ In this example, ``show_relevance=true`` matches per field are shown. Available
"image_url":"https://apitest.dataverse.org/api/access/dvCardImage/3",
"identifier":"finches",
"description":"A dataverse with finches",
"published_at":"2015-01-12T18:01:15Z",
"published_at":"2016-05-10T12:57:38Z",
"matches":[
{
"description":{
Expand All @@ -135,17 +138,19 @@ In this example, ``show_relevance=true`` matches per field are shown. Available
]
}
}
]
],
"score": 3.8500118255615234
},
{
"name":"Darwin's Finches",
"type":"dataset",
"url":"http://dx.doi.org/10.5072/FK2/CE0052",
"image_url":"https://apitest.dataverse.org/api/access/dsPreview/2",
"global_id":"doi:10.5072/FK2/CE0052",
"published_at":"2015-01-12T18:01:37Z",
"citation":"Finch, Fiona, 2015, \"Darwin's Finches\", http://dx.doi.org/10.5072/FK2/CE0052, Root Dataverse, V1",
"url":"http://dx.doi.org/10.5072/FK2/G2VPE7",
"image_url":"https://apitest.dataverse.org/api/access/dsCardImage/2",
"global_id":"doi:10.5072/FK2/G2VPE7",
"description": "Darwin's finches (also known as the Galápagos finches) are a group of about fifteen species of passerine birds.",
"published_at":"2016-05-10T12:57:45Z",
"citationHtml":"Finch, Fiona, 2016, \"Darwin's Finches\", <a href=\"http://dx.doi.org/10.5072/FK2/G2VPE7\" target=\"_blank\">http://dx.doi.org/10.5072/FK2/G2VPE7</a>, Root Dataverse, V1",
"citation":"Finch, Fiona, 2016, \"Darwin's Finches\", http://dx.doi.org/10.5072/FK2/G2VPE7, Root Dataverse, V1",
"matches":[
{
"authorName":{
Expand All @@ -169,34 +174,35 @@ In this example, ``show_relevance=true`` matches per field are shown. Available
}
}
],
"score": 1.5033848285675049,
"authors":[
"Finch, Fiona"
]
}
],
"facets":[
{
"dvCategory_s":{
"friendly":"Dataverse Category",
"subject_ss":{
"friendly":"Subject",
"labels":[
{
"Uncategorized":1
"Medicine, Health and Life Sciences":2
}
]
},
"affiliation_ss":{
"friendly":"Affiliation",
"labels":[
"authorName_ss": {
"friendly":"Author Name",
"labels": [
{
"Birds Inc.":1
"Finch, Fiona":1
}
]
},
"publication_date_s":{
"publicationDate":{
"friendly":"Publication Date",
"labels":[
{
"2015":2
"2016":2
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions doc/sphinx-guides/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
# built documents.
#
# The short X.Y version.
version = '4.3'
version = '4.3.1'
# The full version, including alpha/beta/rc tags.
release = '4.3'
release = '4.3.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 2 additions & 2 deletions doc/sphinx-guides/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Dataverse 4.3 Guides
Dataverse 4.3.1 Guides
======================

These guides are for the most recent version of Dataverse. For the guides for **version 4.2.4** please go `here <http://guides.dataverse.org/en/4.2.4/>`_.
These guides are for the most recent version of Dataverse. For the guides for **version 4.3** please go `here <http://guides.dataverse.org/en/4.3/>`_.

.. toctree::
:glob:
Expand Down
Loading

0 comments on commit fe5b00d

Please sign in to comment.