Difference between revisions of "API:EPrints/DataObj/Subject"

From EPrints Documentation
Jump to: navigation, search
Line 8: Line 8:
 
'''EPrints::DataObj::Subject''' - Class and methods relating to the subejcts tree.
 
'''EPrints::DataObj::Subject''' - Class and methods relating to the subejcts tree.
  
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
 
<span style='display:none'>User Comments</span>
 
 
<!-- Edit below this comment -->
 
<!-- Edit below this comment -->
  
  
 
<!-- Pod2Wiki= -->
 
<!-- Pod2Wiki= -->
</div>
 
 
<!-- Pod2Wiki=head_description -->
 
<!-- Pod2Wiki=head_description -->
 
==DESCRIPTION==
 
==DESCRIPTION==
Line 21: Line 18:
 
EPrints::DataObj::Subject is a subclass of EPrints::DataObj
 
EPrints::DataObj::Subject is a subclass of EPrints::DataObj
  
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
+
* $thing = EPrints::DataObj::Subject-&gt;get_system_field_info
<span style='display:none'>User Comments</span>
+
: Return an array describing the system metadata of the Subject dataset.
<!-- Edit below this comment -->
 
 
 
 
 
<!-- Pod2Wiki= -->
 
</div>
 
<!-- Pod2Wiki=item_get_system_field_info -->
 
===$thing = EPrints::DataObj::Subject-&gt;get_system_field_info===
 
 
 
Return an array describing the system metadata of the Subject dataset.
 
 
 
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
 
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
 
 
 
 
<!-- Pod2Wiki= -->
 
</div>
 
<!-- Pod2Wiki=item_new -->
 
===$subject = EPrints::DataObj::Subject-&gt;new( $session, $subjectid )===
 
 
 
Create a new subject object given the id of the subject. The values for the subject are loaded from the database.
 
 
 
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
 
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
 
 
 
 
<!-- Pod2Wiki= -->
 
</div>
 
<!-- Pod2Wiki=item_new_from_data -->
 
===$subject = EPrints::DataObj::Subject-&gt;new_from_data( $session, $data )===
 
 
 
Construct a new subject object from a hash reference containing the relevant fields. Generally this method is only used to construct new Subjects coming out of the database.
 
 
 
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
 
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
 
 
 
 
<!-- Pod2Wiki= -->
 
</div>
 
<!-- Pod2Wiki=item_commit -->
 
===$success = $subject-&gt;commit( [$force] )===
 
 
 
Commit this subject to the database, but only if any fields have  changed since we loaded it.
 
 
 
If $force is set then always commit, even if there appear to be no changes.
 
 
 
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
 
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
 
 
 
 
<!-- Pod2Wiki= -->
 
</div>
 
<!-- Pod2Wiki=item_remove -->
 
===$success = $subject-&gt;remove===
 
 
 
Remove this subject from the database.
 
 
 
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
 
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
 
 
 
 
<!-- Pod2Wiki= -->
 
</div>
 
<!-- Pod2Wiki=item_get_dataset_id -->
 
===$dataset = EPrints::DataObj::Subject-&gt;get_dataset_id===
 
 
 
Returns the id of the [[API:EPrints/DataSet|EPrints::DataSet]] object to which this record belongs.
 
 
 
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
 
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
 
 
 
 
<!-- Pod2Wiki= -->
 
</div>
 
<!-- Pod2Wiki=item_remove_all -->
 
===EPrints::DataObj::Subject::remove_all( $session )===
 
 
 
Static function.
 
 
 
Remove all subjects from the database. Use with care!
 
 
 
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
 
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
 
 
  
<!-- Pod2Wiki= -->
+
* $subject = EPrints::DataObj::Subject-&gt;new( $session, $subjectid )
</div>
+
: Create a new subject object given the id of the subject. The values for the subject are loaded from the database.
<!-- Pod2Wiki=item_create_child -->
 
===$child_subject = $subject-&gt;create_child( $id, $name, $depositable )===
 
  
Similar to EPrints::DataObj::Subject::create, but this creates the new subject as a child of the current subject.
+
* $subject = EPrints::DataObj::Subject-&gt;new_from_data( $session, $data )
 +
