Fixed. Found two places (one in bibliplug.php, one in class-bibliplug-reference-table.php) where “administrator” needed to be changed to “edit-posts”.
Hi Blair,
Yes, you are right about the fix. This issue is now resolved in release 1.3.6.
Thanks,
Zuotian
Hi, it’s not quite fixed. There is still an instance of “has_cap(‘administrator’)” that should be “has_cap(‘edit_posts’)” in class-bibliplug-reference-table.php
Thanks for most of the fixes, though, and for the new features (list by keyword, etc).
Hi Blair.
The one in class-bibliplug-reference-table.php is by desgin, so that only administrator can see all reference, and authors can only see references where he/she is in the author list.
Oh, I see your intent.
I want to have some folks in my research group, whom I’ve given edit permission to maintain the content on our lab website, able to edit any reference, but I don’t want to make them administrators.
Actually, I think we really want it to be “edit_others_posts” since most students are only set to “Author” which allows them to create and edit their own stuff (edit_posts) but the ones who can edit anything are set to “Editor” which has edit_others_posts set.
Ok, another question. Likely a total wordpress newbie question. I can’t seem to get the ref_cat and ref_tag url’s working. e.g., if I go to my reference categories, I have one called poster where the “View” link shows up as ael.gatech.edu/lab/ref_cat/poster and I get three entries that are not the posters.
Is there something I need to have in my page templates such that the various slug categories will work? I’d love, for example, to be automatically be able to generate a page for each paper, with the full abstract, etc, and have this linked from the paper. But, I don’t know how this would be done.
Hi Blair,
Your suggestion of using “edit_others_posts” makes sense. I will include the fix in the next release.
As of ref_cat url, it is not working because bibliplug references are not stored in the wordpress wp_posts table. Similarly, you cannot simply browse to a reference as a wp page/post because it is not stroed in wp_table. I can imagine there are workarounds to enable these features, but I have not had time to investigate it yet. If you have good ideas, or come across a solution, you can contact me via email.
Thanks again for your feedback.