Adding new Taxonomies

202 views
Skip to first unread message

Steven Politzer

unread,
May 25, 2017, 1:44:21 AM5/25/17
to AtoM Users
Hello,

My archive is currently looking into testing ATOM but we have found that we need to add a "Jurisdiction" Taxonomy. What are the actual steps to adding new Taxonomies from the developer side?

Dan Gillean

unread,
May 25, 2017, 3:55:45 PM5/25/17
to ICA-AtoM Users
Hi Steven,

I can ask our developers to provide some suggestions on where to start. In the meantime, you might start by checking out some of the resources we have available:

One thing to note - Symfony does have a country list built in, and we use it to add a Copyright jurisdiction autocomplete field in the PREMIS Rights template - we also have a Country field in the Repository contact information widget that also makes use of Symfony's country list. Might this be a useful alternative to adding a whole new taxonomy, or do you need users to be able to add, edit, and delete terms?

I'm not a developer so I'm not sure exactly where to look to find these components, but in searching the AtoM code repository for "jurisdiction" I did find these two elements which seem useful in indicating how we've implemented the copyright jurisdiction:

If you do decide to create a new taxonomy, at least 2 of the files you will need to start looking at will be in lib/model:

There are likely more... I 'll see if I can get any tips from our team!


Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory

On Thu, May 25, 2017 at 1:44 AM, Steven Politzer <stevenp...@gmail.com> wrote:
Hello,

My archive is currently looking into testing ATOM but we have found that we need to add a "Jurisdiction" Taxonomy. What are the actual steps to adding new Taxonomies from the developer side?

--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-users+unsubscribe@googlegroups.com.
To post to this group, send email to ica-ato...@googlegroups.com.
Visit this group at https://groups.google.com/group/ica-atom-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/1e8477eb-aa02-44f3-a48e-04e9638676a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dan Gillean

unread,
May 25, 2017, 5:01:30 PM5/25/17
to ICA-AtoM Users
Hi again Steven,

With some help from one of our developers, I have found 2 recent pull requests that should help you get started. In both cases, new taxonomies have been added (and additionally, facets have been added to relevant search/browse pages in case that is also useful), so studying them should be fruitful:

Hope this helps!


Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory

Steven Politzer

unread,
May 25, 2017, 6:50:49 PM5/25/17
to AtoM Users
Thank you for this. This is exactly what I was looking for. 

A follow up question that you may need to ask the devs: If AToM pushes an update, and we have forked the code slightly (like to add a taxonomy), would the update accomodate for the changes or would we need to readd our code everytime?
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.

Dan Gillean

unread,
May 25, 2017, 7:32:56 PM5/25/17
to ICA-AtoM Users
Hi Steven,

You will have to manage and re-merge your local customizations with each upgrade, unfortunately - AtoM has no way to automatically reconcile code conflicts or manage local changes.

I would suggest making sure that your installation has followed option 2 in our installation instructions - installing from our code repository. This way, you can use git branches to manage your changes, pull in the most recent work, resolve conflicts, etc.

Note that if you think your work would be useful to the broader AtoM community, you might also consider contributing it back to the public project. This way, Artefactual takes on the maintenance of the feature going forward, ensuring it works in future releases, and you don't have to keep maintaining your local customizations.

One caveat with this is that whether or not Artefactual will accept a pull request depends on a number of factors - for example, is your work standards based? If you are adding new fields to one of our standards-based templates (like ISAD or DACS) which are not supported by the standard, then we might not accept the PR. We have a number of tips in the following document:

Be aware as well that reviewing public PRs is unpaid work for us, so our developers do it as we are able to between other requirements.

Either way, good luck, and let us know how it goes!

Regards,


Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory

To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-users+unsubscribe@googlegroups.com.
To post to this group, send email to ica-atom-users@googlegroups.com.

Steven Politzer

unread,
May 25, 2017, 8:25:10 PM5/25/17
to AtoM Users
Thanks for all the help!

Steven Politzer

unread,
May 26, 2017, 12:52:57 AM5/26/17
to ica-ato...@googlegroups.com
Hi again,

I've been discussing this with my team and I may have misidentified what we were looking for. 

While we do need to be able to add a new Taxonomy, we also need to be able to create a new Access Point for that Taxonomy. In the same place that "Place", "Subject", "Genre", and "Person" go, we would like to add "Jurisdiction" there. 

Are the above instructions helpful with that or is there something additional that needs to be done?

Arkangel R Carrasco H

unread,
Jul 30, 2019, 6:43:02 PM7/30/19
to AtoM Users
Hi, i want add a new field from Access Point, how to will i can do?

Dan Gillean

unread,
Aug 5, 2019, 11:25:05 AM8/5/19
to ICA-AtoM Users
Hi Arkangel, 

In AtoM, access points use terms, managed in a taxonomy, so the older parts of this thread should be helpful for pointing you in the right direction to create a new taxonomy. We also have general development resources on the wiki, here: 
See also some of the developer slide decks on our SlideShare account. Also, this post was about theme development, but in my reply I provided a lot of general development resources for working with AtoM: 

A good place to look would be the original pull request for when the Genre access points were added to AtoM  - it covers a lot: 
Keep in mind that this pull request is against an older version of AtoM - some things have changed since then (for example, the upgrade of Elasticsearch from 1.7.x to 5.6.x), so you'll need to make sure you familiarize yourself with these changes, and work against the latest code (currently in the qa/2.6.x branch). 

There were also some enhancement and bug fixes in later pull requests - see some of these, for example: 
There are a lot of moving parts to consider - import and export support (CSV, EAD, MODS, DC), support across different templates (ISAD, DACS, RAD, MODS, DC), changes to the search index, database changes and schema migrations for upgrading users, adding facets and filters to search/browse pages, etc... so be aware that this will be a major development project, and it will take time and testing to get it right. 


To help orient you, I've also pulled out a few examples that show how the access point fields are integrated into the description templates. 

You can see here in the ISAD template where we add the access point fields to the edit page: 
Here is where we show them in the right hand context menu (i.e. side bar) on the description view page of the ISAD template: 
And here is where we show them in the body of the view page record in the ISAD template: 
You should also look at the functions and methods defined in this file for term relations and access points: 
If you are creating a new taxonomy, you will probably want to be aware of the functions and methods in QubitTerm as well:

Hope that helps! 

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory

Reply all
Reply to author
Forward
0 new messages