Skip to content

Commit

Permalink
Merge pull request #1753 from kaitlinnewson/10561-main
Browse files Browse the repository at this point in the history
pkp/pkp-lib#10561 update onix schema in export plugins
  • Loading branch information
bozana authored Nov 14, 2024
2 parents d344ce4 + dca0635 commit de8e411
Show file tree
Hide file tree
Showing 16 changed files with 21,230 additions and 48,051 deletions.
41 changes: 41 additions & 0 deletions classes/migration/upgrade/v3_5_0/I10561_OnixFilter.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

/**
* @file classes/migration/upgrade/v3_5_0/I10561_OnixFilter.php
*
* Copyright (c) 2024 Simon Fraser University
* Copyright (c) 2024 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class I10561_OnixFilter
*
* @brief Update the location of the ONIX reference file used for validation by the native import/export plugin in OMP.
*/

namespace APP\migration\upgrade\v3_5_0;

use Illuminate\Support\Facades\DB;
use PKP\migration\Migration;

class I10561_OnixFilter extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
DB::table('filter_groups')
->where('symbolic', 'monograph=>onix30-xml')
->update(['output_type' => 'xml::schema(plugins/importexport/onix30/ONIX_BookProduct_3.0_reference.xsd)']);
}

/**
* Reverse the migration.
*/
public function down(): void
{
DB::table('filter_groups')
->where('symbolic', 'monograph=>onix30-xml')
->update(['output_type' => 'xml::schema(plugins/importexport/native/ONIX_BookProduct_3.0_reference_notstrict.xsd)']);
}
}
3 changes: 2 additions & 1 deletion dbscripts/xml/upgrade.xml
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,10 @@
<migration class="PKP\migration\upgrade\v3_5_0\I9860_EditorialMastheadNavMenuItem"/>
<migration class="APP\migration\upgrade\v3_5_0\I9937_EditorialTeamToEditorialHistory"/>
<migration class="PKP\migration\upgrade\v3_5_0\I10041_UserGroupsAndUserUserGroupsMastheadValues"/>
<migration class="PKP\migration\upgrade\v3_5_0\I9771_OrcidMigration"/>
<migration class="PKP\migration\upgrade\v3_5_0\I9771_OrcidMigration"/>
<migration class="APP\migration\upgrade\v3_5_0\I5885_RenameReviewReminderSettingsName"/>
<migration class="PKP\migration\upgrade\v3_5_0\COA75_AddUserRoleEndEmail"/>
<migration class="APP\migration\upgrade\v3_5_0\I10561_OnixFilter"/>
</upgrade>

<!-- Update plugin configuration - should be done as the final upgrade task -->
Expand Down
Loading

0 comments on commit de8e411

Please sign in to comment.