Rename package to OAIPMH2

This commit is contained in:
Sebastian Meyer 2024-07-13 18:49:54 +02:00
parent ed679b4685
commit 3e967f0b92
27 changed files with 27 additions and 27 deletions

View File

@ -29,7 +29,7 @@ use OCC\PSR15\QueueRequestHandler;
* Main application of the OAI-PMH 2.0 Data Provider. * Main application of the OAI-PMH 2.0 Data Provider.
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
*/ */
class App class App
{ {

View File

@ -34,7 +34,7 @@ use Symfony\Component\Yaml\Yaml;
* Reads, validates and provides configuration settings. * Reads, validates and provides configuration settings.
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
* *
* @property-read string $repositoryName * @property-read string $repositoryName
* @property-read string $adminEmail * @property-read string $adminEmail

View File

@ -33,7 +33,7 @@ use Symfony\Component\Console\Output\OutputInterface;
* Base class for all OAI-PMH console commands. * Base class for all OAI-PMH console commands.
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
*/ */
abstract class Console extends Command abstract class Console extends Command
{ {

View File

@ -37,7 +37,7 @@ use Symfony\Component\Console\Output\OutputInterface;
* Add or update a record in the database. * Add or update a record in the database.
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
*/ */
#[AsCommand( #[AsCommand(
name: 'oai:records:add', name: 'oai:records:add',

View File

@ -35,7 +35,7 @@ use Symfony\Component\Console\Output\OutputInterface;
* Add or update a set in the database. * Add or update a set in the database.
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
*/ */
#[AsCommand( #[AsCommand(
name: 'oai:sets:add', name: 'oai:sets:add',

View File

@ -41,7 +41,7 @@ use Symfony\Component\Console\Output\OutputInterface;
* Import records into database from a CSV file. * Import records into database from a CSV file.
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
*/ */
#[AsCommand( #[AsCommand(
name: 'oai:records:import:csv', name: 'oai:records:import:csv',

View File

@ -36,7 +36,7 @@ use Symfony\Component\Console\Output\OutputInterface;
* Delete a record from database. * Delete a record from database.
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
*/ */
#[AsCommand( #[AsCommand(
name: 'oai:records:delete', name: 'oai:records:delete',

View File

@ -35,7 +35,7 @@ use Symfony\Component\Console\Output\OutputInterface;
* Prune deleted records from database. * Prune deleted records from database.
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
*/ */
#[AsCommand( #[AsCommand(
name: 'oai:records:prune', name: 'oai:records:prune',

View File

@ -33,7 +33,7 @@ use Symfony\Component\Console\Output\OutputInterface;
* Prune expired resumption tokens from database. * Prune expired resumption tokens from database.
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
*/ */
#[AsCommand( #[AsCommand(
name: 'oai:tokens:prune', name: 'oai:tokens:prune',

View File

@ -36,7 +36,7 @@ use Symfony\Component\Validator\Exception\ValidationFailedException;
* Synchronize metadata formats in database with configuration. * Synchronize metadata formats in database with configuration.
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
*/ */
#[AsCommand( #[AsCommand(
name: 'oai:formats:update', name: 'oai:formats:update',

View File

@ -47,7 +47,7 @@ use Symfony\Component\Filesystem\Path;
* Handles all database shenanigans. * Handles all database shenanigans.
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
* *
* @template Formats of array<string, Format> * @template Formats of array<string, Format>
* @template Records of array<string, Record> * @template Records of array<string, Record>

View File

@ -33,7 +33,7 @@ use Psr\Http\Message\ServerRequestInterface;
* An OAI-PMH XML response object. * An OAI-PMH XML response object.
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
*/ */
class Document class Document
{ {

View File

@ -30,7 +30,7 @@ use Symfony\Component\Validator\Validation;
* Base class for all Doctrine/ORM entities. * Base class for all Doctrine/ORM entities.
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
*/ */
abstract class Entity abstract class Entity
{ {

View File

@ -30,7 +30,7 @@ use Symfony\Component\Validator\Exception\ValidationFailedException;
* Doctrine/ORM Entity for formats. * Doctrine/ORM Entity for formats.
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
*/ */
#[ORM\Entity] #[ORM\Entity]
#[ORM\Table(name: 'formats')] #[ORM\Table(name: 'formats')]

View File

@ -33,7 +33,7 @@ use Symfony\Component\Validator\Exception\ValidationFailedException;
* Doctrine/ORM Entity for records. * Doctrine/ORM Entity for records.
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
*/ */
#[ORM\Entity] #[ORM\Entity]
#[ORM\Table(name: 'records')] #[ORM\Table(name: 'records')]

View File

@ -32,7 +32,7 @@ use Symfony\Component\Validator\Exception\ValidationFailedException;
* Doctrine/ORM Entity for sets. * Doctrine/ORM Entity for sets.
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
*/ */
#[ORM\Entity] #[ORM\Entity]
#[ORM\Table(name: 'sets')] #[ORM\Table(name: 'sets')]

View File

@ -32,7 +32,7 @@ use OCC\OaiPmh2\Entity;
* Doctrine/ORM Entity for resumption tokens. * Doctrine/ORM Entity for resumption tokens.
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
*/ */
#[ORM\Entity] #[ORM\Entity]
#[ORM\Table(name: 'tokens')] #[ORM\Table(name: 'tokens')]

View File

@ -32,7 +32,7 @@ use Psr\Http\Message\ServerRequestInterface;
* Base class for all OAI-PMH requests. * Base class for all OAI-PMH requests.
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
*/ */
abstract class Middleware extends AbstractMiddleware abstract class Middleware extends AbstractMiddleware
{ {

View File

@ -31,7 +31,7 @@ use Psr\Http\Message\ServerRequestInterface;
* Validate and dispatch a OAI-PMH server request. * Validate and dispatch a OAI-PMH server request.
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
*/ */
class Dispatcher extends AbstractMiddleware class Dispatcher extends AbstractMiddleware
{ {

View File

@ -34,7 +34,7 @@ use Psr\Http\Message\StreamInterface;
* Handles OAI-PMH errors. * Handles OAI-PMH errors.
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
*/ */
class ErrorHandler extends AbstractMiddleware class ErrorHandler extends AbstractMiddleware
{ {

View File

@ -33,7 +33,7 @@ use Psr\Http\Message\ServerRequestInterface;
* @see https://www.openarchives.org/OAI/openarchivesprotocol.html#GetRecord * @see https://www.openarchives.org/OAI/openarchivesprotocol.html#GetRecord
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
*/ */
class GetRecord extends Middleware class GetRecord extends Middleware
{ {

View File

@ -34,7 +34,7 @@ use Psr\Http\Message\ServerRequestInterface;
* @see https://www.openarchives.org/OAI/openarchivesprotocol.html#Identify * @see https://www.openarchives.org/OAI/openarchivesprotocol.html#Identify
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
*/ */
class Identify extends Middleware class Identify extends Middleware
{ {

View File

@ -35,7 +35,7 @@ use Psr\Http\Message\ServerRequestInterface;
* @see https://www.openarchives.org/OAI/openarchivesprotocol.html#ListIdentifiers * @see https://www.openarchives.org/OAI/openarchivesprotocol.html#ListIdentifiers
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
*/ */
class ListIdentifiers extends Middleware class ListIdentifiers extends Middleware
{ {

View File

@ -33,7 +33,7 @@ use Psr\Http\Message\ServerRequestInterface;
* @see https://www.openarchives.org/OAI/openarchivesprotocol.html#ListMetadataFormats * @see https://www.openarchives.org/OAI/openarchivesprotocol.html#ListMetadataFormats
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
*/ */
class ListMetadataFormats extends Middleware class ListMetadataFormats extends Middleware
{ {

View File

@ -27,7 +27,7 @@ namespace OCC\OaiPmh2\Middleware;
* @see https://www.openarchives.org/OAI/openarchivesprotocol.html#ListRecords * @see https://www.openarchives.org/OAI/openarchivesprotocol.html#ListRecords
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
*/ */
class ListRecords extends ListIdentifiers class ListRecords extends ListIdentifiers
{ {

View File

@ -34,7 +34,7 @@ use Psr\Http\Message\ServerRequestInterface;
* @see https://openarchives.org/OAI/openarchivesprotocol.html#ListSets * @see https://openarchives.org/OAI/openarchivesprotocol.html#ListSets
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
* *
* @template Sets of array<string, Set> * @template Sets of array<string, Set>
*/ */

View File

@ -35,7 +35,7 @@ use OCC\OaiPmh2\Entity\Token;
* A database result set with optional resumption token. * A database result set with optional resumption token.
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/oai-pmh2 * @package OAIPMH2
* *
* @template QueryResult of array<string, Format|Record|Set> * @template QueryResult of array<string, Format|Record|Set>
* @implements Iterator<QueryResult> * @implements Iterator<QueryResult>