Merge pull request #1051 from bookwyrm-social/inventaire-edition
Sort edition list for better import results from inventaire
This commit is contained in:
commit
8d875f73ff
|
@ -123,9 +123,11 @@ class Connector(AbstractConnector):
|
||||||
|
|
||||||
def load_edition_data(self, work_uri):
|
def load_edition_data(self, work_uri):
|
||||||
"""get a list of editions for a work"""
|
"""get a list of editions for a work"""
|
||||||
url = "{:s}?action=reverse-claims&property=wdt:P629&value={:s}".format(
|
url = (
|
||||||
|
"{:s}?action=reverse-claims&property=wdt:P629&value={:s}&sort=true".format(
|
||||||
self.books_url, work_uri
|
self.books_url, work_uri
|
||||||
)
|
)
|
||||||
|
)
|
||||||
return get_data(url)
|
return get_data(url)
|
||||||
|
|
||||||
def get_edition_from_work_data(self, data):
|
def get_edition_from_work_data(self, data):
|
||||||
|
|
Loading…
Reference in New Issue