From c6d57e2e628a8ee3c3f9674dff39ce86e9c6fa3d Mon Sep 17 00:00:00 2001 From: Austin Schaffer Date: Thu, 24 May 2018 17:07:00 -0400 Subject: [PATCH 1/3] Added an option to configure the button image Adds the ability to change the request button image through the en.yml locale. --- public/locales/en.yml | 3 ++- public/views/aeon/_aeon_request_action.html.erb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/locales/en.yml b/public/locales/en.yml index 48965f8..6bfae1c 100644 --- a/public/locales/en.yml +++ b/public/locales/en.yml @@ -1,5 +1,6 @@ en: plugins: aeon_fulfillment: + request_button_icon: fa-external-link request_button_label: Aeon Request - requesting_disabled: This record cannot be sent in a request. + requesting_disabled: This record cannot be sent in a request. diff --git a/public/views/aeon/_aeon_request_action.html.erb b/public/views/aeon/_aeon_request_action.html.erb index fab0604..0d305a8 100644 --- a/public/views/aeon/_aeon_request_action.html.erb +++ b/public/views/aeon/_aeon_request_action.html.erb @@ -31,7 +31,7 @@ mapper = case record <% end %> <% end %> From 739ef0a8d0a973eaa24902479fe1b38ff467be1c Mon Sep 17 00:00:00 2001 From: Austin Schaffer Date: Thu, 24 May 2018 17:11:33 -0400 Subject: [PATCH 2/3] Updated README.md --- Readme.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 105fbbb..6b0958a 100644 --- a/Readme.md +++ b/Readme.md @@ -69,8 +69,11 @@ of ArchivesSpace may cause changes in the functionality of this plugin. - Fixed a bug where only the first container would be included in the request. - Markup is now stripped from the `title` parameter. - Plugin has been refactored so builtin ArchivesSpace functionality can be used. -- **20180410** +- **20180524** - Fixed a bug with the `:requests_permitted_for_containers_only` setting + - Added a locale to the en.yml that allows sites to configure the icon on + the Aeon request button without editing the `.html.erb` file directly. + Please check https://fontawesome.com/ for the list of available icons. ## Configuring Plugin Settings From 1b97188d30d8148635948c6b58377b100d206036 Mon Sep 17 00:00:00 2001 From: Austin Schaffer Date: Thu, 24 May 2018 17:14:27 -0400 Subject: [PATCH 3/3] Replaced entire class of tag with the locale string --- public/locales/en.yml | 2 +- public/views/aeon/_aeon_request_action.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/locales/en.yml b/public/locales/en.yml index 6bfae1c..2fa0d83 100644 --- a/public/locales/en.yml +++ b/public/locales/en.yml @@ -1,6 +1,6 @@ en: plugins: aeon_fulfillment: - request_button_icon: fa-external-link + request_button_icon: fa fa-external-link fa-3x request_button_label: Aeon Request requesting_disabled: This record cannot be sent in a request. diff --git a/public/views/aeon/_aeon_request_action.html.erb b/public/views/aeon/_aeon_request_action.html.erb index 0d305a8..14084ff 100644 --- a/public/views/aeon/_aeon_request_action.html.erb +++ b/public/views/aeon/_aeon_request_action.html.erb @@ -31,7 +31,7 @@ mapper = case record <% end %> <% end %>