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

Adds work subtitles to reading stats #8638

Merged
merged 5 commits into from
Jan 2, 2024

Conversation

siddoinghisjob
Copy link
Contributor

@siddoinghisjob siddoinghisjob commented Dec 17, 2023

Closes #8585 . Adds subtitles along with titles of books in stats

Technical

added subtitle attribute to work_json in mybooks.py and printed it in readinglog_stats.html

Testing

Step 1 : Add a book that has subtitle to Already read
Step 2 : Go to mybook section and click on the My Reading Stats and click on any bar

Screenshot

Stakeholders

@mekarpeles mekarpeles changed the title Fixed #8585 Adds work subtitles to My Stats #8585 Dec 18, 2023
@siddoinghisjob
Copy link
Contributor Author

@cdrini Sorry to bother you but if there is any thing more to fix then kindly let me know I ll do that.. so that this PR can be merged ASAP🙏

Copy link
Collaborator

@cdrini cdrini left a comment

Choose a reason for hiding this comment

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

Hey @siddoinghisjob ! Could you please attach a screenshot of this working? You should be able to fully test this in your local environment :)

@@ -13,7 +13,7 @@
$jsdef render_works_list(works):
<ul class="works-list">
$for work in works:
<li><a href="$work.key" style="font-style:oblique">$work.title</a>
<li><a href="$work.key" style="font-style:oblique">$work.title $work.subtitle</a>
Copy link
Collaborator

Choose a reason for hiding this comment

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

There should be a : between the title and sub title. Make sure not display the : if there is no subtitle!

@cdrini cdrini added the Needs: Submitter Input Waiting on input from the creator of the issue/pr [managed] label Dec 20, 2023
@cdrini cdrini changed the title Adds work subtitles to My Stats #8585 Adds work subtitles to My Stats Dec 20, 2023
@cdrini cdrini changed the title Adds work subtitles to My Stats Adds work subtitles to reading stats Dec 20, 2023
@siddoinghisjob
Copy link
Contributor Author

Hey @siddoinghisjob ! Could you please attach a screenshot of this working? You should be able to fully test this in your local environment :)

open_lib_ss

@siddoinghisjob
Copy link
Contributor Author

Hi @cdrini! I have made a PR. Please let me know if you need anything else to be fixed.

@siddoinghisjob
Copy link
Contributor Author

Hey @cdrini , it's been a while since I made the changes. Anything more to fix :)

@cdrini cdrini removed the Needs: Submitter Input Waiting on input from the creator of the issue/pr [managed] label Jan 2, 2024
Copy link
Collaborator

@cdrini cdrini left a comment

Choose a reason for hiding this comment

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

Lgtm! Appears correctly on testing.openlibrary.org . Thank you @siddoinghisjob !

@cdrini cdrini merged commit d6de499 into internetarchive:master Jan 2, 2024
3 checks passed
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.

Work subtitles should be shown in matching works in My Stats
2 participants