Consolidate database list display templates

Based on work by Emily Bamsey <em_bamsey@laurentian.ca>, this gives us a
single template file that displays all of the different types of
database lists, whether inside a research guide or standalone page.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Database list display cleanup

Rather than laboriously jumping in and out of PHP mode using <?php .. ?>
markers all over the place, concatenate text to a variable and print it
in one shot at the end. This enables us to avoid printing a node
entirely if it has no actual content, after expired / unpublished /
other conditions prevent databases from being added to the list.

This also makes it easier to read what the heck we're doing to generate
list item entries.

Also, add a closing UL tag to match the opening UL tag.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Escape ampersands in URLs to make W3 validator happier

That old chestnut of "&" being what everyone enters for their URLs, but
HTML requires the & to be escaped as an entity because... science!

Signed-off-by: Dan Scott <dscott@laurentian.ca>
HTML validation cleanup

Use a style attribute instead of a bare width attribute.

Nest the P tag for the description within the LI element.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Escape HTML properly (htmlspecialchars)

Protect against accidental or malicious HTML injection

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Added Refworks link and Notes text fields.

If there is a link to Refworks it will show beside the (?) for the
Description as well as if there are any additional notes or issue with
the database, they will be displayed.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Tuck RefWorks info under the hidden "(?)" block

Let's keep using the hidden description field to hold extraneous
information, like the link for "Exporting to RefWorks" instructions.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Do not list databases that have not been published

If the database is not published, then it will not appear in our A-Z
database list. And if the database is in a database list, but not in the
A-Z list, then that is confusing. So let's err on the side of not
showing users unpublished material (which does not sound like all that
much of an error, after all...)

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Show unpublished databases in Librarian mode as red flags

Rather than hiding the databases from all users, let logged-in
librarians see the unpublished databases, but give a bright red "NOT
PUBLISHED" warning flag beside the name of the database to indicate that
regular users will _not_ see these in the resource list.

Signed-off-by: Dan Scott <dscott@laurentian.ca>