: Construct a new subject object from a hash reference containing the relevant fields. Generally this method is only used to construct new Subjects coming out of the database.
  
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
+
* $success = $subject-&gt;commit( [$force] )
<span style='display:none'>User Comments</span>
+
: Commit this subject to the database, but only if any fields have  changed since we loaded it.
<!-- Edit below this comment -->
 
  
 +
: If $force is set then always commit, even if there appear to be no changes.
  
<!-- Pod2Wiki= -->
+
* $success = $subject-&gt;remove
</div>
+
: Remove this subject from the database.
<!-- Pod2Wiki=item_get_children -->
 
===@children = $subject-&gt;get_children===
 
  
Return a list of EPrints::DataObj::Subject objects which are direct children of the current subject.
+
* $dataset = EPrints::DataObj::Subject-&gt;get_dataset_id
 +
: Returns the id of the [[API:EPrints/DataSet|EPrints::DataSet]] object to which this record belongs.
  
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
+
* EPrints::DataObj::Subject::remove_all( $session )
<span style='display:none'>User Comments</span>
+
: Static function.
<!-- Edit below this comment -->
 
  
 +
: Remove all subjects from the database. Use with care!
  
<!-- Pod2Wiki= -->
+
* $subject = $subject-&gt;top()
</div>
+
: Returns the subject that is at the top of this subject's tree (which may be this subject).
<!-- Pod2Wiki=item_get_parents -->
 
===@parents = $subject-&gt;get_parents===
 
  
Return a list of EPrints::DataObj::Subject objects which are direct parents of the current subject.
+
: Returns undef if the subject is not part of a tree.
  
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
+
* $child_subject = $subject-&gt;create_child( $id, $name, $depositable )
<span style='display:none'>User Comments</span>
+
: Similar to EPrints::DataObj::Subject::create, but this creates the new subject as a child of the current subject.
<!-- Edit below this comment -->
 
  
 +
* @children = $subject-&gt;get_children
 +
: Return a list of EPrints::DataObj::Subject objects which are direct children of the current subject.
  
<!-- Pod2Wiki= -->
+
* @parents = $subject-&gt;get_parents
</div>
+
: Return a list of EPrints::DataObj::Subject objects which are direct parents of the current subject.
<!-- Pod2Wiki=item_can_post -->
 
===$boolean = $subject-&gt;can_post( [$user] )===
 
  
Determines whether the given user can post in this subject.
+
* $boolean = $subject-&gt;can_post( [$user] )
 +
: Determines whether the given user can post in this subject.
  
Currently there is no way to configure subjects for certain users, so this just returns the true or false depending on the "depositable" flag.
+
: Currently there is no way to configure subjects for certain users, so this just returns the true or false depending on the "depositable" flag.
  
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
+
* $xhtml = $subject-&gt;render_with_path( $session, $topsubjid )
<span style='display:none'>User Comments</span>
+
: Return the name of this subject including it's path from $topsubjid.
<!-- Edit below this comment -->
 
  
 +
: $topsubjid must be an ancestor of this subject.
  
<!-- Pod2Wiki= -->
+
: eg.
</div>
 
<!-- Pod2Wiki=item_render_with_path -->
 
===$xhtml = $subject-&gt;render_with_path( $session, $topsubjid )===
 
  
Return the name of this subject including it's path from $topsubjid.
+
: Library of Congress &gt; B Somthing &gt; BC Somthing more Detailed
  
$topsubjid must be an ancestor of this subject.
+
* @paths = $subject-&gt;get_paths( $session, $topsubjid )
 +
: This function returns all the paths from this subject back up to the specified top subject.
  
eg.  
+
: @paths is an array of array references. Each of the inner arrays is a list of subject id's describing a path down the tree from $topsubjid to $session.
  
Library of Congress &gt; B Somthing &gt; BC Somthing more Detailed
+
* $subject_pairs = $subject-&gt;get_subjects ( [$postable_only], [$show_top_level], [$nes_tids], [$no_nest_label] )
 +
