-('A'..'Z').each do |letter|
- book_ids = @store.query_books_by_author(letter + '%')
- puts 'Authors starting with "' + letter + '": ' + book_ids.length.to_s() + ' books.'
- counts[letter] = book_ids.length
-
- page = Page.new(@store)
- if 'A' != letter
- page.back = ['../output_' + (letter.ord - 1).chr + '/index.html', 'Prev']
- end
- if 'Z' != letter
- page.forward = ['../output_' + (letter.ord + 1).chr + '/index.html', 'Next']
- end
- page.output_dir = 'output_' + letter
- page.title = "Authors starting with '" + letter + "'"
- page.up = ['../output/index.html', 'Index']