diff --git a/VERSIONS_HOTLINE/186279 b/VERSIONS_HOTLINE/186279 new file mode 100644 index 0000000000000000000000000000000000000000..7b59135db4dac5e3c5e88c3bba3792d55d98d280 --- /dev/null +++ b/VERSIONS_HOTLINE/186279 @@ -0,0 +1 @@ + - correctif #186279 : Export ressources numériques OAI : Correction de la construction de l'url d'export OAI avec le paramètre identity_provider \ No newline at end of file diff --git a/library/Class/WebService/OAI.php b/library/Class/WebService/OAI.php index e06c81ae00b86eefaccb681e5695850142c004b9..6cc8cda1f148091f20f85dd579fcccba4c62f148 100644 --- a/library/Class/WebService/OAI.php +++ b/library/Class/WebService/OAI.php @@ -38,7 +38,7 @@ class Class_WebService_OAI extends Class_WebService_Abstract { Verb = 'verb', MetadataPrefix = 'metadataPrefix', Set = 'set', - IdentityProvider = 'identityProvider', + IdentityProvider = 'identity_provider', From = 'from', Until = 'until', ResumptionToken = 'resumptionToken', diff --git a/tests/application/modules/opac/controllers/OAIControllerListRecordsTest.php b/tests/application/modules/opac/controllers/OAIControllerListRecordsTest.php index a4284fcc1a0458c4a8e0e7e2a9f9d50e73a7b7de..121f87fa95d398af2ec804b351f6596ca029bab7 100644 --- a/tests/application/modules/opac/controllers/OAIControllerListRecordsTest.php +++ b/tests/application/modules/opac/controllers/OAIControllerListRecordsTest.php @@ -474,7 +474,7 @@ class OAIControllerListRecordsWithIdentityProviderTest ]); - $this->dispatch('/opac/oai/request?verb=ListRecords&metadataPrefix=oai_dc_bokeh&set=albums&identityProvider=1'); + $this->dispatch('/opac/oai/request/identity_provider/1?verb=ListRecords&metadataPrefix=oai_dc_bokeh&set=albums'); $this->_body = $this->_response->getBody(); } @@ -499,7 +499,7 @@ class OAIControllerListRecordsWithNonExistentIdentityProviderTest public function setUp() { parent::setUp(); - $this->dispatch('/opac/oai/request?verb=ListRecords&metadataPrefix=oai_dc_bokeh&set=albums&identityProvider=1'); + $this->dispatch('/opac/oai/request/identity_provider/1?verb=ListRecords&metadataPrefix=oai_dc_bokeh&set=albums'); $this->_body = $this->_response->getBody(); }