validator.xml 42.2 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550
<?xml version="1.0" encoding="UTF-8" ?>
<configuration lastChangeDate="2014-01-28T12:00:00" xmlns="http://www.rcaap.pt/xsd/validator" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.rcaap.pt/xsd/validator validator.xsd ">

    <!-- Platforms information. For each platform, one or more profiles must 
		be declared. -->
    <platforms>

        <platform id="dspace" name="DSpace">
            <profile refid="driver" />
            <profile refid="openaire" />
            <profile refid="fct" />
            <profile refid="thesis" />
            <profile refid="fits" />
            <profile refid="embargoed_access" />
        </platform>

        <platform id="ojs" name="Open Journal System">
            <profile refid="driver" />
            <profile refid="openaire" />
        </platform>

        <platform id="eprints" name="EPrints">
            <profile refid="driver" />
        </platform>

        <platform id="other" name="Other">
            <profile refid="driver" />
            <profile refid="embargoed_access" />
        </platform>
    </platforms>

    <!-- Profiles information. Each profile must have translations, zero or 
		more preCondition and one or more check. -->
    <profiles>

        <profile id="driver" name="DRIVER">
            <translation element="name" lang="pt">DRIVER</translation>
            <translation element="name" lang="en">DRIVER</translation>
            <translation element="description" lang="pt">Valida o conteúdo do repositório de acordo com directrizes DRIVER</translation>
            <translation element="description" lang="en">Validates repository content accordingly with DRIVER rules</translation>

            <check refid="title_exists" />
            <check refid="author_exists" />
            <check refid="date_exists_and_is_valid" />
            <check refid="rights_exists" />
            <check refid="type_exists" />
            <check refid="description_exists" />
            <check refid="language_exists" />

            <check refid="language_is_valid" />
            <check refid="rights_is_valid" />
            <check refid="type_is_valid" />

<!--        <check refid="list_dc_type" /> -->
<!--        <check refid="list_dc_rights" /> -->

