Skip to content

Commit

Permalink
Merge pull request #855 from pulibrary/add_daos
Browse files Browse the repository at this point in the history
add daos to EAD output
  • Loading branch information
regineheberlein authored Oct 15, 2024
2 parents 69d764f + 1b86ee5 commit bdbe9cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Metrics/BlockLength:
Metrics/ClassLength:
Exclude:
- 'app/models/staff_directory_generator.rb'
- 'app/models/aspace_svn/get_eads_job.rb'

Metrics/CyclomaticComplexity:
Exclude:
Expand All @@ -41,6 +42,7 @@ Metrics/CyclomaticComplexity:
Metrics/MethodLength:
Exclude:
- 'app/controllers/application_controller.rb'
- 'app/models/aspace_svn/get_eads_job.rb'

Metrics/PerceivedComplexity:
Exclude:
Expand Down
4 changes: 3 additions & 1 deletion app/models/aspace_svn/get_eads_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def report
# then write the results to the file
def write_eads_to_file(dir, repo, id)
Rails.logger.info("Now processing #{repo}/#{id}")
record = @client.get("/repositories/#{repo}/resource_descriptions/#{id}.xml")
record = @client.get("/repositories/#{repo}/resource_descriptions/#{id}.xml", {
query: { include_daos: true }
})
ead = Nokogiri::XML(record.body)
ead.remove_namespaces!
eadid = ead.at_xpath('//eadid/text()')
Expand Down

0 comments on commit bdbe9cb

Please sign in to comment.