: Return a reference to an array. Each item in the array is a two  element list.
  
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
+
: The first element in the list is an indenifier string.  
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
  
 +
: The second element is a utf-8 string describing the subject (in the  current language), including all the items above it in the tree, but only as high as this subject.
  
<!-- Pod2Wiki= -->
+
: The subjects which are returned are this item and all its children,  and childrens children etc. The order is it returns  this subject, then the first child of this subject, then children of  that (recursively), then the second child of this subject etc.
</div>
 
<!-- Pod2Wiki=item_get_paths -->
 
===@paths = $subject-&gt;get_paths( $session, $topsubjid )===
 
  
This function returns all the paths from this subject back up to the specified top subject.
+
: If $postable_only is true then filter the results to only contain  subjects which have the "depositable" flag set to true.
  
@paths is an array of array references. Each of the inner arrays is a list of subject id's describing a path down the tree from $topsubjid to $session.
+
: If $show_top_level is not true then the pair representing the current subject is not included at the start of the list.
  
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
+
: If $nest_ids is true then each then the ids retured are nested so that the ids of the children of this subject are prefixed with this  subjects id and a colon, and their children are prefixed by their  nested id and a colon. eg. L:LC:LC003 rather than just "LC003"
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
  
 +
: if $no_nest_label is true then the subject label only contains the name of the subject, not the higher level ones.
  
<!-- Pod2Wiki= -->
+
: A default result from this method would look something like this:
</div>
 
<!-- Pod2Wiki=item_get_subjects -->
 
===$subject_pairs = $subject-&gt;get_subjects ( [$postable_only], [$show_top_level], [$nes_tids], [$no_nest_label] )===
 
 
 
Return a reference to an array. Each item in the array is a two  element list.
 
 
 
The first element in the list is an indenifier string.
 
 
 
The second element is a utf-8 string describing the subject (in the  current language), including all the items above it in the tree, but only as high as this subject.
 
  
The subjects which are returned are this item and all its children, and childrens children etc. The order is it returns  this subject, then the first child of this subject, then children of  that (recursively), then the second child of this subject etc.
+
<pre> [
 
 
If $postable_only is true then filter the results to only contain  subjects which have the "depositable" flag set to true.
 
 
 
If $show_top_level is not true then the pair representing the current subject is not included at the start of the list.
 
 
 
If $nest_ids is true then each then the ids retured are nested so that the ids of the children of this subject are prefixed with this  subjects id and a colon, and their children are prefixed by their  nested id and a colon. eg. L:LC:LC003 rather than just "LC003"
 
 
 
if $no_nest_label is true then the subject label only contains the name of the subject, not the higher level ones.
 
 
 
A default result from this method would look something like this:
 
 
 
  [
 
 
     [ "D", "History" ],
 
     [ "D", "History" ],
 
     [ "D1", "History: History (General)" ],
 
     [ "D1", "History: History (General)" ],
 
     [ "D111", "History: History (General): Medieval History" ]
 
     [ "D111", "History: History (General): Medieval History" ]
  ]
+
  ]</pre>
 
 
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
 
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
 
 
 
 
<!-- Pod2Wiki= -->
 
</div>
 
<!-- Pod2Wiki=item_subject_label -->
 
===$label = EPrints::DataObj::Subject::subject_label( $session, $subject_id )===
 
 
 
Return the full label of a subject, including parents. Returns undef if the subject id is invalid.
 
  
The returned string is encoded in utf8.
+
* ( $subject_map, $reverse_map ) = EPrints::DataObj::Subject::get_all( $session )
 +
: Get all the subjects for the current archvive of $session.
  
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '>
+
: $subject_map is a reference to a hash. The keys of the hash are the id's of the subjects. The values of the hash are the EPrint::Subject object relating to that id.
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
  
 +
: $reverse_map is a reference to a hash. Each key is the id of a subject. Each value is a reference to an array. The array contains a EPrints::DataObj::Subject objects, one for each child of the subject  with the id. The array is sorted by the labels for the subjects, in the current language.
  
