[Archivesspace_Users_Group] Rendering identifiers in search results?
Majewski, Steven (sdm7g)
sdm7g at virginia.edu
Thu Nov 2 17:30:19 EDT 2017
It appears that you can also append “&display_identifier=true” to the search results URL and hit return.
[cid:6A5CE777-CD58-4F46-A313-E38F8822D7FA at virginia.edu]
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20171102/5de75d9e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: searchid.png
Type: image/png
Size: 1352001 bytes
Desc: searchid.png
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20171102/5de75d9e/attachment-0001.png>
More information about the Archivesspace_Users_Group
mailing list