Fixed the wrong book indexing in the catalog detail page.
Separated origin type category to its own case class