<!-- Pod2Wiki= -->
+
* $count = $subject-&gt;count_eprints( $dataset )
</div>
+
: Return the number of eprints in the dataset which are in this subject or one of its decendants. Search all fields of type subject.
<!-- Pod2Wiki=item_get_all -->
 
===( $subject_map, $reverse_map ) = EPrints::DataObj::Subject::get_all( $session )===
 
  
Get all the subjects for the current archvive of $session.
+
* $boolean = EPrints::DataObj::Subject::valid_id( $id )
 +
: Return true if the string is an acceptable identifier for a subject.
  
$subject_map is a reference to a hash. The keys of the hash are the id's of the subjects. The values of the hash are the  EPrint::Subject object relating to that id.
+
: This does not check all possible illegal values, yet.
  
$reverse_map is a reference to a hash. Each key is the id of a subject. Each value is a reference to an array. The array contains a EPrints::DataObj::Subject objects, one for each child of the subject  with the id. The array is sorted by the labels for the subjects, in the current language.
+
* $subj-&gt;render()
 +
: undocumented
  
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
 
<span style='display:none'>User Comments</span>
 
 
<!-- Edit below this comment -->
 
<!-- Edit below this comment -->
  
  
 
<!-- Pod2Wiki= -->
 
<!-- Pod2Wiki= -->
</div>
+
<!-- Pod2Wiki=head_copyright -->
<!-- Pod2Wiki=item_count_eprints -->
+
==COPYRIGHT==
===$count = $subject-&gt;count_eprints( $dataset )===
+
Copyright 2000-2011 University of Southampton.
 
 
Return the number of eprints in the dataset which are in this subject or one of its decendants. Search all fields of type subject.
 
  
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
+
This file is part of EPrints http://www.eprints.org/.
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
  
 +
EPrints is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  
<!-- Pod2Wiki= -->
+
EPrints is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
</div>
 
<!-- Pod2Wiki=item_valid_id -->
 
===$boolean = EPrints::DataObj::Subject::valid_id( $id )===
 
  
Return true if the string is an acceptable identifier for a subject.
+
You should have received a copy of the GNU Lesser General Public License along with EPrints.  If not, see http://www.gnu.org/licenses/.
  
This does not check all possible illegal values, yet.
 
 
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
 
<span style='display:none'>User Comments</span>
 
 
<!-- Edit below this comment -->
 
<!-- Edit below this comment -->
  
  
 
<!-- Pod2Wiki= -->
 
<!-- Pod2Wiki= -->
</div>
+
<!-- Pod2Wiki=_postamble_ -->
<!-- Pod2Wiki=item_render -->
 
===$subj-&gt;render()===
 
 
 
undocumented
 
 
 
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
 
<span style='display:none'>User Comments</span>
 
 
<!-- Edit below this comment -->
 
<!-- Edit below this comment -->
 
 
<!-- Pod2Wiki= -->
 
</div>
 
<!-- Pod2Wiki=head_copyright -->
 
==COPYRIGHT==
 
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
 
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
 
 
<!-- Pod2Wiki= -->
 
</div>
 
<!-- Pod2Wiki=_postamble_ --><!-- Edit below this comment -->
 

Revision as of 09:57, 22 January 2013

EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects


API: Core API

Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki


NAME

EPrints::DataObj::Subject - Class and methods relating to the subejcts tree.


DESCRIPTION

This class represents a single node in the subejcts tree. It also contains a number of methods for handling the entire tree.

EPrints::DataObj::Subject is a subclass of EPrints::DataObj

  • $thing = EPrints::DataObj::Subject->get_system_field_info
Return an array describing the system metadata of the Subject dataset.
  • $subject = EPrints::DataObj::Subject->new( $session, $subjectid )
Create a new subject object given the id of the subject. The values for the subject are loaded from the database.
  • $subject = EPrints::DataObj::Subject->new_from_data( $session, $data )
