Primo Central improvements
- Changed the Primo ini file to contain a proper URL of the server instead of just an API ID and a port and added a configuration update step for it. - Made the Primo Connector throw a proper exception by default if it fails to query the server. - Removed the useless returnErr parameter from Primo connector. - Adjusted config upgrader to be more tolerant of missing config.ini (useful during testing).
Showing
- config/vufind/Primo.ini 8 additions, 7 deletionsconfig/vufind/Primo.ini
- module/VuFind/src/VuFind/Config/Upgrade.php 32 additions, 1 deletionmodule/VuFind/src/VuFind/Config/Upgrade.php
- module/VuFind/src/VuFind/Search/Factory/PrimoBackendFactory.php 7 additions, 6 deletions.../VuFind/src/VuFind/Search/Factory/PrimoBackendFactory.php
- module/VuFind/tests/fixtures/configs/primo/Primo.ini 179 additions, 0 deletionsmodule/VuFind/tests/fixtures/configs/primo/Primo.ini
- module/VuFind/tests/unit-tests/src/VuFindTest/Config/UpgradeTest.php 17 additions, 0 deletions...nd/tests/unit-tests/src/VuFindTest/Config/UpgradeTest.php
- module/VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php 32 additions, 29 deletions...VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php
- module/VuFindSearch/tests/unit-tests/src/VuFindTest/Backend/Primo/BackendTest.php 1 addition, 1 deletion...s/unit-tests/src/VuFindTest/Backend/Primo/BackendTest.php
- module/VuFindSearch/tests/unit-tests/src/VuFindTest/Backend/Primo/ConnectorTest.php 2 additions, 2 deletions...unit-tests/src/VuFindTest/Backend/Primo/ConnectorTest.php
Please register or sign in to comment