Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Installation and Configuration

Prerequisites

Installing in DSpace 6

This feature is scheduled to be a part of the DSpace 6 code base.

See https://github.com/DSpace/DSpace/pull/1086

Configuring Access of the Reporting Tools

The reports can be configured with anonymous access or the reports can be configured to bypass authorization checks.

Bypassing authorization checks allows collection owners to view the status of all items in the repository without authenticating through the REST API.  This option is recommended if you have secured access to your REST API.

If your REST API is publicly accessible, deploy the reports with anonymous access and consider providing an authorization token for access to the report calls.

Enabling Sort-able Report Tables

* Install sortable.js http://www.kryogenix.org/code/browser/sorttable/
* Add to /dspace/modules/rest/src/main/webapp/static/reports
* Include sortable.js in index.html and query.html

Installing in DSpace 5

This feature is not a part of the DSpace 5 code base.

...

CHANGE

var CollReport = function() {
Report.call(this);

var QueryReport = function() {
Report.call(this);

...

TO

...

var CollReport = function() {
Report.call(this);
this.getId = function(obj) {

...

return obj.id;}
var QueryReport = function() {
Report.call(this);
this.getId = function(obj) {

...

return obj.id;}

...

...

This code also exists at https://github.com/Georgetown-University-Libraries/DSpace/tree/rest-reports-for-5_x

...

Add the following code into restCollReport.js and restQuery.js to pull the correct id for each DSpace Object

 * **DSpace5** See [Using this code with DSpace5](https://github.com/DSpace-Labs/DSpace-REST-Reports/wiki/Using-these-reports-with-DSpace-5)
* Determine the access that you will grant to your REST api since these reporting tools can be configured to run without authentication.
* Update the dspace/config/modules/rest.cfg
* [Enabling Sortable Report Tables](https://github.com/DSpace-Labs/DSpace-REST-Reports/wiki/Enabling-Sortable-Report-Tables)