internetarchive / internetarchive/openlibrary

Cover fallback processing for IA identifiers doesn't work

Open
#1,848 4 comments 0 reactions 0 assignees View on GitHub
Affects: Configuration Lead: @cdrini Module: Docker Module: Solr Needs: Investigation Priority: 3 Theme: Development Type: Bug
Dominant language
Python
Stars
6.7k
Forks
2k
Avg merge
2d 19h
Merged PRs (30d)
138

Description

## Description
> What problem are we solving? What does the experience look like today? What are the symptoms?

When I load up a new instance of openlibrary, I'm seeing badly formatted URIs for the default covers like so:

![screen shot 2019-01-26 at 9 22 05 am](https://user-images.githubusercontent.com/148752/51792066-3f5b4080-2161-11e9-8d43-ce281cc685c9.png)

When I edit
openlibrary/templates/books/custom_carousel.html
and add $_(book)

I see:
```
], 'ia': ['completeworksofm01twaiiala', 'completeworksofm21twai', 'completeworksofm00twai', 'completeworksofm10twai'], 'author_key': ['OL18319A'], 'read_url': '//archive.org/stream/completeworksofm01twaiiala'}>
```

## Expectation
A book should only ever have one ia so why it has an aray I'm not sure.
An issue with solr that powers this carousel or with the initial data maybe (#1846)?
Maybe this is a bug and the template is wrong and for some reason this doesn't show up in production?

## Details

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.