Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Investigate .zenodo.json Download Behavior and Download-Both Option

Đang mở
#30 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
javascript
Lĩnh vực
frontend, web-dev

Hướng nghiên cứu

Bắt đầu bằng việc xem xét hành vi tải xuống hiện có và các bản xem trước siêu dữ liệu được tạo, sau đó tái hiện cách các tên tệp bắt đầu bằng dấu chấm được xử lý trên các trình duyệt và hệ điều hành khác nhau. Làm rõ liệu kết quả được chấp nhận là tài liệu, hướng dẫn cho người dùng hay một ZIP chứa CITATION.cff và .zenodo.json; công việc được coi là hoàn tất khi hành vi đã chọn đáng tin cậy và được lập tài liệu cho người dùng.

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

Mô tả

Summary

OpenCite currently generates and downloads a Zenodo metadata file using the filename .zenodo.json. However, some browsers and operating systems do not reliably preserve leading-dot filenames when downloading files from a web application. As a result, users may receive zenodo.json instead of .zenodo.json.

Current Behavior

  • OpenCite generates valid Zenodo metadata.
  • The application requests the filename .zenodo.json.
  • Some browser/OS combinations may save the file as zenodo.json instead.

Expected Behavior

When possible, users should receive a correctly named .zenodo.json file that is compatible with GitHub and Zenodo workflows.

Potential Solutions

Option 1: Keep Current Behavior
  • Continue requesting .zenodo.json.
  • Document browser limitations.
  • Users can rename the file manually if necessary.
Option 2: Add "Download Both" ZIP Export

Provide a single ZIP download containing:

  • CITATION.cff
  • .zenodo.json

Benefits:

  • Preserves the exact filename inside the archive.
  • Allows users to download both metadata files at once.

Tradeoffs:

  • Requires users to extract the archive before use.
  • Adds additional export logic and ZIP generation dependencies.
Option 3: Add User Guidance
  • Display a note explaining that some browsers may remove the leading dot.
  • Provide instructions for renaming the file if needed.

Notes

  • The application previews already display the generated metadata and can be copied directly by users if download behavior is inconsistent.
  • This issue does not affect the validity of the generated metadata, only the downloaded filename.
  • A future "Download Both" feature would likely address this issue while also improving usability.
Ngôn ngữ chính
JavaScript
Star
0
Fork
0
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
5

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 Imageomics/OpenCite

Tất cả issue của Imageomics/OpenCite

Issue tương tự

Thêm issue về JavaScript

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.