To make sure you've chosen the right field, look for one that says "Appears in node:book" underneath. Do NOT choose Content: Author- that refers to the Drupal Node Author (ie, the user who added the book to the database) and will instead give you access to fields in their user profile. Without these relationships, you'll only be able to display the (inseparable) full name of the author, and the name of the publisher- which are the only things actually stored in the Book content type, whose content you're displaying.Īdd a relationship, and look for Content: Author (field_author). In this case, even though you've filtered your results to Book nodes, if you create relationships for the node reference fields within the Book content type that point to other content types (ie, the Author field and the Publisher field), you can access the data stored in the First/Middle/Last Name fields within the Person content type, and the Location field for City within the Publisher content type. This area of the Views configuration allows you to indicate that you want to be able to access data stored in a different node than what you're currently displaying. Click on Advanced settings in the far right column to access Relationships. Even a single-author monograph requires you to set up Relationships in order to pull in data from the author and Publisher nodes. The easiest approach is to start with a view Display targeting single-author monographs, and clone and modify it for additional authors. From there, choose "Continue & edit".įor MLA monograph citations, the number of authors does make a difference. (Once you've created this view, you can specify where you want the block to go at Structure > Blocks, or admin/structure/block) For Display Format, choose Unformatted list of fields. Assuming you want to make the citation appear on the Book node (rather than on a page by itself), uncheck the option for Page, and check the option for Block. When you create a new View ( Structure > Views > Add new view, or admin/structure/views/add), you want to show Content of type Book. To create such a citation for a book stored in this Drupal database, you need to pull in data from all three of the content types: the publisher's location is only stored in the Publisher content type, and the constituent parts of the author's name are only stored individually as part of the Person content type. Publisher (node reference to Publisher content type)įor reference, consider the formatting of an MLA citation: Nabokov, Vladimir.Author (node reference to Person content type, multi-value).Let's start with three content types and their fields: The Biblio module is an awkward fit, so re-creating the features they needed using Views was a better solution. The Biblio module has upsides and downsides the latter include the fact that it doesn't integrate with Feeds for data import.This example comes from a knowledge base project that's not bibliography-centric: people and publishers are as important as the scholarly products, and consequently have their own content types. It will automatically provide MLA citations (in addition to a number of other formats), as well as the COinS metadata that Zotero can ingest. NOTE: If your project involves bibliographic data, you should consider using the Biblio module to manage that data. As an example, let's take the task of generating MLA citations for books, on a site that contains Book, Person, and Publisher content types. Once you're comfortable using Views to pull together lists, tables, and visualizations of data from individual nodes, users, and taxonomies, you can make use of some of the advanced Views settings to pull in data from nodes that are referenced using a Node Reference field, and use information from the path (for a page display) or the current page (for a block display) to limit your view results to information relevant to a particular context.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |