mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2018-04-18
This commit is contained in:
@ -332,3 +332,37 @@ Total time: 4 minutes 12 seconds
|
||||
## 2018-04-16
|
||||
|
||||
- Communicate with Bioversity about their project to migrate their e-Library (Typo3) and Sci-lit databases to CGSpace
|
||||
|
||||
## 2018-04-18
|
||||
|
||||
- IWMI people are asking about building a search query that outputs RSS for their reports
|
||||
- They want the same results as this Discovery query: https://cgspace.cgiar.org/discover?filtertype_1=dateAccessioned&filter_relational_operator_1=contains&filter_1=2018&submit_apply_filter=&query=&scope=10568%2F16814&rpp=100&sort_by=dc.date.issued_dt&order=desc
|
||||
- They will need to use OpenSearch, but I can't remember all the parameters
|
||||
- Apparently search sort options for OpenSearch are in `dspace.cfg`:
|
||||
|
||||
```
|
||||
webui.itemlist.sort-option.1 = title:dc.title:title
|
||||
webui.itemlist.sort-option.2 = dateissued:dc.date.issued:date
|
||||
webui.itemlist.sort-option.3 = dateaccessioned:dc.date.accessioned:date
|
||||
webui.itemlist.sort-option.4 = type:dc.type:text
|
||||
```
|
||||
|
||||
- They want items by issue date, so we need to use sort option 2
|
||||
- According to the DSpace Manual there are only the following parameters to OpenSearch: format, scope, rpp, start, and sort_by
|
||||
- The OpenSearch `query` parameter expects a Discovery search filter that is defined in `dspace/config/spring/api/discovery.xml`
|
||||
- So for IWMI they should be able to use something like this: https://cgspace.cgiar.org/open-search/discover?query=dateIssued:2018&scope=10568/16814&sort_by=2&order=DESC&format=rss
|
||||
- There are also `rpp` (results per page) and `start` parameters but in my testing now on DSpace 5.5 they behave very strangely
|
||||
- For example, set `rpp=1` and then check the results for `start` values of 0, 1, and 2 and they are all the same!
|
||||
- If I have time I will check if this behavior persists on DSpace 6.x on the official DSpace demo and file a bug
|
||||
- Also, the DSpace Manual as of 5.x has very poor documentation for OpenSearch
|
||||
- They don't tell you to use Discovery search filters in the `query` (with format `query=dateIssued:2018`)
|
||||
- They don't tell you that the sort options are actually defined in `dspace.cfg` (ie, you need to use `2` instead of `dc.date.issued_dt`)
|
||||
- They are missing the `order` parameter (ASC vs DESC)
|
||||
- I notice that DSpace Test has crashed again, due to memory:
|
||||
|
||||
```
|
||||
# grep -c 'java.lang.OutOfMemoryError: Java heap space' /var/log/tomcat7/catalina.out
|
||||
178
|
||||
```
|
||||
|
||||
- I will increase the JVM heap size from 5120M to 6144M, though we don't have much room left to grow as DSpace Test (linode19) is using a smaller instance size than CGSpace
|
||||
|
Reference in New Issue
Block a user