Difference between revisions of "Request Object"

From EPrints Documentation
Jump to: navigation, search
Line 1: Line 1:
 +
The Request object encapsulates a single request for a document, which can be:
 +
 +
* a specific (restricted) document in the repository
 +
* a document not in the repository (where a record has no documents attached)
 +
 
=== Built in Fields ===
 
=== Built in Fields ===
  
Line 4: Line 9:
 
<tr><th>Field Name</th><th>Type</th><th>Description</th></tr>
 
<tr><th>Field Name</th><th>Type</th><th>Description</th></tr>
 
<tr><td>requestid</td><td>[[int field]]</td><td></td></tr>
 
<tr><td>requestid</td><td>[[int field]]</td><td></td></tr>
<tr><td>eprintid</td><td>[[itemref field]] eprint</td><td></td></tr>
+
<tr><td>eprintid</td><td>[[itemref field]] eprint</td><td>The ID of the record</td></tr>
<tr><td>docid</td><td>[[text field]]</td><td></td></tr>
+
<tr><td>docid</td><td>[[text field]]</td><td>The ID of the document requested</td></tr>
<tr><td>datestamp</td><td>[[time field]]</td><td></td></tr>
+
<tr><td>datestamp</td><td>[[time field]]</td><td>When the request was made</td></tr>
<tr><td>userid</td><td>[[itemref field]] user</td><td></td></tr>
+
<tr><td>userid</td><td>[[itemref field]] user</td><td>The ID of the user who can respond to the request (if <b>email</b> matches a registered user)</td></tr>
<tr><td>email</td><td>[[text field]]</td><td></td></tr>
+
<tr><td>email</td><td>[[text field]]</td><td>The email the request was sent to</td></tr>
<tr><td>requester_email</td><td>[[text field]]</td><td></td></tr>
+
<tr><td>requester_email</td><td>[[text field]]</td><td>The email of the person who requested the document</td></tr>
<tr><td>reason</td><td>[[longtext field]]</td><td></td></tr>
+
<tr><td>reason</td><td>[[longtext field]]</td><td>The reason that the request was made, if any</td></tr>
 
</table>
 
</table>

Revision as of 17:23, 8 January 2007

The Request object encapsulates a single request for a document, which can be:

* a specific (restricted) document in the repository
* a document not in the repository (where a record has no documents attached)

Built in Fields

Field NameTypeDescription
requestidint field
eprintiditemref field eprintThe ID of the record
docidtext fieldThe ID of the document requested
datestamptime fieldWhen the request was made
useriditemref field userThe ID of the user who can respond to the request (if email matches a registered user)
emailtext fieldThe email the request was sent to
requester_emailtext fieldThe email of the person who requested the document
reasonlongtext fieldThe reason that the request was made, if any