<!--        <check refid="filesAndFormats" /> -->
        </profile>

        <profile id="openaire" name="OpenAIRE">
            <translation element="name" lang="pt">OpenAIRE</translation>
            <translation element="name" lang="en">OpenAIRE</translation>
            <translation element="description" lang="pt">Valida o conteúdo do repositório de acordo com directrizes OpenAIRE</translation>
            <translation element="description" lang="en">Validates repository content accordingly with OpenAIRE rules</translation>

            <preCondition refid="ec_project_dc_relation" />

            <check refid="title_exists" />
            <check refid="author_exists" />
            <check refid="date_exists_and_is_valid" />
            <check refid="rights_exists" />
            <check refid="type_exists" />
            <check refid="description_exists" />
            <check refid="language_exists" />

            <check refid="language_is_valid" />
            <check refid="rights_is_valid" />
            <check refid="type_is_valid" />

            <check refid="list_openaire_project_ids" />
        </profile>

        <profile id="fct" name="FCT">
            <translation element="name" lang="pt">FCT</translation>
            <translation element="name" lang="en">FCT</translation>
            <translation element="description" lang="pt">Valida o conteúdo do repositório de acordo com directrizes FCT</translation>
            <translation element="description" lang="en">Validates repository content accordingly with FCT rules</translation>

            <preCondition refid="fct_project_dc_relation" />

            <check refid="type_is_valid" />
            <check refid="list_fct_project_ids" />

        </profile>

        <profile id="thesis" name="THESIS">
            <translation element="name" lang="pt">Teses e Dissertações</translation>
            <translation element="name" lang="en">Thesis</translation>
            <translation element="description" lang="pt">Valida o conteúdo do repositório de acordo com depósito legal de teses e dissertações</translation>
            <translation element="description" lang="en">Validates repository content accordingly with thesis legal deposit</translation>

            <!--<preCondition refid="master_thesis_dc_type" />
            <preCondition refid="doctoral_thesis_dc_type" /> -->

		<!-- chenaged to only one pre condition. The two previous conditions can't match at the same time-->
            <preCondition refid="thesis_dc_type" />


            <check refid="author_exists" />
            <check refid="description_exists" />

        </profile>

        <profile id="fits" name="FITS">
            <translation element="name" lang="pt">Ficheiros e Formatos</translation>
            <translation element="name" lang="en">Files and Formats</translation>
            <translation element="description" lang="pt">Verifica se os ficheiros do repositório são válidos e os seus formatos estão no conjunto de formatos preservation friendly</translation>
            <translation element="description" lang="en">Checks if repository files are valid and if their formats are in the preservation friendly formats set</translation>

            <check refid="filesAndFormats" />
        </profile>

        <profile id="embargoed_access" name="EMBARGOEDACCESS">
            <translation element="name" lang="pt">Acesso Embargado</translation>
            <translation element="name" lang="en">Embargoed Access</translation>
            <translation element="description" lang="pt">Lista todos os documentos em acesso embargado</translation>
            <translation element="description" lang="en">List all embargoed records</translation>

            <check refid="list_embargoed_access" />
        </profile>

    </profiles>

    <!-- Pre-Conditions information. These can be used to select which records 
		are going to be validated. Each preCondition must have a class, and one or 
		more parameters (check specific preCondition (class) information to know 
		what parameters must be configured). -->
    <preConditions>

        <preCondition id="fct_project_dc_relation">
            <class>pt.keep.metarepository.core.validator2.pre_conditions.AtLeastOneMetadataFieldByContent</class>
            <parameter key="field">
                <value>relation</value>
            </parameter>
            <parameter key="operator">
                <value>starts_with</value>
            </parameter>
            <parameter key="value">
                <value>info:eu-repo/grantAgreement/FCT/</value>
            </parameter>
        </preCondition>

        <preCondition id="ec_project_dc_relation">
            <class>pt.keep.metarepository.core.validator2.pre_conditions.AtLeastOneMetadataFieldByContent</class>
            <parameter key="field">
                <value>relation</value>
            </parameter>
            <parameter key="operator">
                <value>starts_with</value>
            </parameter>
            <parameter key="value">
                <value>info:eu-repo/grantAgreement/EC/</value>
            </parameter>
        </preCondition>

	<!-- added this new entry to preCondition of the thesis type. We can't have both doctor and masterthesis unless we
        change the value in the master/doctoral preConitions in key value to Thesis in both
	-->
        <preCondition id="thesis_dc_type">
            <class>pt.keep.metarepository.core.validator2.pre_conditions.AtLeastOneMetadataFieldByContent</class>
            <parameter key="field">
                <value>type</value>
            </parameter>
            <parameter key="operator">
                <value>ends_with</value>
            </parameter>
            <parameter key="value">
                <value>Thesis</value>
            </parameter>
        </preCondition>

        <preCondition id="master_thesis_dc_type">
            <class>pt.keep.metarepository.core.validator2.pre_conditions.AtLeastOneMetadataFieldByContent</class>
            <parameter key="field">
                <value>type</value>
            </parameter>
            <parameter key="operator">
                <value>ends_with</value>
            </parameter>
            <parameter key="value">
                <value>masterThesis</value>
            </parameter>
        </preCondition>

	<preCondition id="doctoral_thesis_dc_type">
            <class>pt.keep.metarepository.core.validator2.pre_conditions.AtLeastOneMetadataFieldByContent</class>
            <parameter key="field">
                <value>type</value>
            </parameter>
            <parameter key="operator">
                <value>ends_with</value>
            </parameter>
            <parameter key="value">
                <value>doctoralThesis</value>
            </parameter>
        </preCondition>
    </preConditions>

    <!-- Checks information. Each Check must have a severity, translations, 
		one class and one or more parameters (check specific check (class) information 
		to know what parameters must be configured) -->
    <checks>
        <check id="title_exists" severity="WARNING">
            <translation element="body" lang="pt">A indicação do aviso “sem título” é apresentada quando um registo não possui o elemento dc.title preenchido. O reconhecimento dos recursos online é sempre baseado num título, sendo também um item obrigatório no processo de depósito dos repositórios e revistas.</translation>
            <translation element="body" lang="en">A warning message “without title” appears when a register does not present the dc.title element filled in. The recognition of the online resources is always based on a heading, it is also a mandatory item in the deposit process of repositories and journals.</translation>
            <translation element="description" lang="pt">Verifica se existe pelo menos um título</translation>
            <translation element="description" lang="en">Checks if there is at least one title</translation>
            <translation element="severity" lang="pt">Sem título &lt;a target="_blank" href="/validator2/help#title_exists"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <translation element="severity" lang="en">Without title &lt;a target="_blank" href="/validator2/help#title_exists"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <class>pt.keep.metarepository.core.validator2.checks.AtLeastOneMetadataFieldExists</class>
            <parameter key="field">
                <value>title</value>
            </parameter>
        </check>

        <check id="author_exists" severity="WARNING">
            <translation element="body" lang="pt">A indicação “sem autor” é identificada quando não existe um autor associado ao registo no elemento dc.creator. A autoria dos trabalhos é um elemento obrigatório em muitos contextos, sendo necessário para a identificação dos autores e referências bibliográficas.</translation>
            <translation element="body" lang="en">A warning message “without author” appears when does not exist an associated author to the register in the dc.creator element. The authorship of the work is a mandatory information in many contexts, it is used in the authorship and bibliographical references.</translation>
            <translation element="description" lang="pt">Verifica se existe pelo menos um autor</translation>
            <translation element="description" lang="en">Checks if there is at least one author</translation>
            <translation element="severity" lang="pt">Sem autor &lt;a target="_blank" href="/validator2/help#author_exists"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <translation element="severity" lang="en">Without author &lt;a target="_blank" href="/validator2/help#author_exists"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <class>pt.keep.metarepository.core.validator2.checks.AtLeastOneMetadataFieldExists</class>
            <parameter key="field">
                <value>creator</value>
            </parameter>
        </check>

        <check id="date_exists_and_is_valid" severity="ERROR">
            <translation element="body" lang="pt">A indicação do erro “sem data ou formato de data inválida” surge quando o registo não tem um elemento dc.date definido, ou quando se encontra definido não está de acordo com um formato conhecido. Este campo é de preenchimento obrigatório, podendo deixar-se o mês e/ou o dia em branco se não se aplicar. A data associada ao registo deverá estar relacionada com a data de publicação, podendo existir outras, como a data de disponibilização, data de fim de embargo, etc.</translation>
            <translation element="body" lang="en">A warning message “without date or invalid date format” appears when the register does not include the dc.date element defined, or when it appears defined but not in an appropriate format. This is a mandatory field, the month and/or the day could be left in blank if were not used. The associated date to the register should be the publication date. However, there are another dates such as: the available date or the end of embargo period date, etc.</translation>
            <translation element="description" lang="pt">Verifica se a data existe e está num formato válido</translation>
            <translation element="description" lang="en">Checks if date exists and has a valid format</translation>
            <translation element="severity" lang="pt">Sem data ou formato de data inválido &lt;a target="_blank" href="/validator2/help#date_exists_and_is_valid"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <translation element="severity" lang="en">Without date or invalid date format &lt;a target="_blank" href="/validator2/help#date_exists_and_is_valid"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <class>pt.keep.metarepository.core.validator2.checks.AtLeastOneMetadataFieldByContent</class>
            <parameter key="field">
                <value>date</value>
            </parameter>
            <parameter key="operator">
                <value>matches</value>
            </parameter>
            <parameter key="value">
                <value>^[0-9]{4}(-[0-9]{2}(-[0-9]{2})?)?.*</value>
            </parameter>
        </check>

        <check id="rights_exists" severity="WARNING">
            <translation element="body" lang="pt">A indicação do aviso “sem política de acesso” surge na ausência da indicação do tipo de acesso (elemento dc.rights) a que se refere o registo. Aconselha-se o preenchimento do tipo de acesso que se pretende dar ao registo, de acordo com as &lt;a target="_blank" href="https://guidelines.openaire.eu/wiki/Literature_Guidelines:_Metadata_Field_Access_Level"&gt;diretrizes OpenAIRE&lt;/a&gt;. Esta informação define qual o tipo de acesso associado ao registo.</translation>
            <translation element="body" lang="en">A warning message “without access policy” appears if the register does not mention the type of access (dc.rights element). The type of access is recommended to be filled in, according to the &lt;a target="_blank" href="https://guidelines.openaire.eu/wiki/Literature_Guidelines:_Metadata_Field_Access_Level"&gt;OpenAIRE Guidelines&lt;/a&gt;. This information defines which type of access is associated to the item.</translation>
            <translation element="description" lang="pt">Verifica se existe pelo menos uma política de acesso</translation>
            <translation element="description" lang="en">Checks if there is at least one access policy</translation>
            <translation element="severity" lang="pt">Sem política de acesso &lt;a target="_blank" href="/validator2/help#rights_exists"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <translation element="severity" lang="en">Without access policy &lt;a target="_blank" href="/validator2/help#rights_exists"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <class>pt.keep.metarepository.core.validator2.checks.AtLeastOneMetadataFieldExists</class>
            <parameter key="field">
                <value>rights</value>
            </parameter>
        </check>

        <check id="type_exists" severity="ERROR">
            <translation element="body" lang="pt">A indicação do erro “sem tipo de documento” surge quando o registo foi disponibilizado sem o tipo de documento que corresponde às diretrizes DRIVER 2.0 ou OpenAIRE, particularmente o anexo: &lt;a target="_blank" href="http://www.driver-support.eu/documents/DRIVER_guidelines_annexes_1%201%201_pt_PT.pdf"&gt;diretrizes específicas para metadados Driver&lt;/a&gt;. Sendo um campo de preenchimento obrigatório, torna-se necessário a inclusão de conteúdo.</translation>
            <translation element="body" lang="en">A warning message “without document type” appears when the item was available without type of document following the &lt;a target="_blank" href="http://www.driver-support.eu/documents/DRIVER_guidelines_annexes_1%201%201_pt_PT.pdf"&gt;DRIVER 2.0&lt;/a&gt; or OpenAIRE Guidelines, essentially the specific guidelines to DRIVER metadata. It is a mandatory field.</translation>
            <translation element="description" lang="pt">Verifica se existe a definição de tipo de documento</translation>
            <translation element="description" lang="en">Checks if there is a document type definition</translation>
            <translation element="severity" lang="pt">Sem tipo de documento &lt;a target="_blank" href="/validator2/help#type_exists"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <translation element="severity" lang="en">Without type of document &lt;a target="_blank" href="/validator2/help#type_exists"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <class>pt.keep.metarepository.core.validator2.checks.AtLeastOneMetadataFieldExists</class>
            <parameter key="field">
                <value>type</value>
            </parameter>
        </check>

        <check id="description_exists" severity="WARNING">
            <translation element="body" lang="pt">A indicação do aviso “sem descrição” ocorre quando não existe um elemento dc.description preenchido. O preenchimento deste campo é opcional mas recomendado para possibilitar uma melhor recuperação ao nível dos motores de pesquisa e agregadores.</translation>
            <translation element="body" lang="en">A warning message “without description” appears when does not exist a dc.descritpion element filled in. This field is optional but recommended to allow a better retrievability by search engines and aggregators.</translation>
            <translation element="description" lang="pt">Verifica se existe pelo menos uma descrição</translation>
            <translation element="description" lang="en">Checks if there is at least one description</translation>
            <translation element="severity" lang="pt">Sem descrição &lt;a target="_blank" href="/validator2/help#description_exists"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <translation element="severity" lang="en">Without description &lt;a target="_blank" href="/validator2/help#description_exists"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <class>pt.keep.metarepository.core.validator2.checks.AtLeastOneMetadataFieldExists</class>
            <parameter key="field">
                <value>description</value>
            </parameter>
        </check>

        <check id="language_exists" severity="ERROR">
            <translation element="body" lang="pt">A indicação do erro “sem idioma” surge quando o registo foi depositado sem o idioma da publicação. Sendo um campo de preenchimento obrigatório, é necessário a inclusão de conteúdo de acordo com a norma ISO 639-3. Neste contexto, o elemento dc.language deve estar preenchido. Consulte as &lt;a target="_blank" href="https://guidelines.openaire.eu/wiki/Literature_Guidelines:_Metadata_Field_Language"&gt;diretrizes OpenAIRE&lt;/a&gt;.</translation>
            <translation element="body" lang="en">A warning message “without language” appears when the register was deposited without a publication language. It is a mandatory field and should be filled in according to the ISO 639-3 standard using dc.language element. Please have a look at &lt;a target="_blank" href="https://guidelines.openaire.eu/wiki/Literature_Guidelines:_Metadata_Field_Language"&gt;OpenAIRE Guidelines&lt;/a&gt;. </translation>
            <translation element="description" lang="pt">Verifica se existe pelo menos um idioma</translation>
            <translation element="description" lang="en">Checks if there is at least one language</translation>
            <translation element="severity" lang="pt">Sem idioma &lt;a target="_blank" href="/validator2/help#language_exists"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <translation element="severity" lang="en">Without language &lt;a target="_blank" href="/validator2/help#language_exists"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <class>pt.keep.metarepository.core.validator2.checks.AtLeastOneMetadataFieldExists</class>
            <parameter key="field">
                <value>language</value>
            </parameter>
        </check>

        <check id="language_is_valid" severity="ERROR">
            <translation element="body" lang="pt">A indicação do aviso “idioma inválido” surge quando o registo foi disponibilizado com um formato de idioma que não corresponde à norma &lt;a target="_blank" href="http://projeto.rcaap.pt/index.php/lang-pt/como-gerir-um-repositorio/ferramentas/iso-639-3"&gt;norma ISO 639-3&lt;/a&gt;, sendo necessária a sua correção. Este elemento encontra-se no elemento dc.language e deve estar de acordo com as &lt;a target="_blank" href="https://guidelines.openaire.eu/wiki/Literature_Guidelines:_Metadata_Field_Language"&gt;diretrizes OpenAIRE&lt;/a&gt;.</translation>
            <translation element="body" lang="en">A warning message “invalid language” appears when the register contains a language format which is not included in the &lt;a target="_blank" href="http://projeto.rcaap.pt/index.php/lang-pt/como-gerir-um-repositorio/ferramentas/iso-639-3"&gt;ISO 639-3 standard&lt;/a&gt;. This element corresponds to the dc.language element and should be according to the &lt;a target="_blank" href="https://guidelines.openaire.eu/wiki/Literature_Guidelines:_Metadata_Field_Language"&gt;OpenAIRE Guidelines&lt;/a&gt;. </translation>
            <translation element="description" lang="pt">Verifica se o idioma é válido</translation>
            <translation element="description" lang="en">Checks if there language is valid</translation>
            <translation element="severity" lang="pt">Idioma inválido &lt;a target="_blank" href="/validator2/help#language_is_valid"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <translation element="severity" lang="en">Invalid language &lt;a target="_blank" href="/validator2/help#language_is_valid"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <class>pt.keep.metarepository.core.validator2.checks.AtLeastOneMetadataFieldByContent</class>
            <parameter key="field">
                <value>language</value>
            </parameter>
            <parameter key="operator">
                <value>matches</value>
            </parameter>
            <parameter key="value">
                <value>^([a-z]{3}|other)$</value>
            </parameter>
        </check>

        <check id="rights_is_valid" severity="WARNING">
            <translation element="body" lang="pt">No relatório de validação surge o aviso “política de acesso inválida”, quando a mesma não se encontra definida de acordo com uma das seguintes terminologias: openAccess (Acesso Aberto), restrictedAccess (Acesso Restrito), closedAccess (Acesso Fechado) e embargoedAccess (Acesso Embargado). Consulte as &lt;a target="_blank" href="https://guidelines.openaire.eu/wiki/Literature_Guidelines:_Metadata_Field_Access_Level"&gt;diretrizes OpenAIRE&lt;/a&gt; para mais informações.</translation>
            <translation element="body" lang="en">In the validation report appears the warning “invalid access policy” when the policy is not defined according to the following terminologies: openAccess, restrictedAccess, closedAccess and embargoedAccess. For further information please have a look at &lt;a target="_blank" href="https://guidelines.openaire.eu/wiki/Literature_Guidelines:_Metadata_Field_Language"&gt;OpenAIRE Guidelines&lt;/a&gt;.</translation>
            <translation element="description" lang="pt">Verifica se a política de acesso é válida (openAccess, embargoedAccess, restrictedAccess, closedAccess)</translation>
            <translation element="description" lang="en">Checks if the access policy is valid (openAccess, embargoedAccess, restrictedAccess, closedAccess)</translation>
            <translation element="severity" lang="pt">Política de acesso inválida &lt;a target="_blank" href="/validator2/help#rights_is_valid"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <translation element="severity" lang="en">Invalid access policy &lt;a target="_blank" href="/validator2/help#rights_is_valid"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <class>pt.keep.metarepository.core.validator2.checks.AtLeastOneMetadataFieldByContent</class>
            <parameter key="field">
                <value>rights</value>
            </parameter>
            <parameter key="operator">
                <value>ends_with</value>
            </parameter>
            <parameter key="value">
                <value>openAccess</value>
                <value>embargoedAccess</value>
                <value>restrictedAccess</value>
                <value>embargoedAccess</value>
            </parameter>
        </check>

        <check id="type_is_valid" severity="ERROR">
            <translation element="body" lang="pt">A indicação o erro “tipo de documento inválido” surge quando o registo foi depositado com um formato de tipo de documento que não corresponde às diretrizes DRIVER 2.0, particularmente o anexo: &lt;a target="_blank" href="http://www.driver-support.eu/documents/DRIVER_guidelines_annexes_1%201%201_pt_PT.pdf"&gt;diretrizes específicas para metadados Driver&lt;/a&gt;, sendo um campo de preenchimento obrigatório torna-se necessária a sua correção. Esta informação surge no elemento dc.type e está restrita aos tipos definidos pelas diretrizes DRIVER e OpenAIRE. Podem ser usados outros tipos de documento para outras finalidades que não produção científica.</translation>
            <translation element="body" lang="en">A warning message “invalid type of document” appears when the register was deposited with a type of document which is not according to the &lt;a target="_blank" href="http://www.driver-support.eu/documents/DRIVER_guidelines_annexes_1%201%201_pt_PT.pdf"&gt;DRIVER 2.0 Guidelines&lt;/a&gt;, essentially specific guidelines to DRIVER metadata, being a mandatory field it is asked its correction. This information appears in dc.type element and it is restricted to the types defined by DRIVER and OpenAIRE Guidelines. Can be used for other document types to different purposes than scientific production.</translation>
            <translation element="description" lang="pt">Verifica se o tipo de documento é válido</translation>
            <translation element="description" lang="en">Checks if document type is valid</translation>
            <translation element="severity" lang="pt">Tipo de documento inválido &lt;a target="_blank" href="/validator2/help#type_is_valid"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <translation element="severity" lang="en">Invalid type of document &lt;a target="_blank" href="/validator2/help#type_is_valid"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <class>pt.keep.metarepository.core.validator2.checks.AtLeastOneMetadataFieldByContent</class>
            <parameter key="field">
                <value>type</value>
            </parameter>
            <parameter key="operator">
                <value>ends_with</value>
            </parameter>
            <parameter key="value">
                <value>article</value>
                <value>bachelorThesis</value>
                <value>masterThesis</value>
                <value>doctoralThesis</value>
                <value>book</value>
                <value>bookPart</value>
                <value>review</value>
                <value>conferenceObject</value>
                <value>lecture</value>
                <value>workingPaper</value>
                <value>preprint</value>
                <value>report</value>
                <value>annotation</value>
                <value>contributionToPeriodical</value>
                <value>patent</value>
                <value>other</value>
            </parameter>
        </check>

        <check id="driveraccess" severity="WARNING">
            <translation element="body" lang="pt">No contexto das diretrizes DRIVER, OpenAIRE ou outros perfis relacionados, seria de esperar que o registo estivesse em Acesso Aberto, com o dc.rights preenchido com o termo “openAccess”.</translation>
            <translation element="body" lang="en">Following DRIVER, OpenAIRE or other related profiles, the item should be in Open Access, with dc-rights element filled in with the word “openAccess”.</translation>
            <translation element="description" lang="pt">Verifica se a política de acesso está definida como Acesso Aberto</translation>
            <translation element="description" lang="en">Checks if the record access rights is defined as Open Access</translation>
            <translation element="severity" lang="pt">Registo devia estar em Acesso Aberto &lt;a target="_blank" href="/validator2/help#driveraccess"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <translation element="severity" lang="en">Item should be in Open Access &lt;a target="_blank" href="/validator2/help#driveraccess"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <class>pt.keep.metarepository.core.validator2.checks.AtLeastOneMetadataFieldByContent</class>
            <parameter key="field">
                <value>rights</value>
            </parameter>
            <parameter key="operator">
                <value>ends_with</value>
            </parameter>
            <parameter key="value">
                <value>open access</value>
                <value>openAccess</value>
            </parameter>
        </check>

        <check id="filesAndFormats" severity="WARNING">
            <translation element="body" lang="pt">A indicação do aviso “formato de ficheiro não identificado” ocorre quando o registo não foi depositado com um formato adequado para processos de preservação digital. Esta validação baseia-se no processo de validação usado pela ferramenta FITS.</translation>
            <translation element="body" lang="en">A warning message “file format not recognized” appears when the register was not deposited with a proper format supported by digital preservation processes. This validation is based on validation process used by FITS tool.</translation>
            <translation element="description" lang="pt">Verifica se os ficheiros são válidos (usando o FITS) e os seus formatos (mimetype) estão no conjunto de formatos preservation friendly</translation>
            <translation element="description" lang="en">Checks if files are valid (using FITS) and if their formats (mimetype) are in the preservation friendly formats set</translation>
            <translation element="severity" lang="pt">Formato de ficheiro não identificado &lt;a target="_blank" href="/validator2/help#filesAndFormats"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <translation element="severity" lang="en">File format not recognized &lt;a target="_blank" href="/validator2/help#filesAndFormats"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <translation element="severity.error.invoking.webservice" lang="pt">Identificação de formatos indisponível.</translation>
            <translation element="severity.error.invoking.webservice" lang="en">Format identification unavailable.</translation>
            <translation element="severity.error.unable.to.find.file.mimetype" lang="pt">Formato não identificado - "%1$s".</translation>
            <translation element="severity.error.unable.to.find.file.mimetype" lang="en">Format not identified - "%1$s".</translation>
            <translation element="severity.error.larger.than.max.size" lang="pt">O Ficheiro é maior que o tamanho máximo especificado - "%1$s".</translation>
            <translation element="severity.error.larger.than.max.size" lang="en">File is larger than the specified max-size - "%1$s".</translation>
            <translation element="severity.error.file.mimetype.differs.from.accepted.ones" lang="pt">"%1$s" possui um formato não recomendado, i.e. "%2$s".</translation>
            <translation element="severity.error.file.mimetype.differs.from.accepted.ones" lang="en">"%1$s" has a non recommended file format, i.e. "%2$s".</translation>


            <class>pt.keep.metarepository.core.validator2.checks.FilesAndFormats</class>
            <parameter key="value">
                <value>application/pdf</value>
                <value>application/xml</value>
                <value>text/xml</value>
                <value>text/plain</value>
                <value>application/odt</value>
                <value>application/ods</value>
                <value>image/tiff</value>
                <value>image/jpeg</value>
                <value>image/png</value>
                <value>text/csv</value>
                <value>audio/wav</value>
                <value>video/mp4</value>
                <value>video/mj2</value>
            </parameter>
        </check>

        <check id="list_openaire_project_ids" severity="OTHER" other_severity="openaire_project_ids">
            <translation element="description" lang="pt">Lista os documentos de projectos financiados pela Comissão Europeia</translation>
            <translation element="description" lang="en">List records from projects that are financed by the European Comission</translation>
            <translation element="severity" lang="pt">IDs dos projetos</translation>
            <translation element="severity" lang="en">Projects IDs</translation>
            <translation element="severity.output" lang="pt">%1$s</translation>
            <translation element="severity.output" lang="en">%1$s</translation>
            <class>pt.keep.metarepository.core.validator2.checks.OutputFirstMetadataFieldByContent</class>
            <parameter key="field">
                <value>relation</value>
            </parameter>
            <parameter key="operator">
                <value>starts_with</value>
            </parameter>
            <parameter key="value">
                <value>info:eu-repo/grantAgreement/EC/</value>
            </parameter>

        </check>
        
         <check id="list_fct_project_ids" severity="OTHER" other_severity="fct_project_ids">
	            <translation element="description" lang="pt">Lista os documentos de projectos financiados pela FCT</translation>
	            <translation element="description" lang="en">List records from projects that are financed by FCT</translation>
	            <translation element="severity" lang="pt">IDs dos projetos</translation>
	            <translation element="severity" lang="en">Projects IDs</translation>
	            <translation element="severity.output" lang="pt">%1$s</translation>
	            <translation element="severity.output" lang="en">%1$s</translation>
	            <class>pt.keep.metarepository.core.validator2.checks.OutputFirstMetadataFieldByContent</class>
	            <parameter key="field">
	                <value>relation</value>
	            </parameter>
	            <parameter key="operator">
	                <value>starts_with</value>
	            </parameter>
	            <parameter key="value">
	                <value>info:eu-repo/grantAgreement/FCT/</value>
	            </parameter>
        </check>

        <check id="list_embargoed_access" severity="OTHER" other_severity="list_embargoed_access">
            <translation element="description" lang="pt">Lista todos os documentos em acesso embargado</translation>
            <translation element="description" lang="en">List all embargoed records</translation>
            <translation element="severity" lang="pt">Acesso Embargado</translation>
            <translation element="severity" lang="en">Embargoed Access</translation>
            <translation element="severity.output" lang="pt">Documento em acesso embargado</translation>
            <translation element="severity.output" lang="en">Embargoed record</translation>
            <class>pt.keep.metarepository.core.validator2.checks.OutputFirstMetadataFieldByContent</class>
            <parameter key="field">
                <value>rights</value>
            </parameter>
            <parameter key="operator">
                <value>ends_with</value>
            </parameter>
            <parameter key="value">
                <value>embargoedAccess</value>
                <value>embargoedAccess (1 Year)</value>
                <value>embargoedAccess (2 Years)</value>
                <value>embargoedAccess (3 Years)</value>
            </parameter>

        </check>

        <check id="list_dc_type" severity="OTHER" other_severity="dc_type">
            <translation element="description" lang="pt">Lista os tipos dos documentos (dc.type)</translation>
            <translation element="description" lang="en">List records types (dc.type)</translation>
            <translation element="severity" lang="pt">Tipo de documento</translation>
            <translation element="severity" lang="en">Record type</translation>
            <translation element="severity.output" lang="pt">%1$s</translation>
            <translation element="severity.output" lang="en">%1$s</translation>
            <class>pt.keep.metarepository.core.validator2.checks.OutputFirstMetadataFieldValueIfExists</class>
            <parameter key="field">
                <value>type</value>
            </parameter>
        </check>

        <check id="list_dc_rights" severity="OTHER" other_severity="dc_rights">
            <translation element="description" lang="pt">Lista as politicas de acesso (dc.rights)</translation>
            <translation element="description" lang="en">List access policies (dc.rights)</translation>
            <translation element="severity" lang="pt">Politica de acesso</translation>
            <translation element="severity" lang="en">Record policy</translation>
            <translation element="severity.output" lang="pt">%1$s</translation>
            <translation element="severity.output" lang="en">%1$s</translation>
            <class>pt.keep.metarepository.core.validator2.checks.OutputFirstMetadataFieldValueIfExists</class>
            <parameter key="field">
                <value>rights</value>
            </parameter>
        </check>

        <!-- INTERNAL CHECK! YOU CAN ONLY CHANGE THE CHECK PARAMETER VALUES (key="value") -->
        <check severity="ERROR" id="INTERNAL_FileIsDownloadableWhenInOpenAccess">
            <translation element="body" lang="pt">A indicação “ficheiros inacessíveis” ocorre quando não é possível construir a ligação ao ficheiro associado ao registo. Esta construção do endereço está associada à funcionalidade de verificação de permissões apenas disponível na validação
                de recursos com a plataforma DSpace. Pode também ocorrer aquando da validação do formato de ficheiros através do FITS.</translation>
            <translation element="body" lang="en">A warning message “inaccessible files” appears when it is not possible to link the file to register. This address building is associated with the permission verification functionality only available in DSpace platforms during the validation process. It can also be occurred after the files format validation through the FITS.</translation>
            <translation element="description" lang="pt">Verifica se os ficheiros de acesso aberto estão acessiveis.</translation>
            <translation element="description" lang="en">Checks if open access files are acessible.</translation>
            <translation element="severity" lang="pt">Ficheiros inacessíveis. &lt;a target="_blank" href="/validator2/help#INTERNAL_FileIsDownloadableWhenInOpenAccess"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <translation element="severity" lang="en">Files not accessible. &lt;a target="_blank" href="/validator2/help#INTERNAL_FileIsDownloadableWhenInOpenAccess"&gt;&lt;span class="glyphicon glyphicon-question-sign"&gt;&lt;/span&gt;&lt;/a&gt;</translation>
            <class>pt.keep.metarepository.core.validator2.checks.FileIsDownloadableWhenInOpenAccess</class>
            <parameter key="field">
                <value>rights</value>
            </parameter>
            <parameter key="operator">
                <value>ends_with</value>
            </parameter>
            <parameter key="value">
                <value>open access</value>
                <value>openAccess</value>
            </parameter>
        </check>
    </checks>
</configuration>