Selection in Treeview

126 views
Skip to first unread message

r.ruti...@docuteam.ch

unread,
Sep 17, 2020, 5:35:39 AM9/17/20
to AtoM Users
Hi there,

I have one single fonds within an archival institution. In this fonds I have 150+ Series.

If I click, for example in the search-results page, on an archival description which is part of a series, then the selected item is marked in the tree view box above.
But only, if the series is within the first 50 items that appear by default. If the series is on page 2 or 3 (using the "more" button top right), the selected archival description won't be shown in the treeview box. instead, only the fonds is showing up, not expanded.

Is there a way to always jump to the archival description in the treeview? Maybe one can set the shown items to infinite?

Kind regards
Roger

Dan Gillean

unread,
Sep 17, 2020, 12:45:28 PM9/17/20
to ICA-AtoM Users
Hi Roger, 

There has been a bit of churn on this specific issue as we've tried to balance performance at scale against usability - and there's likely more work to be done - but I'm hoping that the enhancements we added in 2.6 will resolve your issue. 

The pager was implemented to avoid timeouts that break the tree when very large hierarchies are loaded, but 50 records at a time is a pretty conservative value. In 2.6, an administrator can adjust this value as high as 10,000. Additionally, if you are willing to risk performance consequences, a system administrator can also adjust this even higher via AtoM's configuration files. See: 
Try setting this value higher, or even all the  way to 10,000. I'm hoping this will resolve the focus issue that you've described. Also, if it doesn't seem to have a noticeable effect immediately, you may want to clear your application cache, and restart PHP-FPM

Cheers,  

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


--
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-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/c08c07ca-474e-47a8-9a10-f98a016e605dn%40googlegroups.com.

r.ruti...@docuteam.ch

unread,
Sep 18, 2020, 3:09:29 AM9/18/20
to AtoM Users
Thanks a lot, Dan. 
The customer is using AtoM 2.5.3. If I understand correctly, there is absolute no way to change the paging here, not even by a "hack", and we would have to upgrade to 2.6.?
Cheers, Roger

Dan Gillean

unread,
Sep 18, 2020, 11:54:00 AM9/18/20
to ICA-AtoM Users
Hi Roger, 

If you want to experiment with local workarounds, I would suggest that you play with this value here - this is where the 50 items pager limit is hardcoded in 2.5.x: 
I suspect that if you make this value too big, you may run into other issues (for example, I believe that Elasticsearch has its own node limits), but hopefully you can try adjusting this, say to 1,000, and address your immediate client needs until you can upgrade. 

Make sure you restart services, and more importantly, that you also clear the browser cache before testing, since this is JavaScript executed on the client side. 

Let us know how it goes!

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

Dan Gillean

unread,
Sep 18, 2020, 11:57:18 AM9/18/20
to ICA-AtoM Users
PS: If you are interested in learning more about the history of this issue, ways in which we have tried to address it, and further work that could be done to improve remaining issues, please see this Wishlist ticket: 
I have attached a detailed summary of the issue and history so far that may be of interest. 

Cheers, 

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

H G Silva

unread,
Apr 29, 2025, 2:39:28 AMApr 29
to AtoM Users
Hello everyone,

Can anyone figure out why the "more" button at the top right only appears when I first go through the hierarchy browse page and then click on a level that isn't the top one? Even then, the "# more" and "reset" buttons are displayed only for the children of the top level (which are the second levels) that exceed the value set in "treeview items per page". Based on what I've seen in earlier posts, shouldn't it also appear if we simply use the Browse menu and click on Archival descriptions, and for all levels?

I also noticed the current user manual (#items-per-page entry) states the default "treeview items per page" value is 50, but it seems it was increased to 8,000 in version 2.8.1 and now in version 2.9 it's likely 10,000, right? Well, when I try the setting of 10,000, the tree opens after 20 seconds, but when I tried setting it to 40,000, the tree simply didn't open (it was stuck in eternal loading), so the "more" button at the top right would be a good solution. It seems that the defined values (whether they're 12, 2,000, or 40,000) are only applied via app.yml, not through the interface settings. This is in contrast to what the manual says: "If your site has very large hierarchies and you need to set the initial page load value higher than 10,000 records, a system administrator can modify this max value in the configuration file found at config/app.yml."

Observed Behaviour #1:
  1. Simply going through the Browse menu and clicking on Archival descriptions
  2. Opened a Series-level description containing more records than the value configured in the "treeview items per page" setting and app.yml
  3. Result: No "# more" and "reset" buttons are displayed. Expected Behaviour: The "# more" and "reset" buttons should be displayed.

Observed Behaviour #2:
  1. Go to the hierarchy browse page. If Fonds-level descriptions contain more records than the value configured in the "treeview items per page" setting and app.yml, "# more" and "reset" buttons are displayed (however, these buttons are never displayed for any sublevels even if they also contain more records than the value configured in the "treeview items per page" setting and app.yml  ).
  2. If I click on a Fonds-level description, I am redirected to the related archival description view page with the standard treeview (without "# more" and "reset" buttons being displayed at any level).
  3. If I click on a Series description or any other non-top-level description, I am redirected to the related archival description view page with the standard treeview (it will display "# more" and "reset" buttons).

Tried on version 2.9 logged in. Fresh install according to Artefactual's instructions (Ubuntu server).

Reply all
Reply to author
Forward
0 new messages