Embargo Terms via Metadata doesn't render correctly in UI

未关闭
#6,529 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
领域
frontend, web-dev

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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

主要语言
TypeScript
星标
180
派生
577
平均合并
1 天 23 小时
30 天内合并 PR
95

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DSpace/dspace-angular 的其他 Issue

查看 DSpace/dspace-angular 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。