[Archivesspace_Users_Group] Error when searching in archivesspace v2.1.1

Karen Miller k-miller3 at northwestern.edu
Fri Aug 25 11:20:15 EDT 2017

Hi, all.

We're having a different problem with archival objects that lack a Title (but include a Date sub-record) not showing up at all in the staff interface. In addition, any siblings (and in some cases cousins as well) do not show up.

For example, on our public v1.5 site, the Gwendolen M. Carter papers finding aid has three sub-series (General Correspondence, Letters of Recommendation, and Subject Files) under the second series (Administrative Files):


If you open the sub-series, you can see that the first two have archival object children that have Dates, but no Titles. The third sub-series (Subject Files) has archival objects with both Titles and Dates.

In the v2.1.1 Staff interface, the Administrative Files series shows up, but it has no children. They are present in the MySQL tables and their contents show up in the Container Inventory on the public interface. I added several components under the Administrative Files series in the staff interface and they saved, but they did not show up.

I found that any archival object that is added with a Date but no Title will save but not show up in a Resource component tree. In addition, if I save an archival object without a Title and use the +1 button to create a sibling, neither of them display in the component tree.

I have not tried RDE to see if that functions differently, but this seems like a pretty big issue as it is. It's not a data issue, it's a display issue - so maybe it will be straightforward to fix?


Karen D. Miller
Monographic Cataloger/Metadata Specialist
Northwestern University Libraries
Northwestern University
1970 Campus Drive
Evanston, IL 60208
k-miller3 at northwestern.edu

From: archivesspace_users_group-bounces at lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Harmeyer, Neal A
Sent: Wednesday, August 23, 2017 12:18 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] Error when searching in archivesspace v2.1.1

Hi Lance,

We've experienced this issue as well, in search results after the move to 2.1. We recently finished some testing on it. Our findings suggest this is directly related to archival objects that possess a date subrecord but no title. For these records, a search in the new public interface spawns the 'something went wrong' message-from our error logs and yours, it looks like the search parameters are looking for titles and when those do not exist, and it breaks the search. Although an archival object title in ASpace is conditionally required when a date subrecord is present, the search does not seem to recognize that flexibility.

In addition, it appears when a keyword search is conducted across all record types, and any one of the related archival objects (for example, a sibling or child archival object in a series) does not have a title, any search for terms in that series will also generate the 'something went wrong' search result.

We've been able to reproduce this result and repair it. Adding the titles resolved the search error. I also created a simple test record with archival objects that do not possess titles; a search within the titles gives the broken search result but once the title is entered and saved, the search works. I've attached an EAD export of that test resource record (we used unique terms for us, 'AEIOU' and 'fuzzy' so we could pinpoint the test). You'll see that the series in the EAD export does not have a <unittitle> field.

We've made the local decision to require title fields for all archival objects.

I hope this helps identity trouble areas. Perhaps the public interface search could be updated to work with archival objects lacking titles-or the archival object title field made required?

Neal Harmeyer
Digital Archivist
Archives and Special Collections
Purdue University Libraries
harmeyna at purdue.edu<mailto:harmeyna at purdue.edu>

-----Original Message-----
From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of DUPRE, LANCE
Sent: Wednesday, August 23, 2017 11:55 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: [Archivesspace_Users_Group] Error when searching in archivesspace v2.1.1


We have a test instance of archivespace 2.1.1 that is throwing the "Something went wrong" error when a search is performed searching all record types and for a keyword. It is only throwing the error for certain words (ex tree, navy and possibly others) and other words return results fine. The * wildcard also returns results.

Our production instance, on archivesspace 1.5.4 does not throw these errors when I do the same search.

I have attached the logs I think are relevant to the search.

Any help would be appreciated.


, [2017-08-23T11:48:57.060531 #11297] DEBUG -- : Thread-2022: GET /repositories/9/accessions?all_ids=true&modified_since=1503433821 [session: #<Session:0x291a34af @store={:user=>"search_indexer", :login_time=>2017-08-23 10:57:40 -0400, :expirable=>false}, @id="35ccdf0821cbc8065adf7f1576eb02e254564cd1484d6cc5dec6c673ae3ba709", @system_mtime=2017-08-23 15:48:27 UTC>] D, [2017-08-23T11:48:57.061902 #11297] DEBUG -- : Thread-2022: Post-processed params: {"all_ids"=>true, "modified_since"=>1503433821, :repo_id=>9} Aug 23, 2017 11:48:57 AM org.eclipse.jetty.server.handler.ContextHandler$Context log

INFO: F, [2017-08-23T11:48:57.063591 #11297] FATAL -- : [11861f8d-4ed2-494e-93d5-bde230321aec]

Aug 23, 2017 11:48:57 AM org.eclipse.jetty.server.handler.ContextHandler$Context log

INFO: F, [2017-08-23T11:48:57.064606 #11297] FATAL -- : [11861f8d-4ed2-494e-93d5-bde230321aec] ActionView::Template::Error (key not found: :title):

D, [2017-08-23T11:48:57.066191 #11297] DEBUG -- : Thread-2022: Responded with [200, {"Content-Type"=>"application/json", "Cache-Control"=>"private, must-revalidate, max-age=0", "Content-Length"=>"3"}, ["[]\n"]]... in 6ms Aug 23, 2017 11:48:57 AM org.eclipse.jetty.server.handler.ContextHandler$Context log

INFO: F, [2017-08-23T11:48:57.065756 #11297] FATAL -- : [11861f8d-4ed2-494e-93d5-bde230321aec]     50:           <% result.ancestors.each do |ancestor| %>

[11861f8d-4ed2-494e-93d5-bde230321aec]     51:             /

[11861f8d-4ed2-494e-93d5-bde230321aec]     52:             <span class="ancestor">

[11861f8d-4ed2-494e-93d5-bde230321aec]     53:             <%= link_to process_mixed_content(ancestor.fetch('title')).html_safe, app_prefix(ancestor.fetch('uri')) %>

[11861f8d-4ed2-494e-93d5-bde230321aec]     54:             </span>

[11861f8d-4ed2-494e-93d5-bde230321aec]     55:           <% end %>

[11861f8d-4ed2-494e-93d5-bde230321aec]     56:         <% else %>

Aug 23, 2017 11:48:57 AM org.eclipse.jetty.server.handler.ContextHandler$Context log

INFO: F, [2017-08-23T11:48:57.066453 #11297] FATAL -- : [11861f8d-4ed2-494e-93d5-bde230321aec]

Aug 23, 2017 11:48:57 AM org.eclipse.jetty.server.handler.ContextHandler$Context log

INFO: F, [2017-08-23T11:48:57.067003 #11297] FATAL -- : [11861f8d-4ed2-494e-93d5-bde230321aec] app/views/shared/_result.html.erb:53:in `block in _app_views_shared__result_html_erb___496965727_2290'

[11861f8d-4ed2-494e-93d5-bde230321aec] app/views/shared/_result.html.erb:50:in `_app_views_shared__result_html_erb___496965727_2290'

[11861f8d-4ed2-494e-93d5-bde230321aec] app/views/search/search_results.html.erb:72:in `block in _app_views_search_search_results_html_erb___490211956_2278'

[11861f8d-4ed2-494e-93d5-bde230321aec] app/views/search/search_results.html.erb:71:in `_app_views_search_search_results_html_erb___490211956_2278'

[11861f8d-4ed2-494e-93d5-bde230321aec] app/controllers/search_controller.rb:59:in `search'


Archivesspace_Users_Group mailing list

Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20170825/847f92a9/attachment.html>

More information about the Archivesspace_Users_Group mailing list