Rename package to OAIPMH2
This commit is contained in:
parent
ed679b4685
commit
3e967f0b92
|
@ -29,7 +29,7 @@ use OCC\PSR15\QueueRequestHandler;
|
|||
* Main application of the OAI-PMH 2.0 Data Provider.
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*/
|
||||
class App
|
||||
{
|
||||
|
|
|
@ -34,7 +34,7 @@ use Symfony\Component\Yaml\Yaml;
|
|||
* Reads, validates and provides configuration settings.
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*
|
||||
* @property-read string $repositoryName
|
||||
* @property-read string $adminEmail
|
||||
|
|
|
@ -33,7 +33,7 @@ use Symfony\Component\Console\Output\OutputInterface;
|
|||
* Base class for all OAI-PMH console commands.
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*/
|
||||
abstract class Console extends Command
|
||||
{
|
||||
|
|
|
@ -37,7 +37,7 @@ use Symfony\Component\Console\Output\OutputInterface;
|
|||
* Add or update a record in the database.
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*/
|
||||
#[AsCommand(
|
||||
name: 'oai:records:add',
|
||||
|
|
|
@ -35,7 +35,7 @@ use Symfony\Component\Console\Output\OutputInterface;
|
|||
* Add or update a set in the database.
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*/
|
||||
#[AsCommand(
|
||||
name: 'oai:sets:add',
|
||||
|
|
|
@ -41,7 +41,7 @@ use Symfony\Component\Console\Output\OutputInterface;
|
|||
* Import records into database from a CSV file.
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*/
|
||||
#[AsCommand(
|
||||
name: 'oai:records:import:csv',
|
||||
|
|
|
@ -36,7 +36,7 @@ use Symfony\Component\Console\Output\OutputInterface;
|
|||
* Delete a record from database.
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*/
|
||||
#[AsCommand(
|
||||
name: 'oai:records:delete',
|
||||
|
|
|
@ -35,7 +35,7 @@ use Symfony\Component\Console\Output\OutputInterface;
|
|||
* Prune deleted records from database.
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*/
|
||||
#[AsCommand(
|
||||
name: 'oai:records:prune',
|
||||
|
|
|
@ -33,7 +33,7 @@ use Symfony\Component\Console\Output\OutputInterface;
|
|||
* Prune expired resumption tokens from database.
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*/
|
||||
#[AsCommand(
|
||||
name: 'oai:tokens:prune',
|
||||
|
|
|
@ -36,7 +36,7 @@ use Symfony\Component\Validator\Exception\ValidationFailedException;
|
|||
* Synchronize metadata formats in database with configuration.
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*/
|
||||
#[AsCommand(
|
||||
name: 'oai:formats:update',
|
||||
|
|
|
@ -47,7 +47,7 @@ use Symfony\Component\Filesystem\Path;
|
|||
* Handles all database shenanigans.
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*
|
||||
* @template Formats of array<string, Format>
|
||||
* @template Records of array<string, Record>
|
||||
|
|
|
@ -33,7 +33,7 @@ use Psr\Http\Message\ServerRequestInterface;
|
|||
* An OAI-PMH XML response object.
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*/
|
||||
class Document
|
||||
{
|
||||
|
|
|
@ -30,7 +30,7 @@ use Symfony\Component\Validator\Validation;
|
|||
* Base class for all Doctrine/ORM entities.
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*/
|
||||
abstract class Entity
|
||||
{
|
||||
|
|
|
@ -30,7 +30,7 @@ use Symfony\Component\Validator\Exception\ValidationFailedException;
|
|||
* Doctrine/ORM Entity for formats.
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*/
|
||||
#[ORM\Entity]
|
||||
#[ORM\Table(name: 'formats')]
|
||||
|
|
|
@ -33,7 +33,7 @@ use Symfony\Component\Validator\Exception\ValidationFailedException;
|
|||
* Doctrine/ORM Entity for records.
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*/
|
||||
#[ORM\Entity]
|
||||
#[ORM\Table(name: 'records')]
|
||||
|
|
|
@ -32,7 +32,7 @@ use Symfony\Component\Validator\Exception\ValidationFailedException;
|
|||
* Doctrine/ORM Entity for sets.
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*/
|
||||
#[ORM\Entity]
|
||||
#[ORM\Table(name: 'sets')]
|
||||
|
|
|
@ -32,7 +32,7 @@ use OCC\OaiPmh2\Entity;
|
|||
* Doctrine/ORM Entity for resumption tokens.
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*/
|
||||
#[ORM\Entity]
|
||||
#[ORM\Table(name: 'tokens')]
|
||||
|
|
|
@ -32,7 +32,7 @@ use Psr\Http\Message\ServerRequestInterface;
|
|||
* Base class for all OAI-PMH requests.
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*/
|
||||
abstract class Middleware extends AbstractMiddleware
|
||||
{
|
||||
|
|
|
@ -31,7 +31,7 @@ use Psr\Http\Message\ServerRequestInterface;
|
|||
* Validate and dispatch a OAI-PMH server request.
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*/
|
||||
class Dispatcher extends AbstractMiddleware
|
||||
{
|
||||
|
|
|
@ -34,7 +34,7 @@ use Psr\Http\Message\StreamInterface;
|
|||
* Handles OAI-PMH errors.
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*/
|
||||
class ErrorHandler extends AbstractMiddleware
|
||||
{
|
||||
|
|
|
@ -33,7 +33,7 @@ use Psr\Http\Message\ServerRequestInterface;
|
|||
* @see https://www.openarchives.org/OAI/openarchivesprotocol.html#GetRecord
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*/
|
||||
class GetRecord extends Middleware
|
||||
{
|
||||
|
|
|
@ -34,7 +34,7 @@ use Psr\Http\Message\ServerRequestInterface;
|
|||
* @see https://www.openarchives.org/OAI/openarchivesprotocol.html#Identify
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*/
|
||||
class Identify extends Middleware
|
||||
{
|
||||
|
|
|
@ -35,7 +35,7 @@ use Psr\Http\Message\ServerRequestInterface;
|
|||
* @see https://www.openarchives.org/OAI/openarchivesprotocol.html#ListIdentifiers
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*/
|
||||
class ListIdentifiers extends Middleware
|
||||
{
|
||||
|
|
|
@ -33,7 +33,7 @@ use Psr\Http\Message\ServerRequestInterface;
|
|||
* @see https://www.openarchives.org/OAI/openarchivesprotocol.html#ListMetadataFormats
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*/
|
||||
class ListMetadataFormats extends Middleware
|
||||
{
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace OCC\OaiPmh2\Middleware;
|
|||
* @see https://www.openarchives.org/OAI/openarchivesprotocol.html#ListRecords
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*/
|
||||
class ListRecords extends ListIdentifiers
|
||||
{
|
||||
|
|
|
@ -34,7 +34,7 @@ use Psr\Http\Message\ServerRequestInterface;
|
|||
* @see https://openarchives.org/OAI/openarchivesprotocol.html#ListSets
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*
|
||||
* @template Sets of array<string, Set>
|
||||
*/
|
||||
|
|
|
@ -35,7 +35,7 @@ use OCC\OaiPmh2\Entity\Token;
|
|||
* A database result set with optional resumption token.
|
||||
*
|
||||
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
||||
* @package opencultureconsulting/oai-pmh2
|
||||
* @package OAIPMH2
|
||||
*
|
||||
* @template QueryResult of array<string, Format|Record|Set>
|
||||
* @implements Iterator<QueryResult>
|
||||
|
|
Loading…
Reference in New Issue