Opened from disk

This site is meant to be served, so its folder tree and search do not work when a page is opened from disk. Run ghg serve in the folder of your ghg.toml, or serve the site's folder with any web server, then open the address it gives.

Skip to content
Theme

Feature: Searching the catalogue

Anyone can search the catalogue, members or not.

  1. Given the catalogue holds these books:
    titleauthoryear
    The HobbitJ. R. R. Tolkien1937
    MiddlemarchGeorge Eliot1871
    Dom CasmurroMachado de Assis1899

From the scenario

  1. When someone searches for "hobbit"
  2. Then the results are:
    title
    The Hobbit

  1. Given the catalogue holds these books:
    titleauthoryear
    The HobbitJ. R. R. Tolkien1937
    MiddlemarchGeorge Eliot1871
    Dom CasmurroMachado de Assis1899

From the scenario

  1. When someone searches for "Eliot"
  2. Then the results are:
    title
    Middlemarch

  1. Given the catalogue holds these books:
    titleauthoryear
    The HobbitJ. R. R. Tolkien1937
    MiddlemarchGeorge Eliot1871
    Dom CasmurroMachado de Assis1899

From the scenario

  1. When someone searches for "dragons"
  2. Then the results are empty
  3. And the page says "Nothing matches dragons."