Add restricted files messages to portal trunk

Project:RUcore/NJDH/Partner Portal Search
Version:7.0
Component:Portal Configuration - Search Portal Tool
Category:feature request
Priority:normal
Assigned:chadmills
Status:closed
Description

Currently restricted file messages are stored in the service agent configuration file. Move to the search portal trunk and delvier via the Search API.

Example of stored message in configuration file

/MESSAGES TO DISPLAY ON FULL RECORD SCREEN WHEN A RESTRICTION IS FOUND
//RESTRICTED ACCESS
$cfg_SERVICE_AGENT['label_prefix']['restricted'] = "Sign in to view restricted ";
$cfg_SERVICE_AGENT['label_suffix']['restricted'] = "";
$cfg_SERVICE_AGENT['msg']['restricted'] = "Restricted access requires you to log into the Shibboleth server using your netID.";

Comments

#1

Status:active» fixed

For restricted files the user friendly messages have been moved to the Search API query and record methods. In the file element section when a http authcode of 403 is found error and errorDetail elements are returned. Those elements can be used directly on screen as the error messages to the user. Below is an example of what is returned when trying to access an embargoed PDF.

<error>Access to this PDF has been restricted at the author's request.</error>
<errorDetail>This item has been embargoed and is not currently available.</errorDetail>

#2

Status:fixed» closed

Back to top