Skip to content

Commit

Permalink
Merge pull request #2 from nla/MS-CSCS-75
Browse files Browse the repository at this point in the history
CSCS-75 - investigate / remediate issues with arrearage xlsx csv import
  • Loading branch information
michael-james-smith authored Mar 16, 2022
2 parents 805fdf1 + 0b87ed4 commit fee6f3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
17 changes: 3 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NLA Staff Spreadsheet Importer Plugin
=====================================

An ArchivesSpace (v2.1.x) plugin developed for the National Library of Australia.
An ArchivesSpace (v3.x) plugin developed for the National Library of Australia.

It was originally written and maintained by Hudson Molonglo (https://github.com/hudmol/nla_staff_spreadsheet_importer).

Expand Down Expand Up @@ -119,18 +119,6 @@ Next, add the plugin to your ArchivesSpace `config/config.rb` file:
# the list
AppConfig[:plugins] = ['local', 'nla_staff_spreadsheet_importer']

This plugin needs additional libraries to parse Excel files, so
there's one final step. From your ArchivesSpace directory, run the
`initialize-plugin` script to install the plugin's dependencies like
this:

cd /path/to/your/archivesspace
scripts/initialize-plugin.sh nla_staff_spreadsheet_importer

This will take a minute or two, but you should see it install the
`rubyXL` library.


### From the development version

As above, but instead of downloading and unpacking zip files, just
Expand All @@ -143,7 +131,8 @@ directory like this:

## Configuring it

The Obsolete Carriers CSV importer requires a configuration setting. This will be checked at start up.
The Obsolete Carriers CSV importer requires a configuration setting. This will be checked at start up. Add this line of
config to the [archivesspace_local](https://github.com/nla/archivesspace_local) repo.

AppConfig[:obsolete_carriers_authorizer_agent_uri] = '/agents/corporate_entities/3'

Expand Down
3 changes: 1 addition & 2 deletions backend/converters/arrearage_converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -475,10 +475,9 @@ def self.from_row(row, context)
def initialize(row, jsonmodel, context)
super

jsonmodel.language = 'eng'
jsonmodel.finding_aid_language = row['finding_aid_language']
jsonmodel.finding_aid_script = row['finding_aid_script']
jsonmodel.lang_materials = format_lang_material(row)
jsonmodel.lang_materials = [format_lang_material(row)]

if row['collection_id']
jsonmodel['id_0'] = row['collection_id']
Expand Down

0 comments on commit fee6f3c

Please sign in to comment.