Feature #6308

Add a setting to sort by identifier then title and expose it on the relevant browse pages

Added by Kehan Harman over 8 years ago. Updated over 7 years ago.

Status:VerifiedStart date:02/09/2014
Priority:CriticalDue date:
Assignee:Dan Gillean% Done:


Category:Search / Browse
Target version:Release 2.1.0
Google Code Legacy ID: Tested version:
Sponsored:No Requires documentation:


We have a requirement to sort by identifiers rather than titles through most of our system. I will be creating a pull request which adds this functionality. Relates to #6302 and will work with it if it gets merged as well.

Related issues

Copied from Access to Memory (AtoM) - Feature #6302: Add Authority description_identifier to search index and ... Verified 02/09/2014


#2 Updated by Dan Gillean over 8 years ago

  • Category set to Search / Browse
  • Assignee set to Dan Gillean
  • Target version set to Release 2.1.0

Hi Kehan,

This sounds like a useful option, and likely one we would maintain, depending on how it is implemented. Are you intending to add it to the sort button on the relevant browse pages? will you be adding this for just authority records (given #6302), or to other records such as archival institutions, archival descriptions, etc. as well?

If you're feeling ambitious, another option would be to include it as an option in the default sort options available for anonymous and authenticated users in Admin > Settings > Global - just a thought ;)

For reference, the sort button in our User Manual: https://www.accesstomemory.org/docs/2.0/user-manual/access-content/navigate/#sort-button

#3 Updated by Dan Gillean over 8 years ago

Ha, never mind, I just saw the pull request and see that you're way ahead of me. When Jesus has a chance, I will have him merge the code into 2.x so I can test it in our development environment. Thanks!

#4 Updated by Jesús García Crespo almost 8 years ago

  • Status changed from New to QA/Review

Thanks Kehan, this is now in qa/2.1.x.

The browse pages affected are:
  • actor
  • function
  • informationobject
  • repository
  • rightsholder
  • accession
  • donor

Dan will revise once more while he is updating the docs.

Thank you!

#5 Updated by Jesús García Crespo over 7 years ago

  • Status changed from QA/Review to Feedback
  • Assignee changed from Dan Gillean to Jesús García Crespo
  • Priority changed from Medium to Critical

I've just found that this is breaking the information object browser, apparently we missed this the other day. The problem is that Kehan's code is using a field in the index called "referenceCode", that we ended up naming as "inheritReferenceCode". Making critical because this is breaking one of the most important pages in the applications.

#6 Updated by Kehan Harman over 7 years ago


#7 Updated by Jesús García Crespo over 7 years ago

  • Status changed from Feedback to QA/Review
  • Assignee changed from Jesús García Crespo to Dan Gillean

No worries :)

(Dan, latest commit 3d00b28 requires search index rebuild)

#8 Updated by Dan Gillean over 7 years ago

  • Status changed from QA/Review to Verified

I've now tested this both locally, and in our new test site with a broader set of data, and I'm happy to see that it works! Marking verified :)

Also available in: Atom PDF