├── config.yml ├── docs ├── plugin_bibs.png ├── plugin_index.png ├── plugin_items.png ├── plugin_menu.png └── plugin_holdings.png ├── frontend ├── plugin_init.rb ├── assets │ ├── alma_integrations.js │ └── alma_integrations.css ├── views │ └── alma_integrations │ │ ├── index.html.erb │ │ ├── _add_bibs_form.html.erb │ │ ├── search.html.erb │ │ ├── _resource_linker.html.erb │ │ ├── _form.html.erb │ │ ├── _add_holdings_form.html.erb │ │ ├── _search_bibs.html.erb │ │ ├── _items_pagination.html.erb │ │ ├── _search_holdings.html.erb │ │ └── _search_items.html.erb ├── routes.rb ├── locales │ └── en.yml ├── models │ ├── alma_requester.rb │ ├── record_builder.rb │ └── alma_integrator.rb └── controllers │ └── alma_integrations_controller.rb └── README.md /config.yml: -------------------------------------------------------------------------------- 1 | repository_menu_controller: alma_integrations 2 | no_automatic_routes: true 3 | -------------------------------------------------------------------------------- /docs/plugin_bibs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duspeccoll/alma_integrations/HEAD/docs/plugin_bibs.png -------------------------------------------------------------------------------- /docs/plugin_index.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duspeccoll/alma_integrations/HEAD/docs/plugin_index.png -------------------------------------------------------------------------------- /docs/plugin_items.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duspeccoll/alma_integrations/HEAD/docs/plugin_items.png -------------------------------------------------------------------------------- /docs/plugin_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duspeccoll/alma_integrations/HEAD/docs/plugin_menu.png -------------------------------------------------------------------------------- /docs/plugin_holdings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duspeccoll/alma_integrations/HEAD/docs/plugin_holdings.png -------------------------------------------------------------------------------- /frontend/plugin_init.rb: -------------------------------------------------------------------------------- 1 | ArchivesSpace::Application.extend_aspace_routes(File.join(File.dirname(__FILE__), "routes.rb")) 2 | -------------------------------------------------------------------------------- /frontend/assets/alma_integrations.js: -------------------------------------------------------------------------------- 1 | function AlmaIntegrations($alma_integrations_form) { 2 | this.$alma_integrations_form = $alma_integrations_form; 3 | this.setup_form(); 4 | } 5 | 6 | AlmaIntegrations.prototype.setup_form = function() { 7 | var self = this; 8 | $(document).trigger("loadedrecordsubforms.aspace", this.$alma_integrations_form); 9 | }; 10 | 11 | $(document).ready(function() { 12 | var almaIntegrations = new AlmaIntegrations($("#alma_integrations_form")); 13 | }); 14 | -------------------------------------------------------------------------------- /frontend/views/alma_integrations/index.html.erb: -------------------------------------------------------------------------------- 1 | <%= setup_context :title => I18n.t("plugins.alma_integrations.title") %> 2 | 3 |
<%= results['marc'] %>
34 | No MMS ID is provided for this Resource, so no Holdings may be retrieved from or added to Alma. Holdings must be associated with an Alma BIB record.
9 | <% else %> 10 | <% if results['holdings'].nil? or results['holdings'].empty? %> 11 |No holdings were found.
12 | <% else %> 13 |Displaying <%= results['count'] %> record(s):
14 || <%= I18n.t("plugins.alma_integrations.labels.holdings_id") %> | 18 |<%= I18n.t("plugins.alma_integrations.labels.location_code") %> | 19 |<%= I18n.t("plugins.alma_integrations.labels.location_name") %> | 20 |
|---|---|---|
| <%= holding['id'] %> | 26 |<%= holding['code'] %> | 27 |<%= holding['name'] %> | 28 |
No items found in Alma for this collection.
9 | <% else %> 10 |Displaying Items <%= results['offset'] + 1 %> - <%= [results['offset'] + 10, results['count']].min %> of <%= results['count'] %>:
11 || Item PID | 15 |Barcode | 16 |Description | 17 |Location | 18 |Alma Profile | 19 |ArchivesSpace Profile | 20 |Top Container URI | 21 |
|---|---|---|---|---|---|---|
| <%= item['pid'] %> | 27 |<%= item['barcode'] %> | 28 |<%= item['description'] %> | 29 |<%= item['location'] %> | 30 |<%= item['alma_profile'] %> | 31 |<%= item['as_profile'] unless item['as_profile'].blank? %> | 32 |33 | <% unless item['top_container'].blank? %> 34 | <%= item['top_container'] %> 35 | <% end %> 36 | | 37 |