1
0
Fork 0

[Affiliation from institutionalrepo] changed the field to check to verify the datasource type. Now it is in the field jurisdiction

This commit is contained in:
Miriam Baglioni 2023-01-26 16:51:20 +01:00
parent ecd398fe51
commit b254a0375f
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ public class PropagationConstant {
public final static String NULL = "NULL"; public final static String NULL = "NULL";
public static final String INSTITUTIONAL_REPO_TYPE = "pubsrepository::institutional"; public static final String INSTITUTIONAL_REPO_TYPE = "institutional";
public static final String PROPAGATION_DATA_INFO_TYPE = "propagation"; public static final String PROPAGATION_DATA_INFO_TYPE = "propagation";

View File

@ -102,7 +102,7 @@ public class PrepareResultInstRepoAssociation {
String query = "SELECT source datasourceId, target organizationId " String query = "SELECT source datasourceId, target organizationId "
+ "FROM ( SELECT id " + "FROM ( SELECT id "
+ "FROM datasource " + "FROM datasource "
+ "WHERE datasourcetype.classid = '" + "WHERE lower(jurisdiction.classid) = '"
+ INSTITUTIONAL_REPO_TYPE + INSTITUTIONAL_REPO_TYPE
+ "' " + "' "
+ "AND datainfo.deletedbyinference = false " + blacklisted + " ) d " + "AND datainfo.deletedbyinference = false " + blacklisted + " ) d "