[Archivesspace_Users_Group] Rendering identifiers in search results?
Majewski, Steven (sdm7g)
sdm7g at virginia.edu
Fri Nov 3 16:06:37 EDT 2017
You may have misunderstood: I didn’t state AppConfig currently controls that display. I was proposing that as a possible change to make “&display_identifier=true” the default view. ( Although for consistency, I somewhat prefer doing it via preference settings, if possible. )
On Nov 3, 2017, at 12:18 PM, Brian Thomas <bthomas at tsl.texas.gov<mailto:bthomas at tsl.texas.gov>> wrote:
Trying those modifications to the config.rb and the search_controller.rb files in my 2.1.2 VM test environment yielded no results, although the lyrasis plugin worked like a charm. I just added a core enhancement request to Jira since it does seem like something that should already exist.
Thanks for your help everyone.
Brian
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 Majewski, Steven (sdm7g)
Sent: Thursday, November 2, 2017 4:30 PM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] Rendering identifiers in search results?
It appears that you can also append “&display_identifier=true” to the search results URL and hit return.
<image001.png>
But there doesn’t appear to be a way to set this in defaults or config:
https://github.com/archivesspace/archivesspace/blob/master/frontend/app/controllers/search_controller.rb#L66
@display_identifier
=
params[:display_identifier]
?
params[:display_identifier]
: false
Perhaps those lines should be changes to use an AppConfig[] value ? ( :frontend_search_display_identifier ? )
Although I would be as happy to have the default be true. ( Does anybody NOT want to see ids ? )
Since extra columns for the browse pages for Accession, Resource and Digital Object are set in user preferences, it would probably be more consistent to control it with a preference setting instead of an AppConfig setting ( but that would probably be a bit more work ).
BTW: Some of those functions controlling the search listing view are in the search_helper code:https://github.com/archivesspace/archivesspace/blob/master/frontend/app/helpers/search_helper.rb
— Steve.
On Nov 1, 2017, at 3:04 PM, Rush, Michael <michael.rush at yale.edu<mailto:michael.rush at yale.edu>> wrote:
Brian,
Assuming it is the staff interface you are referring to, there is a plugin available that will add identifiers to search results.
See https://github.com/lyrasis/aspace-search-identifier. Seems to work fine on our TEST instance, which runs 2.2, I believe.
Best,
Mike
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 Brian Thomas
Sent: Wednesday, November 1, 2017 2:55 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: [Archivesspace_Users_Group] Rendering identifiers in search results?
Does anybody have advice/examples of how to get identifiers to show up in search results?
What I have so far is that there does not seem to be a graphical way to do this; so looking into the structure of 2.2 on github to potentially modify and add to my local plugin I found the file “frontend/app/views/search/_listing.html.erb”. This seems to be the file that facilitates rendering search results(?). It has a line in it that says <% add_identifier_column ifshow_identifier_column? %>. There is no other reference to rendering an identifier. Ideas?
Thanks,
Brian Thomas
Electronic Records Specialist
Texas State Library and Archives Commission
1201 Brazos Street
Austin, TX 78701
PH: (512) 475-3374
e-mail: bthomas at tsl.texas.gov<x-msg://12/bthomas@tsl.texas.gov>
tsl.texas.gov<https://urldefense.proofpoint.com/v2/url?u=http-3A__tsl.texas.gov_&d=DwMFAg&c=cjytLXgP8ixuoHflwc-poQ&r=fWPDMLxJ1Hpw4R8oN7OV0U6P4Nt_f5o8aUkXaby3nOY&m=6tqkLMmL_DL1FBjY2qSuacgfBQmaywcZmCTKGBrtUAE&s=LDnSmLjh2HP3o2oa4JEiczaEXu_pB3SipUtx_rntpCU&e=>
<image001.png>
_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20171103/3fe295b2/attachment.html>
More information about the Archivesspace_Users_Group
mailing list