geonetwork / geonetwork/core-geonetwork

Media print should show full date information

Open
#8,087 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
521
Forks
514
Avg merge
6d 13h
Merged PRs (30d)
19

Description

**Describe the bug**
When printing a page, the full date should be displayed instead of "A year ago"

**To Reproduce**
Steps to reproduce the behavior:
1. Locate metadata record and view the records - you should see something like the following on the web page view. (hovering over the text shows the real date)
![image](https://github.com/geonetwork/core-geonetwork/assets/1868233/b13c9a3f-971d-4273-80ec-8ff8b2eb4056)

2. Print the record. You will see
![image](https://github.com/geonetwork/core-geonetwork/assets/1868233/360c2b37-5b2b-4261-81d9-a167d9d0e2b1)

**Expected behavior**
I expected that the real date would be printed when put on paper.
Otherwise someone looking a page a couple years later will still see "A Year Ago"

**Additional context**
It should be possible to have this work using the CSS media print.

Contributor guide

Open the contributing guide

Research direction

Reproduce the record print view described in the issue, then inspect the frontend styles that apply to CSS media print and the relative-date display. The work is done when printed records show the full date rather than text such as "A year ago".

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.