Hi, I was user of rjerome's legacy Biblio module for Drupal 6 but I successfully transfered my site (database of urbanhistoriography manuscript references) to D8 and this Bibliography & Citation module.
My issue is Im trying to recreate my original display style with Views, but Im failing to do so - I would like to have single page with list of my references (searchable, sortable) but not as static texts but with links to complete reference table. Simply put, as it is in the admin reference view but without editing options. Can someone please guide me to achive that? Skipping two major versions of Drupal confuses mi a little. Thanks in advance.
Comments
Comment #2
antongp commentedHi. Not sure I got it right what you're trying to achieve...
First of all, when creating new view you need to select Show: Reference in the View Settings group. Then in view, to output reference as formatted citation for example, add Citation field. To make it a link you may add Link to Reference field, exclude it from display, tick the Output the URL as text checkbox, then save field, then rearrange fields so link field goes first in the list, then edit Citation field and use Rewrite Results -> Output this field as a custom link and enter
{{ view_bibcite_reference }}token in link path.For search you may use exposed filters in the same view or for advanced functionality try the Search API module.
Is this something close to what you need?
Comment #3
adamjosef commentedThat is perfect, thank you very much for you guide! It renders in view highlight just fine, but citation as link is not accessible by anonymous user, do I need somehow adjust access or permissino to this page to anonymous users?
Also I tried to define exposed search by keywords (search field equal to=)but with no luck - it cannot find any data with this method. Do I need to somehow link my keywords to references? Each reference entity has one keyword, so I want them to be my only search criterium.
Comment #4
antongp commentedYes, you need set appropriate permissions to needed roles on the People --> Permissions page (/admin/people/permissions). You need to grant View Reference entities permission at least.
Keywords are separate entities and related to (bibliographic) reference entities via entity reference field, very similar to how you would relate taxonomy terms, for example tags, to nodes. So, in views Keywords filter within Reference category expects keyword entity ID actually. Instead, you should add Keyword relationship in a view, then Keyword category will appear when adding filter criteria - Name field may be used for filtering in your case. You mentioned that you have 1 keyword per reference entity, but note that several keywords related to a single reference entity will cause duplicate rows in such view - in this case you'll need to use aggregation or some other way to avoid duplicates.
Hope this helps.
Comment #5
antongp commentedI believe this can be closed