diff --git a/templates/AtomFeed.php b/templates/AtomFeed.php
index c5b19160..340534e5 100644
--- a/templates/AtomFeed.php
+++ b/templates/AtomFeed.php
@@ -26,7 +26,7 @@ print("\n");
Standard Ebooks
= SITE_URL ?>
-
+
foreach($entries as $entry){ ?>
= Template::AtomFeedEntry(entry: $entry) ?>
} ?>
diff --git a/templates/Header.php b/templates/Header.php
index 73d6d6bd..7bfd6760 100644
--- a/templates/Header.php
+++ b/templates/Header.php
@@ -46,8 +46,7 @@ if(!$isErrorPage){
if(!$isXslt){
if(!$isSafari){
header('content-type: application/xhtml+xml; charset=utf-8');
- print('');
- print("\n");
+ print("\n");
}
print("\n");
}
@@ -100,8 +99,7 @@ if(!$isXslt){
} ?>
-
-
+ // Firefox will show this as `Search with Standard Ebooks`. Can't include `charset` in the MIME type because Chrome will refuse it. ?>
if(!$isErrorPage){ ?>
diff --git a/templates/OpdsAcquisitionFeed.php b/templates/OpdsAcquisitionFeed.php
index aa6acd60..3501b3af 100644
--- a/templates/OpdsAcquisitionFeed.php
+++ b/templates/OpdsAcquisitionFeed.php
@@ -30,7 +30,7 @@ print("\n");
-
+
= Formatter::EscapeXml($title) ?>
if($subtitle !== null){ ?>
= Formatter::EscapeXml($subtitle) ?>
diff --git a/templates/OpdsNavigationFeed.php b/templates/OpdsNavigationFeed.php
index 46211991..a5bbdad0 100644
--- a/templates/OpdsNavigationFeed.php
+++ b/templates/OpdsNavigationFeed.php
@@ -21,7 +21,7 @@ print("\n");
-
+
if($parentUrl !== null){ ?>
} ?>
diff --git a/templates/RssFeed.php b/templates/RssFeed.php
index 733dc060..54704c11 100644
--- a/templates/RssFeed.php
+++ b/templates/RssFeed.php
@@ -21,7 +21,7 @@ print("\n");
= $updated->format(Enums\DateTimeFormat::Rss->value); ?>
http://blogs.law.harvard.edu/tech/rss
-
+
= SITE_URL ?>/images/logo-rss.png
= Formatter::EscapeXml($title) ?> /* must be identical to channel title */ ?>
diff --git a/www/css/artwork.css b/www/css/artwork.css
index 940e8273..7b4c50b2 100644
--- a/www/css/artwork.css
+++ b/www/css/artwork.css
@@ -161,6 +161,10 @@ form[action^="/artworks/"]{
width: auto;
}
+.artworks p.no-results{
+ margin-top: 4rem;
+}
+
.artworks form.browse-artwork button{
justify-self: end;
grid-column: 1 / span 4;
diff --git a/www/css/core.css b/www/css/core.css
index c1ff61db..399dbdb3 100644
--- a/www/css/core.css
+++ b/www/css/core.css
@@ -1793,7 +1793,7 @@ main nav.pagination ol li a:hover{
}
p.no-results{
- margin-top: 4rem;
+ margin-top: 2rem;
margin-bottom: 2rem;
font-style: italic;
text-align: center;
diff --git a/www/ebooks/collections.php b/www/ebooks/collections.php
index fd1c15e4..ef85a441 100644
--- a/www/ebooks/collections.php
+++ b/www/ebooks/collections.php
@@ -11,8 +11,7 @@ catch(Exceptions\EbookNotFoundException){
}
header('content-type: application/xml; charset=utf-8');
-print('');
-print("\n");
+print("\n");
?>
foreach($ebook->CollectionMemberships as $collectionMembership){ ?>
diff --git a/www/feeds/atom/search.php b/www/feeds/atom/search.php
index 043d2a83..27af52fd 100644
--- a/www/feeds/atom/search.php
+++ b/www/feeds/atom/search.php
@@ -13,8 +13,7 @@ print("\n
= SITE_URL ?>/feeds/atom/all?query== urlencode($query) ?>
-
-
+
Search Results
Results for “= Formatter::EscapeXml($query) ?>”.
= SITE_URL ?>/images/logo.png
diff --git a/www/feeds/opds/search.php b/www/feeds/opds/search.php
index 1299cd39..0c522170 100644
--- a/www/feeds/opds/search.php
+++ b/www/feeds/opds/search.php
@@ -16,7 +16,7 @@ print("\n/ebooks/ebooks?query== urlencode($query) ?>" rel="alternate" type="text/html"/>
-
+
Search Results
Results for “= Formatter::EscapeXml($query) ?>”.
= SITE_URL ?>/images/logo.png
diff --git a/www/feeds/rss/search.php b/www/feeds/rss/search.php
index 13d9b991..66ce4451 100644
--- a/www/feeds/rss/search.php
+++ b/www/feeds/rss/search.php
@@ -20,7 +20,7 @@ print("\n= NOW->format(Enums\DateTimeFormat::Rss->value) ?>
http://blogs.law.harvard.edu/tech/rss
-
+
= SITE_URL ?>/images/logo-rss.png
Search Results /* must be identical to channel title */ ?>
diff --git a/www/images/favicons/favicon-16x16.ico b/www/images/favicons/favicon-16x16.ico
new file mode 100644
index 00000000..31da8b28
Binary files /dev/null and b/www/images/favicons/favicon-16x16.ico differ
diff --git a/www/images/favicons/favicon-64x64.png b/www/images/favicons/favicon-64x64.png
new file mode 100644
index 00000000..c2872485
Binary files /dev/null and b/www/images/favicons/favicon-64x64.png differ
diff --git a/www/ebooks/opensearch.php b/www/opensearch.php
similarity index 57%
rename from www/ebooks/opensearch.php
rename to www/opensearch.php
index 428a7d88..fa9b82d5 100644
--- a/www/ebooks/opensearch.php
+++ b/www/opensearch.php
@@ -1,6 +1,6 @@
-header('Content-Type: text/xml; charset=utf-8');
-print('');
+header('Content-Type: application/opensearchdescription+xml'); // Can't include `charset` because Chrome doesn't like it.
+print("\n");
?>
Standard Ebooks
@@ -10,6 +10,12 @@ print('');
open
UTF-8
UTF-8
+ = SITE_URL ?>/favicon-16x16.ico
+ = SITE_URL ?>/favicon.ico
+ = SITE_URL ?>/favicon-64x64.png
+
+ // For compatibility; most OpenSearch parsers don't understand `application/xhtml+xml`. ?>
+