-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Librarian-only: Empty brackets after author name #10352
Comments
Hi @zorae, Could you please help me reproduce this issue? Currently, I’m not signed in as a librarian; I’m using a local user account. Could you provide a reference or guide on how I can sign up or gain librarian access? Alternatively, if it’s possible to reproduce the issue in a local environment, I do have the admin instance set up there. Any specific instructions or tips would be greatly appreciated! |
Hey @zorae is this issue active , would love to contribute |
It's possible that copydocs.py and adding local users and changing their usergroups might be helpful here, if one desires to try to replicate this locally. In terms of creating additional users, step 3 can probably be skipped if one is willing to use http://localhost:8080/admin/people to use the 'login as another user' feature that's available after clicking on a specific account (e.g. your new librarian account). No idea whether any of this is relevant. |
There are two related cases where useful author date information is not shown:
|
@SharkyBytes on the local environment, I would recommend altering openlibrary/openlibrary/macros/BookByline.html Lines 7 to 12 in d9fb943
show_years=True , eg
And then you can modify an author to have specific birth / death dates we want to test. I believe you will need to update the |
Problem
OL displays the years of birth and death in author links if you are signed in as a librarian. When both fields are empty, this is omitted. But when the fields contain something that no year can be parsed from, an empty pair of brackets with a hyphen is displayed.
Example page where the author’s birth year cannot be parsed because I set it to “19xx” to indicate that she was born in the 20th century.
Context
Breakdown
Requirements Checklist
Related files
openlibrary/openlibrary/macros/BookByline.html
Lines 7 to 12 in d9fb943
Stakeholders
Instructions for Contributors
The text was updated successfully, but these errors were encountered: