Skip to content

Commit

Permalink
NDLサーチのインポート画面の検索リンクを修正 (#1864)
Browse files Browse the repository at this point in the history
* fix search link in ndl_books index

* fix default params for NDL Search

* fix fixture file
  • Loading branch information
nabeta authored Feb 18, 2024
1 parent 1e5f878 commit dfa0dd0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/views/ndl_books/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<% if @query.present? %>
<div id="submenu" class="ui-corner-all ui-widget-content">
<ul>
<li><%= link_to t('enju_ndl.same_query_in_ndl_search'), "https://ndlsearch.ndl.go.jp/books?any=#{u(@query)}" -%></li>
<li><%= link_to t('enju_ndl.same_query_in_ndl_search'), "https://ndlsearch.ndl.go.jp/search?keyword=#{u(@query)}&cs=bib&f-ht=ndl&display=panel" -%></li>
</ul>
</div>
<% end %>
8 changes: 4 additions & 4 deletions db/fixtures/enju_library/search_engines.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
search_engine_00001:
id: 1
name: NDL Search
url: https://iss.ndl.go.jp
base_url: https://iss.ndl.go.jp/books
url: https://ndlsearch.ndl.go.jp
base_url: https://ndlsearch.ndl.go.jp/search
http_method: get
query_param: any
note:
query_param: keyword
additional_param: "cs=bib\r\nf-ht=ndl\r\ndisplay=panel"
position: 1

0 comments on commit dfa0dd0

Please sign in to comment.