Add sort title to API response

This commit is contained in:
Alex Ling 2022-01-15 12:09:03 +00:00
parent b83ccf1ccc
commit 1b32dc3de9
2 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,7 @@ class Entry
json.field {{str}}, @{{str.id}}
{% end %}
json.field "title_id", @book.id
json.field "sort_title", sort_title
json.field "pages" { json.number @pages }
unless slim
json.field "display_name", @book.display_name @title

View File

@ -209,6 +209,7 @@ class Title
json.field {{str}}, @{{str.id}}
{% end %}
json.field "signature" { json.number @signature }
json.field "sort_title", sort_title
unless slim
json.field "display_name", display_name
json.field "cover_url", cover_url