Skip to content

Commit

Permalink
add country of publisher to landing page journal searches: minisearch…
Browse files Browse the repository at this point in the history
… and modal quick search
  • Loading branch information
amdomanska committed Nov 27, 2023
1 parent d693e5a commit 11c2e8e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions portality/static/js/doaj.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ var doaj = {
<option value="issn">ISSN</option>
<option value="subject">Subject</option>
<option value="publisher">Publisher</option>
<option value="country">Country of publisher</option>
`)
} else {
fields.html(`
Expand Down
1 change: 1 addition & 0 deletions portality/templates/doaj/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ <h1>Find open access journals & articles.</h1>
<option value="issn">ISSN</option>
<option value="subject">Subject</option>
<option value="publisher">Publisher</option>
<option value="country">Country of publisher</option>
</select>

<button class="input-group__input label" type="submit">Search</button>
Expand Down
1 change: 1 addition & 0 deletions portality/templates/includes/_quick_search_modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ <h2 class="modal__title">Quick search</h2>
<option value="issn">ISSN</option>
<option value="subject">Subject</option>
<option value="publisher">Publisher</option>
<option value="country">Country of publisher</option>
</select>
<button type="submit">
<span data-feather="search" aria-hidden="true"></span><span class="sr-only"> Search</span>
Expand Down
3 changes: 2 additions & 1 deletion portality/view/doaj.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ def search_post():
"subject" : ("index.classification", "index.classification"),
"author" : (None, "bibjson.author.name"),
"issn" : ("index.issn.exact", None),
"publisher" : ("bibjson.publisher.name", None)
"publisher" : ("bibjson.publisher.name", None),
"country" : ("index.country", None)
}
default_field_opts = field_map.get(field, None)
default_field = None
Expand Down

0 comments on commit 11c2e8e

Please sign in to comment.