0
Answered

Mendeley Folders

danis 4 years ago updated by cfisher 1 year ago 4

Hi all,


I've created a Bibbase bibliography using references in a shared Mendeley group (you can find the bibliography here: http://bibbase.org/service/mendeley/42b3c9fe-3feb-364a-a5a6-ad0ff97f726b/group/6b3cbe6f-5954-3478-8b6f-f247bb28d285?msg=embed#). 


Within the Mendeley group, we have two folders: Primary Sources and Secondary Sources. The materials in these folders would, ideally, be listed on two different pages of our website.


Is there a way to tweak the Bibbase code so it only shows material from one folder within the Mendeley group, or do we need two separate groups?


Thanks in advance!

Answer

Answer
Answered

I think so, yes. You can filter by any field in the bibtex entry that is generated from the Mendeley data and Mendeley does seem to provide the folder id in that bibtex.


In this example URL I'm grouping by that id to see what's in which folder:

http://bibbase.org/service/mendeley/42b3c9fe-3feb-364a-a5a6-ad0ff97f726b/group/6b3cbe6f-5954-3478-8b6f-f247bb28d285?groupby=folder_uuids


Filtering on just the first folder id gives me:

http://bibbase.org/service/mendeley/42b3c9fe-3feb-364a-a5a6-ad0ff97f726b/group/6b3cbe6f-5954-3478-8b6f-f247bb28d285?filter=folder_uuids:087dba1e-8d95-4d9f-8cf7-7542ed7bb4a5


Answer
Answered

I think so, yes. You can filter by any field in the bibtex entry that is generated from the Mendeley data and Mendeley does seem to provide the folder id in that bibtex.


In this example URL I'm grouping by that id to see what's in which folder:

http://bibbase.org/service/mendeley/42b3c9fe-3feb-364a-a5a6-ad0ff97f726b/group/6b3cbe6f-5954-3478-8b6f-f247bb28d285?groupby=folder_uuids


Filtering on just the first folder id gives me:

http://bibbase.org/service/mendeley/42b3c9fe-3feb-364a-a5a6-ad0ff97f726b/group/6b3cbe6f-5954-3478-8b6f-f247bb28d285?filter=folder_uuids:087dba1e-8d95-4d9f-8cf7-7542ed7bb4a5


Hi Christian--I know I'm 3 years late, but I have a follow-up question to this. I am able to filter as you described here, but I'm running into issues when I try to embed the filtered link. My question is whether or not it is possible to do this, or if the only way to create webpages with separate sections of a Mendeley library is to make different groups/libraries for each.

Here is an example of the issue I'm having. 

This link works fine, and produces the filtered list as expected: 

https://bibbase.org/service/mendeley/7a51828e-9782-3fa4-8bdb-357443954bfc/group/b49ab5c8-edb7-3544-9fc1-ebbc7f3ac750?filter=keywords:Cross

But when I edit the html on our site to include the keyword filter, it doesn't work--the page displays the full library instead. This is the language I'm using:

<script src="https://bibbase.org/service/mendeley/7a51828e-9782-3fa4-8bdb-357443954bfc/group/b49ab5c8-edb7-3544-9fc1-ebbc7f3ac750?jsonp=1?filter=keywords:Cross [bibbase.org]"></script>

I've tried playing with the code but nothing seems to help. Am I doing something wrong? Is this a limitation of our site (we're using Wordpress)? Or is this just not something it's possible to do?

Any guidance would be much appreciated! Thank you!

Hi,

When adding more than one parameter to a URL you need to separate them by "&", not "?". The question mark is only used as the beginning of the parameter list.

Try this in your page:

<script src="https://bibbase.org/service/mendeley/7a51828e-9782-3fa4-8bdb-357443954bfc/group/b49ab5c8-edb7-3544-9fc1-ebbc7f3ac750?jsonp=1&filter=keywords:Cross"></script>

Christian

Aha! That took care of it. Thank you so much!