Closed (fixed)
Project:
Bibliography & Citation
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 May 2017 at 04:33 UTC
Updated:
23 Apr 2018 at 09:34 UTC
Jump to comment: Most recent
Comments
Comment #2
camilocodes commentedHi. I was just wondering how progress on this is going? We are currently depending on this fix to be able to display certain fields (author, type) to unauthenticated users. If this is a complicated issue we might have to work on sidestepping permissions, which we can do but would be a less elegant solution.
Comment #3
antongp commentedHello @camilocodes. We hope to handle this somewhere next week.
Comment #4
camilocodes commentedGreat news! Thanks.
Comment #5
Anonymous (not verified) commentedThanks!
Comment #6
camilocodes commentedHi @antongp. Just checking to see if there has been any progress on this matter? Thanks.
Comment #7
antongp commentedHi @camilocodes. Unfortunately not much. Good news is that we finally returned to active development. So stay tuned.
Thanks!
Comment #8
camilocodes commentedThanks for the reply. Tuned!
Comment #9
Anonymous (not verified) commentedThanks for the reply let us know if you need testing help.
Comment #10
camilocodes commentedHello! It has been a while, so I figured I'd come back and ask if there's been any progress on this @antongp?
Thanks!
Comment #13
antongp commentedOkay... We renamed permissions (both machine and human-readable names), to make the names more consistent. Manual changes may be needed though, please read changelog record for more info on this: http://cgit.drupalcode.org/bibcite/tree/CHANGELOG.md?id=63332e7c#n6
We also added create/update/delete permissions per each Reference entity type/bundle, which are also divided to "any" and "own", like any type permissions.
@camilocodes
Showing contributor/author role and category on references is basically not related to permissions and was committed within this issue: #2936662: Add options to show role and/or category in contributor field formatter.. Formatting capabilities are small for now though, just comma-separated.
Showing reference type is basically not related to permissions as well and was committed within this issue: #2940219: Add extra field with reference type to reference entities.. Also bundle could be outputted via Display Suite for example, but this is additional dependency and not small...
I doubt that permissions for contributor and keyword entity types will be divided into "own" and "any". There is also request for "Published" flag on entities #2934158: Add "Promoted" to the Reference entity which is related at some degree. I'm not sure what else can be added or changed within this issue, so feel free to leave your feedback and other needs re. permissions in comments! Leaving the issue in "Needs work" for now...
Comment #16
camilocodes commentedThanks so much! This gives us a few avenues to implement features we're interested in.
Comment #17
camilocodes commented@anton_gp
Thanks for all your work. Could you please elaborate on how displaying Reference Type is not related to permissions when, if you use that field in a view, the value is visible for anyone w/ the permission "Administer Reference entities" exclusively? Displaying the value is not akin to administering the entity, so it seems to me this permission/field definition might need work.
I don't quite understand the resolution to "#2940219: Add extra field with Reference Type to reference entities." It is not clear to me which field was added as a response to this ticket. Was it ? Mapping that field to BibTex "type" (replacing my initial Reference Type, which, again, works for users w/ permissions) causes my imports to fail. I would like to report this, but I don't know if I am using the correct field, or if the right place for reporting that would be here, #2940219, or a brand new ticket.
In conclusion, I appreciate all the work put into this, but at the end of the day I am still unable to create a view for my references which displays the reference type to users without important, security-sensitive permissions. Maybe I am doing something wrong?
Thanks (:
Comment #19
antongp commentedAhh, you're building view which shows fields. Yes, you're right :)
#2940219 adds "extra field" which can be managed on "Manage display" tab for each Reference entity type (Artwork, Journal, etc.). So if you render whole entities in some view mode when building view, this will work. But if output fields separately, yeah, there was a problem with permission. Actually "Reference type" extra field which was added within #2940219 technically is not related to what appears in list of fields in view (though both are named the same). Latest dev has fix for this, now "View Reference entities" permission is enough to see Reference type field outputted in view.
There basically nothing to do with mapping, you shouldn't map anything to Reference type field. Basically you map types by Format Type <-->Reference Type mapping.
Hope this helps. Thanks!
Comment #20
antongp commentedDoesn't seem that there are any additional changes to do within this ticket. Closing for now.