PHP Class OJSSwordDeposit, ojs

Afficher le fichier Open project: pkp/ojs Class Usage Examples

Méthodes publiques

Свойство Type Description
$article Article
$issue Issue
$journal Journal
$outPath path and directory name to use for package creation files
$package deposit METS package
$section Section

Méthodes publiques

Méthode Description
__construct ( $article ) Constructor.
_addFile ( $file ) Add a file to a package. Used internally.
addEditorial ( ) : boolean Add the single most recent editorial file to the deposit package.
addGalleys ( ) Add all article galleys to the deposit package.
cleanup ( ) Clean up after a deposit, i.e. removing all created files.
createPackage ( ) Build the package.
deposit ( $url, $username, $password ) Deposit the package.
setMetadata ( ) Register the article's metadata with the SWORD deposit.

Method Details

__construct() public méthode

Create a SWORD deposit object for an OJS article.
public __construct ( $article )
$article Article

_addFile() public méthode

Add a file to a package. Used internally.
public _addFile ( $file )

addEditorial() public méthode

Add the single most recent editorial file to the deposit package.
public addEditorial ( ) : boolean
Résultat boolean true iff a file was successfully added to the package

addGalleys() public méthode

Add all article galleys to the deposit package.
public addGalleys ( )

cleanup() public méthode

Clean up after a deposit, i.e. removing all created files.
public cleanup ( )

createPackage() public méthode

Build the package.
public createPackage ( )

deposit() public méthode

Deposit the package.
public deposit ( $url, $username, $password )
$url string SWORD deposit URL
$username string SWORD deposit username (i.e. email address for DSPACE)
$password string SWORD deposit password

setMetadata() public méthode

Register the article's metadata with the SWORD deposit.
public setMetadata ( )

Property Details

$article public_oe property

public Article $article
Résultat Article

$issue public_oe property

public Issue $issue
Résultat Issue

$journal public_oe property

public Journal $journal
Résultat Journal

$outPath public_oe property

path and directory name to use for package creation files
public $outPath

$package public_oe property

deposit METS package
public $package

$section public_oe property

public Section $section
Résultat Section