Skip to content

Commit

Permalink
hide purchase_request link from manifestation detail page
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Feb 17, 2024
1 parent fd42d04 commit 73145a3
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/manifestations/_reservation.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
<br />
(<%= link_to_if(current_user.has_role?('Librarian'), t('page.number_of_reservations', count: @reserved_count), reserves_path(query: "manifestation_id_i:#{@manifestation.id}")) -%>)</li>
<%- else -%>
<!--
<% if defined?(EnjuPurchaseRequest) %>
<li><%= link_to t('activerecord.models.purchase_request'), new_purchase_request_path(purchase_request: {url: manifestation_url(@manifestation)}) %></li>
<% end %>
-->
<%- end -%>
<% else %>
<% unless Pundit.policy_scope!(current_user, @manifestation.items).for_checkout.empty? %>
Expand Down
49 changes: 49 additions & 0 deletions config/locales/enju_purchase_request_en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
en:
activerecord:
models:
purchase_request: Purchase request
order: Order
order_list: Order list

attributes:
purchase_request:
title: Title
author: Author
publisher: Publisher
isbn: ISBN
date_of_publication: Date of publication
price: Price
url: URL
note: Note
accepted_at: Accepted at
denied_at: Denied at
deleted_at: Deleted at
pub_date: Publication date
order:
position: Position
state: State
order_list:
title: Title
note: Note
ordered_at: Ordered at
deleted_at: Deleted at
state: State

purchase_request:
user_purchase_request: "%{login_name} 's purchase requests"
library_group_purchase_request: "Purchase requests in %{library_group_name}"
add_to_purchase_request: "Add to purchase request"
all_request: "All requests"
ordered: "Ordered"
not_ordered: "Not ordered"
add_to_order_list: "Add to order list"
remove_from_order_list: "Remove from order list"
order:
create_order_list: "You should create an order list."
specify_purchase_request: "You should specify the purchase request."
order_list:
library_group_order_list: "Order lists in %{library_group_name}"
total_price: "Total price"
create_order_sheet: "Create an order sheet"
requested: "Not ordered"
ordered: "Ordered"
49 changes: 49 additions & 0 deletions config/locales/enju_purchase_request_ja.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
ja:
activerecord:
models:
purchase_request: 購入リクエスト
order: 発注
order_list: 発注リスト

attributes:
purchase_request:
title: タイトル
author: 著者
publisher: 出版社
isbn: ISBN
date_of_publication: 出版日
price: 価格
url: URL
note: 注記
accepted_at: 受理時刻
denied_at: 拒絶時刻
deleted_at: 削除時刻
pub_date: 出版日
order:
position: 位置
state: 状態
order_list:
title: 発注リスト名
note: 注記
ordered_at: 発注時刻
deleted_at: 削除時刻
state: 状態

purchase_request:
user_purchase_request: "%{login_name} さんの購入依頼資料"
library_group_purchase_request: "%{library_group_name} での購入依頼資料"
add_to_purchase_request: "図書館の購入依頼に追加"
all_request: "全ての購入依頼"
ordered: "発注済み"
not_ordered: "未発注"
add_to_order_list: "発注リストに追加する"
remove_from_order_list: "発注リストから削除する"
order:
create_order_list: "発注リストを作成してください。"
specify_purchase_request: "購入依頼を指定してください。"
order_list:
library_group_order_list: "%{library_group_name} の発注リスト"
total_price: "合計価格"
create_order_sheet: "発注票を作成する"
requested: "未発注"
ordered: "発注済み"

0 comments on commit 73145a3

Please sign in to comment.