This repository has been archived by the owner on Jan 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add a new endpoint /packages/opensearch that serves fedora_packages.xml * Add a new opensearch template * Add opensearch description link to chrome and search templates so the provider is visible in these two pages.
- Loading branch information
1 parent
f8c9f38
commit 200d7ae
Showing
4 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> | ||
<ShortName>${title}</ShortName> | ||
<Description>Search ${title}</Description> | ||
<Tags>${title}</Tags> | ||
<Url type="text/html" | ||
template="${request.host_url}${tg.url('/s')}/{searchTerms}"/> | ||
<Url type="application/opensearchdescription+xml" | ||
template="${request.host_url}${tg.url('/opensearch')}/fedora_packages.xml"/> | ||
<SearchForm>http://127.0.0.1${tg.url('/s')}</SearchForm> | ||
</OpenSearchDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters