Embargo Terms via Metadata doesn't render correctly in UI

オープン
#6,529 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
angular, java, typescript
領域
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時間
マージ済み PR(30日)
95

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DSpace/dspace-angular のほかの issue

DSpace/dspace-angular の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。