aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-10-21 14:26:06 -0700
committerBryan Newbold <bnewbold@archive.org>2020-10-21 14:26:06 -0700
commit51836c4d2348c33e75e20f7259ed8b4f24c47a60 (patch)
tree2a17dbc0268e87e633fd0ed5d2d1e31773f09867
parent5d48eddfd95bc447a9dd2defc532e60c12a6b464 (diff)
downloadfatcat-scholar-51836c4d2348c33e75e20f7259ed8b4f24c47a60.tar.gz
fatcat-scholar-51836c4d2348c33e75e20f7259ed8b4f24c47a60.zip
update search form target metadata
-rw-r--r--fatcat_scholar/templates/base.html2
-rw-r--r--fatcat_scholar/templates/help.html2
-rw-r--r--fatcat_scholar/templates/home.html2
3 files changed, 3 insertions, 3 deletions
diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html
index 7424a01..079b298 100644
--- a/fatcat_scholar/templates/base.html
+++ b/fatcat_scholar/templates/base.html
@@ -191,7 +191,7 @@
</div>
<div class="ui twelve wide column">
<form class="" id="search_form" name="search_form" action="{{ lang_prefix }}/search" method="get" role="search" itemprop="potentialAction" itemscope itemtype="https://schema.org/SearchAction">
- <meta itemprop="target" content="https://{{ settings.SCHOLAR_DOMAIN }}/fulltext/search?q={q}"/>
+ <meta itemprop="target" content="/search?q={q}"/>
<div class="ui form">
<div class="ui action input large fluid">
<input type="search" placeholder="{{ _("by title, authors, keywords...") }}" name="q" aria-label="{{ _('search for papers') }}" required itemprop="query-input" style="border-radius: 0; border: 1px #999 solid;" {% if query and query.q %}value="{{ query.q }}"{% endif %}>
diff --git a/fatcat_scholar/templates/help.html b/fatcat_scholar/templates/help.html
index f5486b3..3baeb30 100644
--- a/fatcat_scholar/templates/help.html
+++ b/fatcat_scholar/templates/help.html
@@ -2,7 +2,7 @@
{% macro example_search_box(query) -%}
<form class="" id="" action="{{ lang_prefix }}/search" method="get" role="search" aria-label="papers" itemprop="potentialAction" itemscope itemtype="https://schema.org/SearchAction">
- <meta itemprop="target" content="https://{{ settings.SCHOLAR_DOMAIN }}/fulltext/search?q={q}"/>
+ <meta itemprop="target" content="/search?q={q}"/>
<div class="ui form">
<div class="ui action input large fluid">
<input type="search" value="{{ query }}" name="q" aria-label="search metadata" required itemprop="query-input" style="border-radius: 0; border: 1px #999 solid;">
diff --git a/fatcat_scholar/templates/home.html b/fatcat_scholar/templates/home.html
index d0f5da0..3840841 100644
--- a/fatcat_scholar/templates/home.html
+++ b/fatcat_scholar/templates/home.html
@@ -9,7 +9,7 @@
<div style="width: 100%; text-align: center;">
<img src="/static/scholar-vaporwave-logo.png" alt="{{ _("Internet Archive Scholar logo (vaporwave)") }}" style="max-width: 100%; margin-bottom: 1.5em;">
<form class="" id="search_form" action="{{ lang_prefix }}/search") }}" method="get" role="search" aria-label="papers" itemprop="potentialAction" itemscope itemtype="https://schema.org/SearchAction">
- <meta itemprop="target" content="https://{{ settings.SCHOLAR_DOMAIN }}/fulltext/search?q={q}"/>
+ <meta itemprop="target" content="/search?q={q}"/>
<div class="ui form">
<div class="ui action input big fluid">
<input type="text" placeholder="{{ _("by title, author, keywords...") }}" name="q" aria-label="search metadata" required itemprop="query-input" style="border-radius: 0; border: 1px #999 solid;">