Construct a new subject object from a hash reference containing the relevant fields. Generally this method is only used to construct new Subjects coming out of the database.
  • $success = $subject->commit( [$force] )
Commit this subject to the database, but only if any fields have changed since we loaded it.
If $force is set then always commit, even if there appear to be no changes.
  • $success = $subject->remove
Remove this subject from the database.
  • $dataset = EPrints::DataObj::Subject->get_dataset_id
Returns the id of the EPrints::DataSet object to which this record belongs.
  • EPrints::DataObj::Subject::remove_all( $session )
Static function.
Remove all subjects from the database. Use with care!
  • $subject = $subject->top()
Returns the subject that is at the top of this subject's tree (which may be this subject).
Returns undef if the subject is not part of a tree.
  • $child_subject = $subject->create_child( $id, $name, $depositable )
Similar to EPrints::DataObj::Subject::create, but this creates the new subject as a child of the current subject.
  • @children = $subject->get_children
Return a list of EPrints::DataObj::Subject objects which are direct children of the current subject.
  • @parents = $subject->get_parents
Return a list of EPrints::DataObj::Subject objects which are direct parents of the current subject.
  • $boolean = $subject->can_post( [$user] )
Determines whether the given user can post in this subject.
Currently there is no way to configure subjects for certain users, so this just returns the true or false depending on the "depositable" flag.
  • $xhtml = $subject->render_with_path( $session, $topsubjid )
Return the name of this subject including it's path from $topsubjid.
$topsubjid must be an ancestor of this subject.
eg.
Library of Congress > B Somthing > BC Somthing more Detailed
  • @paths = $subject->get_paths( $session, $topsubjid )
This function returns all the paths from this subject back up to the specified top subject.
@paths is an array of array references. Each of the inner arrays is a list of subject id's describing a path down the tree from $topsubjid to $session.
  • $subject_pairs = $subject->get_subjects ( [$postable_only], [$show_top_level], [$nes_tids], [$no_nest_label] )
Return a reference to an array. Each item in the array is a two element list.
The first element in the list is an indenifier string.
The second element is a utf-8 string describing the subject (in the current language), including all the items above it in the tree, but only as high as this subject.
The subjects which are returned are this item and all its children, and childrens children etc. The order is it returns this subject, then the first child of this subject, then children of that (recursively), then the second child of this subject etc.
If $postable_only is true then filter the results to only contain subjects which have the "depositable" flag set to true.
If $show_top_level is not true then the pair representing the current subject is not included at the start of the list.
If $nest_ids is true then each then the ids retured are nested so that the ids of the children of this subject are prefixed with this subjects id and a colon, and their children are prefixed by their nested id and a colon. eg. L:LC:LC003 rather than just "LC003"
if $no_nest_label is true then the subject label only contains the name of the subject, not the higher level ones.
A default result from this method would look something like this:
  [
    [ "D", "History" ],
    [ "D1", "History: History (General)" ],
    [ "D111", "History: History (General): Medieval History" ]
 ]
  • ( $subject_map, $reverse_map ) = EPrints::DataObj::Subject::get_all( $session )
Get all the subjects for the current archvive of $session.
$subject_map is a reference to a hash. The keys of the hash are the id's of the subjects. The values of the hash are the EPrint::Subject object relating to that id.
$reverse_map is a reference to a hash. Each key is the id of a subject. Each value is a reference to an array. The array contains a EPrints::DataObj::Subject objects, one for each child of the subject with the id. The array is sorted by the labels for the subjects, in the current language.
  • $count = $subject->count_eprints( $dataset )
Return the number of eprints in the dataset which are in this subject or one of its decendants. Search all fields of type subject.
  • $boolean = EPrints::DataObj::Subject::valid_id( $id )
Return true if the string is an acceptable identifier for a subject.
This does not check all possible illegal values, yet.
  • $subj->render()
undocumented


COPYRIGHT

Copyright 2000-2011 University of Southampton.

This file is part of EPrints http://www.eprints.org/.

EPrints is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

EPrints is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with EPrints. If not, see http://www.gnu.org/licenses/.