-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ed679b4
commit 3e967f0
Showing
27 changed files
with
27 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
* Main application of the OAI-PMH 2.0 Data Provider. | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
*/ | ||
class App | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ | |
* Reads, validates and provides configuration settings. | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
* | ||
* @property-read string $repositoryName | ||
* @property-read string $adminEmail | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
* Base class for all OAI-PMH console commands. | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
*/ | ||
abstract class Console extends Command | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ | |
* Add or update a record in the database. | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
*/ | ||
#[AsCommand( | ||
name: 'oai:records:add', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ | |
* Add or update a set in the database. | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
*/ | ||
#[AsCommand( | ||
name: 'oai:sets:add', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ | |
* Import records into database from a CSV file. | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
*/ | ||
#[AsCommand( | ||
name: 'oai:records:import:csv', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ | |
* Delete a record from database. | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
*/ | ||
#[AsCommand( | ||
name: 'oai:records:delete', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ | |
* Prune deleted records from database. | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
*/ | ||
#[AsCommand( | ||
name: 'oai:records:prune', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
* Prune expired resumption tokens from database. | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
*/ | ||
#[AsCommand( | ||
name: 'oai:tokens:prune', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ | |
* Synchronize metadata formats in database with configuration. | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
*/ | ||
#[AsCommand( | ||
name: 'oai:formats:update', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,7 @@ | |
* Handles all database shenanigans. | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
* | ||
* @template Formats of array<string, Format> | ||
* @template Records of array<string, Record> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
* An OAI-PMH XML response object. | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
*/ | ||
class Document | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ | |
* Base class for all Doctrine/ORM entities. | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
*/ | ||
abstract class Entity | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ | |
* Doctrine/ORM Entity for formats. | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
*/ | ||
#[ORM\Entity] | ||
#[ORM\Table(name: 'formats')] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
* Doctrine/ORM Entity for records. | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
*/ | ||
#[ORM\Entity] | ||
#[ORM\Table(name: 'records')] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ | |
* Doctrine/ORM Entity for sets. | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
*/ | ||
#[ORM\Entity] | ||
#[ORM\Table(name: 'sets')] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ | |
* Doctrine/ORM Entity for resumption tokens. | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
*/ | ||
#[ORM\Entity] | ||
#[ORM\Table(name: 'tokens')] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ | |
* Base class for all OAI-PMH requests. | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
*/ | ||
abstract class Middleware extends AbstractMiddleware | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ | |
* Validate and dispatch a OAI-PMH server request. | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
*/ | ||
class Dispatcher extends AbstractMiddleware | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ | |
* Handles OAI-PMH errors. | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
*/ | ||
class ErrorHandler extends AbstractMiddleware | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
* @see https://www.openarchives.org/OAI/openarchivesprotocol.html#GetRecord | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
*/ | ||
class GetRecord extends Middleware | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ | |
* @see https://www.openarchives.org/OAI/openarchivesprotocol.html#Identify | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
*/ | ||
class Identify extends Middleware | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ | |
* @see https://www.openarchives.org/OAI/openarchivesprotocol.html#ListIdentifiers | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
*/ | ||
class ListIdentifiers extends Middleware | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
* @see https://www.openarchives.org/OAI/openarchivesprotocol.html#ListMetadataFormats | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
*/ | ||
class ListMetadataFormats extends Middleware | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
* @see https://www.openarchives.org/OAI/openarchivesprotocol.html#ListRecords | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
*/ | ||
class ListRecords extends ListIdentifiers | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ | |
* @see https://openarchives.org/OAI/openarchivesprotocol.html#ListSets | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
* | ||
* @template Sets of array<string, Set> | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ | |
* A database result set with optional resumption token. | ||
* | ||
* @author Sebastian Meyer <[email protected]> | ||
* @package opencultureconsulting/oai-pmh2 | ||
* @package OAIPMH2 | ||
* | ||
* @template QueryResult of array<string, Format|Record|Set> | ||
* @implements Iterator<QueryResult> | ||
|