Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8298 Modifico el mapeo a crossref para que no se mapee los dois de identifier.other como doi #102

Merged
merged 1 commit into from
Sep 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8298 Modifico el mapeo a crossref para que no se mapee los dois de id…
…entifier.other como doi

Ahora se pueden agregar dois externos a items que ya tengan dois propios
No se puede registrar un doi propio cuando ya se tiene uno externo
  • Loading branch information
santit96 committed Sep 9, 2022
commit 3a5dd378315151092ea1606e02baf0527b88e2f6
12 changes: 1 addition & 11 deletions dspace/config/crosswalks/DIM2Crossref.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -832,17 +832,7 @@
<doi_data xmlns="http://www.crossref.org/schema/4.4.2">

<doi>
<!-- Solo seteo el doi si ya existe alguno en sedici.identifier.other, sino se setea uno nuevo despúes, por afuera del xsl -->
<xsl:if
test="dspace:field[@mdschema='sedici' and @element='identifier' and @qualifier='other'
and java:ar.edu.unlp.sedici.dspace.utils.Utils.isDoi(text())]">
<xsl:variable name="doi"
select="dspace:field[@mdschema='sedici' and @element='identifier' and @qualifier='other'
and java:ar.edu.unlp.sedici.dspace.utils.Utils.isDoi(text())]" />
<xsl:variable name="doiStartIndex"
select="string-length(substring-before($doi,'10.'))+1" />
<xsl:value-of select="substring($doi,$doiStartIndex)" />
</xsl:if>
<!-- No se setea aca el doi, sino que se setea uno nuevo despúes por afuera del xsl en el CrosrefConnector -->
</doi>

<timestamp>
Expand Down