Content-Length: 399452 | pFad | https://github.com/internetarchive/openlibrary/pull/9692

4F #9253 Removed the "in English" link from the editions list on a work page. by poojatalele · Pull Request #9692 · internetarchive/openlibrary · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#9253 Removed the "in English" link from the editions list on a work page. #9692

Conversation

poojatalele
Copy link
Contributor

@poojatalele poojatalele commented Aug 5, 2024

Closes #9253

hotfix

Technical

This pull request addresses the issue of the "in English" link in the editions list on the work page. The link has been converted to plain text to improve the user experience by removing unnecessary navigation. The changes were made in the template file to render the language text as plain text instead of a hyperlink.

Testing

  1. Pull the latest changes from this branch.
  2. Start the application using Docker Compose.
  3. Navigate to a work page with editions listed in different languages.
  4. Confirm that the "in English" text is displayed as plain text and is not a clickable link.

Screenshot

Before changes:
image
After changes:
image

Stakeholders

@RayBB

@poojatalele
Copy link
Contributor Author

@RayBB Kindly review my PR.

Copy link
Collaborator

@RayBB RayBB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I deployed this to testing and it does appear to be removing the links as can be seen here.

However, lets use the commify_list function again.

Also, please provide screenshots of what it looks like before and after your change and in the case where multiple languages are assigned to the edition.

Thanks for you contributions!

@@ -64,7 +64,7 @@
<!-- Formats are store as a raw string -->
$book.physical_format.replace('[', '').replace(']','')
$if book.languages:
$:_('in %(languagelist)s', languagelist=commify_list(thingrepr(l) for l in book.languages))
$:_('in %(languagelist)s', languagelist=', '.join(l.name for l in book.languages))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was there a particular reason you removed commify_list here and replaced it with ', '.join ?

If not, lets put it back since it was probably there for a reason and it used in the other places where we are displaying languages.

@poojatalele
Copy link
Contributor Author

I deployed this to testing and it does appear to be removing the links as can be seen here.

However, lets use the commify_list function again.

Also, please provide screenshots of what it looks like before and after your change and in the case where multiple languages are assigned to the edition.

Thanks for you contributions!

@RayBB done!! Kindly review.

Copy link
Collaborator

@RayBB RayBB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On testing and working well.
Now we need staff to merge it.

Great job on this one :)

@RayBB RayBB added the Needs: Staff / Internal Reviewed a PR but don't have merge powers? Use this. label Aug 7, 2024
@poojatalele
Copy link
Contributor Author

poojatalele commented Aug 7, 2024

On testing and working well. Now we need staff to merge it.

Great job on this one :)

Sounds good :)
Looking forward to work on other issues as well!
@RayBB

@cdrini
Copy link
Collaborator

cdrini commented Aug 9, 2024

@RayBB or @poojatalele could we get a clearer title to this one? The title of a PR should be understandable without a lot of extra context. Thank you!

@poojatalele poojatalele changed the title #9253 Fix: Hyperlink to plain-text #9253 Removed the "in English" link from the editions list on a work page. Aug 9, 2024
@poojatalele
Copy link
Contributor Author

@RayBB or @poojatalele could we get a clearer title to this one? The title of a PR should be understandable without a lot of extra context. Thank you!

@cdrini Changed, pls check once.

@mekarpeles mekarpeles added the Needs: Submitter Input Waiting on input from the creator of the issue/pr [managed] label Aug 12, 2024
@github-actions github-actions bot removed the Needs: Submitter Input Waiting on input from the creator of the issue/pr [managed] label Aug 12, 2024
@cdrini cdrini removed their assignment Aug 12, 2024
@cdrini cdrini merged commit 16a5c6f into internetarchive:master Aug 12, 2024
4 checks passed
@cdrini cdrini added On testing.openlibrary.org and removed Needs: Staff / Internal Reviewed a PR but don't have merge powers? Use this. labels Aug 12, 2024
@poojatalele poojatalele deleted the 9253/fix/In-English-link-to-hypertext branch August 15, 2024 09:26
Souvik-Cyclic pushed a commit to Souvik-Cyclic/openlibrary that referenced this pull request Aug 17, 2024
…list on a work page. (internetarchive#9692)

Co-authored-by: Drini Cami <cdrini@gmail.com>
SivanC pushed a commit to SivanC/openlibrary that referenced this pull request Aug 20, 2024
…list on a work page. (internetarchive#9692)

Co-authored-by: Drini Cami <cdrini@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can we remove the "in English" link from the editions list on a work page?
4 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/internetarchive/openlibrary/pull/9692

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy