Embargo Terms via Metadata doesn't render correctly in UI

Đang mở
#6,529 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
angular, java, typescript
Lĩnh vực
frontend, web-dev

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
180
Fork
577
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
95

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DSpace/dspace-angular

Tất cả issue của DSpace/dspace-angular

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.