Embargo Terms via Metadata doesn't render correctly in UI

Abierto
#6,529 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
angular, java, typescript
Área
frontend, web-dev

Línea de trabajo

Start by tracing the Angular UI path that displays the embargo metadata value, using the reproduction settings and the local.embargo.terms example in the issue. Check how the UI handles the value "24 months" and compare it with the expected embargo term. Done when the metadata value is rendered as the corresponding embargo term; the issue does not identify a UI file or test.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug needs triage

Describe the bug

A clear and concise description of what the bug is. Include the version(s) of DSpace where you've seen this problem & what web browser you were using. Link to examples if they are public.

To Reproduce

Steps to reproduce the behavior:
Enable embargo using dspace-api/src/main/java/org/dspace/embargo/DayTableEmbargoSetter.java function
2. Set the following values

embargo.terms.days = 3 months:90,6 months:183,12 months:365,18 months:548,24 months:730,30 months:913,36 months:1095,42 months:1278,48 months:1461
embargo.terms.open = forever-do-not-use-me
embargo.field.terms = local.embargo.terms
embargo.field.lift = local.embargo.lift
  1. Try one of the values like "24 months"
    You see something like
image
        "local.embargo.terms" : [ {
          "value" : "24 months",
          "language" : null,
          "authority" : null,
          "confidence" : -1,
          "place" : 0
        } ],

This is the metadata value that goes into that field

Expected behavior

Embargo date to be converted to the term specified in the metadata from the string.

Documentation

Lenguaje dominante
TypeScript
Estrellas
180
Forks
577
Merge medio
1 d 23 h
PR fusionados (30 d)
95

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de DSpace/dspace-angular

Todos los issues de DSpace/dspace-angular

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.