0
Completed

Default Folded

Joshua B. Grubbs 3 years ago updated by Elizabeth Preston 11 months ago 8

Is there a way to default the embedded reference list folded? At present, they display unfolded and have to be manually folded, which is very disruptive.

Completed

I think you are looking for this option:


folding1 or 0Fold / Unfold everything. Default: 0 (unfold everything).

(see https://bibbase.org/help)

I have my bibliography set to folding=1. However, when I click to unfold a category, no items appear. Any help would be appreciated. 

I can't reproduce that issue. In this example, e.g., it is working:

https://bibbase.org/show?bib=https://bibbase.org/bibs/thesis.bib&folding=1

Can you send me a link/URL to the page where you are having this issue?

Here's the page: https://www.vims.edu/research/units/programs/sav1/_pubs/sav_biblio/index.php

I currently have it set to unfolded because it needs to be usable. From my end, I can't tell if it's the content management system not playing nice with BibBase or if it's a BibBase problem. (I do have a feeling it's the former.)

Similarly, the Group By and other dropdowns don't work. 

Thanks for looking into this. 

Could you create a separate page where the default is folded? I'd need to see it in-situ to tell what might be going wrong.

I've just now republished the page with folding=1, so the same link should work. Thanks!

Thanks. I took a look and poked around a little. I do get the sense that you are right and that it is some sort of incompatibility between the libraries used by BibBase and others on your page. Could you try the following workaround to see whether this works?

1. do not use folding

2. add this small script to your page:

<script type="text/javascript">
  window.onload = function() {
    setTimeout(toggleAll, 1000);
  };
</script>

The idea here is let your page finish loading everything it wants (incl. its own libraries), and only then fold everything.

Let me know if that works.

+1

Wow, that worked! Thank you so much!