LP#1409844: Towards more meaningful catalogue <title> elements
authorDan Scott <dscott@laurentian.ca>
Mon, 12 Jan 2015 18:13:03 +0000 (13:13 -0500)
committerDan Scott <dscott@laurentian.ca>
Sat, 17 Jan 2015 15:43:28 +0000 (10:43 -0500)
commit07f4d2a161026d07e7bbc509d46aaa7abaa48004
treef0ceaf8f6bc7e7d7ec2c498c789380010139c855
parentbd76b81e72990149ccfde44bb0478db176f99a6b
LP#1409844: Towards more meaningful catalogue <title> elements

Currently the catalogue <title> elements are formed by concatenating the page
title to "Catalog - ". This means that on browsers with more than a few tabs
open, users will only see "Catalog -", which doesn't help them navigate their
tabs. Also, in search results in general search engines, "Catalog - " is
expected to be a significant word as it appears first in the title of the page.

Instead, let's remove the "Catalog - " prefix entirely and add "- <library
name>" as a suffix to the page title. That way, a user will see the page title
in bookmarks, search results, and other contexts with the most important
information up front (whether that's the title of the work in record details,
or the fact that it's a search for some string), followed by the name of the
library to give it a specific context.

In addition, use the name of the library in the OpenSearch definition to be
more meaningful than the current hardcoded "Evergreen OpenSearch" (many users
will not even know what Evergreen is, if they stumble across the little "Add
search engine" widget at all).

And finally, use the HTML and URI filters appropriately to avoid any possible
damage :)

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Conflicts:
Open-ILS/src/templates/opac/parts/base.tt2
Open-ILS/src/templates/opac/parts/base.tt2