Works should include first publish date

Bug #338761 reported by Edward Betts
2
Affects Status Importance Assigned to Milestone
Open Library
Fix Released
Medium
Lance Arthur

Bug Description

Work pages should show the first publish date of the work. This can be calculated by finding the earliest publish date of the editions linked to the work. I've written code to do this for works loaded to staging. It is running now.

Tags: works
Revision history for this message
Anand Chitipothu (anandology) wrote : Re: [Bug 338761] [NEW] Works should include first publish date

> Work pages should show the first publish date of the work. This can be
> calculated by finding the earliest publish date of the editions linked
> to the work. I've written code to do this for works loaded to staging.
> It is running now.

That won't be accurate because work.editions gives only 20 records
even if there are more.

Revision history for this message
Edward Betts (edwardbetts) wrote :

This code has finished running. Most works on staging should now have a first publish date.

Revision history for this message
Edward Betts (edwardbetts) wrote :

Whoops, good point Anand.

Revision history for this message
Edward Betts (edwardbetts) wrote :

I just checked my code, it isn't using the work.editions backreference. It is using a query to look for editions and increasing offset to step through the pages and get all the editions.

Changed in openlibrary:
assignee: nobody → edward-debian
importance: Undecided → Medium
milestone: none → 1.7
Changed in openlibrary:
status: New → In Progress
Revision history for this message
Lance Arthur (lance-arthur) wrote :

Still a problem on Upstream, i.e. "Through the Looking-Glass" shows a first published date of 1977.

http://upstream.openlibrary.org/works/OL151417W/Through_the_Looking-Glass

Changed in openlibrary:
milestone: 1.7 → general-bucket
Changed in openlibrary:
assignee: Edward Betts (edwardbetts) → Anand Chitipothu (anandology)
Revision history for this message
Anand Chitipothu (anandology) wrote :

added first_publish_year to Work class.

Changed in openlibrary:
status: In Progress → Fix Released
Revision history for this message
George (george-archive) wrote :

Re-opening. It needs a presence in the UI.

Lance - perhaps we should consider making the default sort by date (and not by whether you can read it, as it is currently). We should allow sort by date published too, in the DataTable.

Changed in openlibrary:
status: Fix Released → In Progress
assignee: Anand Chitipothu (anandology) → Lance Arthur (lance-arthur)
Revision history for this message
Lance Arthur (lance-arthur) wrote :

Table now presents itself "unsorted" because default sort is by published year (though if the year is blank, those appear first). The table is sortable by date, online read, online buy or borrow. The table will also remember its state if you leave it by writing a small (4k-limited) cookie to the browser so the table will re-sort itself to the last known state if you leave and return to it.

Changed in openlibrary:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.