Chapter 58. Including Locally Hosted Content in Your Public Interface

Table of Contents

File Location and Format
Example

It is also possible to show added content that has been generated locally by placing the content in a specific spot on the web server. It is possible to have local book jackets, reviews, TOC, excerpts or annotations.

File Location and Format

By default the files will need to be placed in directories under /openils/var/web/opac/extras/ac/ on the server(s) that run Apache.

The files need to be in specific folders depending on the format of the added content. Local Content can only be looked up based on the record ID at this time.

URL Format: http://catalog/opac/extras/ac/{type}/{format}/r/{recordid}

  • type is one of jacket, reviews, toc, excerpt or anotes.
  • format is type dependent:

    • for jacket, one of small, medium or large
    • others, one of html, xml or json … html is the default for non-image added content
  • recordid is the bibliographic record id (bre.id).