DSpaceDirect Resources
DSpaceDirect Website
DSpaceDirect Demo Site
DSpace Resources
DSpace Website
DSpace Documentation
DSpace Wiki
DSpaceDirect KnowledgeBase
...
Login to your site as an Administrator
Under the "Administrative" side menu, click on "Authorizations" (under Access Control submenu)
Just under the box at the top of the page, click the link that says "Click here to go to the item wildcard policy admin tool"
Step 1: Remove existing metadata access rights for all Items in the specified Collection. To do so, fill out the form as follows:
Description: (optional, usually is left blank as it's only really useful for bulk changes to embargo)
Group: (leave blank in this case as you will remove any existing permissions)
Action: READ (you want to remove "READ" access)
Content Type: Item (you want to remove READ access on an Item level – this controls metadata access)
Collection: [select the collection]
Start Date: (leave blank - this is only useful for bulk-changes to embargo dates)
End Date: (leave blank - this is only useful for bulk-changes to embargo dates)
CLICK the "Clear Policies" button
Step 2: Remove existing content file access rights for all Items in the specified Collection. To do so, fill out the form as follows:
Description: (optional, usually is left blank as it's only really useful for bulk changes to embargo)
Group: (leave blank in this case as you will remove any existing permissions)
Action: READ (you want to remove "READ" access)
Content Type: bitstream (you want to remove READ access on the files, or bitstreams)
Collection: [select the collection]
Start Date: (leave blank - this is only useful for bulk-changes to embargo dates)
End Date: (leave blank - this is only useful for bulk-changes to embargo dates)
CLICK the "Clear Policies" button
Step 3: Give the "On Campus Users" group access to all metadata for all Items in the specified Collection. To do so, fill out the form as follows:
Description: (optional, usually is left blank as it's only really useful for bulk changes to embargo)
Group: Select the "On Campus Users" group
Action: READ (you want to add "READ" access to the selected group)
Content Type: item (you want to add READ access on Items)
Collection: [select the collection]
Start Date: (leave blank - this is only useful for bulk-changes to embargo dates)
End Date: (leave blank - this is only useful for bulk-changes to embargo dates)
CLICK the "Add Policies" button
Step 4: Finally, give the "On Campus Users" group access to all files for all Items in the specified Collection. To do so, fill out the form as follows:
Description: (optional, usually is left blank as it's only really useful for bulk changes to embargo)
Group: Select the "On Campus Users" group
Action: READ (you want to add "READ" access to the selected group)
Content Type: bitstream (you want to add READ access on all files, or bitstreams)
Collection: [select the collection]
Start Date: (leave blank - this is only useful for bulk-changes to embargo dates)
End Date: (leave blank - this is only useful for bulk-changes to embargo dates)
CLICK the "Add Policies" button
BasicLinkChecker
DSpace provides a Basic Link Checker as part of the system Curation Tasks. This can be used for small collections as follows:
As noted above, this will work fine for individual items or small collections. Larger collections will likely take too long to run and will result in an error.
Checking with Exported Metadata
Links can be checked by exporting the site metadata and using an external process to verify links. An example of an external process using Google Sheets follows
Replace the default script with this code:
Code Block |
---|
function getStatusCodes(urlset){
if('' == urlset) {
return '';
}
var urls = urlset.split("||");
var responseCodes = [];
for (var i=0; i<urls.length; i++){
var responseCode = getStatusCode(urls[i]);
responseCodes.push(responseCode);
}
return responseCodes.join();
}
function getStatusCode(url) {
var options = {
'muteHttpExceptions': true,
};
var response = UrlFetchApp.fetch(url.trim(), options);
return response.getResponseCode();
} |
This code includes two functions. The getStatusCodes function expects an array (list) of URLs to check. The getStatusCode function expects only a single URL. Which of these you use depend on whether the metadata column you need to check has one URL or multiple URLs in each row. If in doubt, use getStatusCodes, as it will work for one or more URLs.
Back on your Google Sheets file, select an empty column that will be used for script results. On the first row with data (usually row 2) add this to the cell, replacing "Y2" with the cell ID where the URL to be checked can be found, then hitting enter. (This is also where you can choose to use the getStatusCode function rather than getStatusCodes.)
Code Block |
---|
=getStatusCodes(Y2) |