Publication Module

Integrates the Chado Publication module with Drupal Nodes & Views, as well as, provides the ability to import publication from PubMed

The Tripal Publication module allows you to search the PubMed database for academic articles, that relate to user specified topic\s. As well, it allows management of publications so that a user can enter specified details regarding a desired publication. This allows all of the important information that is unique to a Academic Publication to be stored for access.

File

tripal_pub/tripal_pub.module, line 20
Basic functionality of the pub module

Functions

Namesort descending Location Description
chado_pub_delete tripal_pub/includes/tripal_pub.chado_node.inc Implements hook_delete().
chado_pub_form tripal_pub/includes/tripal_pub.chado_node.inc Implements hook_form().
chado_pub_insert tripal_pub/includes/tripal_pub.chado_node.inc Implements hook_insert().
chado_pub_load tripal_pub/includes/tripal_pub.chado_node.inc Implements hook_load().
chado_pub_update tripal_pub/includes/tripal_pub.chado_node.inc Implements hook_update().
chado_pub_validate tripal_pub/includes/tripal_pub.chado_node.inc Implements hook_validate().
chado_pub_validate_check_duplicate tripal_pub/includes/tripal_pub.chado_node.inc Check for duplicate publications. To be called from hook_validate(). Sets the form error if a duplicate
chado_pub_validate_check_uniquename tripal_pub/includes/tripal_pub.chado_node.inc Validate the publication uniquename. To be called from hook_validate().
theme_tripal_pub_importer_setup_form_elements tripal_pub/includes/tripal_pub.pub_importers.inc Theme the tripal_pub_importer_setup_form form.
theme_tripal_pub_search_setup_form_elements tripal_pub/includes/tripal_pub.pub_search.inc Theme the tripal_pub_search_setup_form form
tripal_execute_active_pub_importers tripal_pub/includes/tripal_pub.pub_importers.inc Imports all publications for all active import setups.
tripal_execute_pub_importer tripal_pub/includes/tripal_pub.pub_importers.inc Imports all publications for a given publication import setup.
tripal_feature_add_cvs tripal_feature/tripal_feature.install Add cvs related to publications
tripal_get_remote_pub tripal_pub/includes/tripal_pub.pub_importers.inc This function is used to perfom a query using one of the supported databases and return the raw query results. This may be XML or some other format as provided by the database.
tripal_get_remote_pubs tripal_pub/includes/tripal_pub.pub_importers.inc Retrieves a list of publications as an associated array where keys correspond directly with Tripal Pub CV terms.
tripal_import_pub_by_dbxref tripal_pub/includes/tripal_pub.pub_importers.inc Imports a singe publication specified by a remote database cross reference.
tripal_pubs_search_form_ajax_update tripal_pub/includes/tripal_pub.pub_search.inc Ajax callback to update the form
tripal_pubs_setup_form_ajax_update tripal_pub/includes/tripal_pub.pub_importers.inc AJAX callback for updating the form.
tripal_pub_add_authors tripal_pub/includes/tripal_pub.pub_importers.inc Add one or more authors to a publication
tripal_pub_add_custom_tables tripal_pub/tripal_pub.install Add custom table related to publications
tripal_pub_add_cvs tripal_pub/tripal_pub.install Add cvs related to publications
tripal_pub_add_cvterms tripal_pub/tripal_pub.install Add cvterms related to publications
tripal_pub_add_publication tripal_pub/includes/tripal_pub.pub_importers.inc Adds a new publication to the Chado, along with all properties and database cross-references. If the publication does not already exist in Chado then it is added. If it does exist nothing is done. If the $update parameter is TRUE then the…
tripal_pub_add_publications tripal_pub/includes/tripal_pub.pub_importers.inc Adds publications that have been retrieved from a remote database and consolidated into an array of details.
tripal_pub_admin tripal_pub/includes/tripal_pub.admin.inc Administrative settings form
tripal_pub_admin_pub_view tripal_pub/includes/tripal_pub.admin.inc Admin launchpad
tripal_pub_admin_validate tripal_pub/includes/tripal_pub.admin.inc Validate the admin settings form
tripal_pub_AGL_count tripal_pub/includes/importers/tripal_pub.AGL.inc Retreives the total number of publications that match the search string.
tripal_pub_AGL_parse_pubxml tripal_pub/includes/importers/tripal_pub.AGL.inc Parse publication XML for a single publication
tripal_pub_AGL_range tripal_pub/includes/importers/tripal_pub.AGL.inc Retreives a range of publications from AGL.
tripal_pub_citation_form tripal_pub/includes/tripal_pub.pub_citation.inc The admin form for submitting job to create citations
tripal_pub_citation_form_submit tripal_pub/includes/tripal_pub.pub_citation.inc Submit form. Create Tripal job for citations
tripal_pub_create_citation tripal_pub/includes/tripal_pub.pub_citation.inc This function generates citations for publications. It requires an array structure with keys being the terms in the Tripal publication ontology. This function is intended to be used for any function that needs to generate a citation.
tripal_pub_create_citations tripal_pub/includes/tripal_pub.pub_citation.inc Launch the Tripal job to generate citations. Called by tripal jobs
tripal_pub_defaultview_admin_publications tripal_pub/tripal_pub.views_default.inc Default publication administration view
tripal_pub_disable tripal_pub/tripal_pub.install Implements hook_disable(). Disable default views when module is disabled
tripal_pub_enable tripal_pub/tripal_pub.install Implements hook_enable().
tripal_pub_form_alter tripal_pub/tripal_pub.module Implementation of hook_form_alter().
tripal_pub_get_publication_array tripal_pub/includes/tripal_pub.pub_importers.inc This function generates an array suitable for use with the tripal_pub_create_citation function for any publication already stored in the Chado tables.
tripal_pub_help tripal_pub/tripal_pub.module Implements hook_help(). Adds a help page to the module list
tripal_pub_importers_list tripal_pub/includes/tripal_pub.pub_importers.inc A function to generate a table containing the list of publication importers
tripal_pub_importer_setup_add_criteria_fields tripal_pub/includes/tripal_pub.pub_importers.inc A helper function for the importer setup form that adds the criteria to the form that belong to the importer.
tripal_pub_importer_setup_form tripal_pub/includes/tripal_pub.pub_importers.inc The form used for creating publication importers.
tripal_pub_importer_setup_form_submit tripal_pub/includes/tripal_pub.pub_importers.inc Submit the tripal_pub_importer_setup_form form
tripal_pub_importer_setup_form_validate tripal_pub/includes/tripal_pub.pub_importers.inc Validate the tripal_pub_importer_setup_form form
tripal_pub_importer_setup_page tripal_pub/includes/tripal_pub.pub_importers.inc Creates the page that contains the publication importer setup form and test results.
tripal_pub_importer_submit_job tripal_pub/includes/tripal_pub.pub_importers.inc Add a job to import publications
tripal_pub_install tripal_pub/tripal_pub.install Implementation of hook_install().
tripal_pub_job_describe_args tripal_pub/tripal_pub.module Implements hook_job_describe_args().
tripal_pub_mail tripal_pub/tripal_pub.module Implements hook_mail().
tripal_pub_menu tripal_pub/tripal_pub.module Implements hook_menu().
tripal_pub_node_access tripal_pub/includes/tripal_pub.chado_node.inc Implement hook_node_access().
tripal_pub_node_info tripal_pub/includes/tripal_pub.chado_node.inc Implements hook_node_info().
tripal_pub_node_insert tripal_pub/includes/tripal_pub.chado_node.inc Implements hook_node_insert(). Acts on all content types.
tripal_pub_node_load tripal_pub/includes/tripal_pub.chado_node.inc Implements hook_node_load(). Acts on all content types.
tripal_pub_node_presave tripal_pub/includes/tripal_pub.chado_node.inc Implements hook_node_presave(). Acts on all content types.
tripal_pub_node_update tripal_pub/includes/tripal_pub.chado_node.inc Implements hook_node_update(). Acts on all content types.
tripal_pub_node_view tripal_pub/includes/tripal_pub.chado_node.inc Implements hook_node_view(). Acts on all content types.
tripal_pub_permission tripal_pub/tripal_pub.module Implement hook_permission().
tripal_pub_PMID_fetch tripal_pub/includes/importers/tripal_pub.PMID.inc Retreives from PubMed a set of publications from the previously initiated query.
tripal_pub_PMID_parse_abstract tripal_pub/includes/importers/tripal_pub.PMID.inc Parses the section from the XML returned from PubMed that contains information about the abstract
tripal_pub_PMID_parse_article tripal_pub/includes/importers/tripal_pub.PMID.inc Parses the section from the XML returned from PubMed that contains information about an article.
tripal_pub_PMID_parse_authorlist tripal_pub/includes/importers/tripal_pub.PMID.inc Parses the section from the XML returned from PubMed that contains information about the author list for a publication
tripal_pub_PMID_parse_date tripal_pub/includes/importers/tripal_pub.PMID.inc Parses the section from the XML returned from PubMed that contains information regarding to dates
tripal_pub_PMID_parse_journal tripal_pub/includes/importers/tripal_pub.PMID.inc Parses the section from the XML returned from PubMed that contains information about a journal
tripal_pub_PMID_parse_journal_issue tripal_pub/includes/importers/tripal_pub.PMID.inc Parses the section from the XML returned from PubMed that contains information about a journal issue
tripal_pub_PMID_parse_medline_journal_info tripal_pub/includes/importers/tripal_pub.PMID.inc Parses the section from the XML returned from PubMed that contains information about the Journal
tripal_pub_PMID_parse_pagination tripal_pub/includes/importers/tripal_pub.PMID.inc Parses the section from the XML returned from PubMed that contains information about pagination
tripal_pub_PMID_parse_publication_type tripal_pub/includes/importers/tripal_pub.PMID.inc Parses the section from the XML returned from PubMed that contains information about a publication
tripal_pub_PMID_parse_pubxml tripal_pub/includes/importers/tripal_pub.PMID.inc This function parses the XML containing details of a publication and converts it into an associative array of where keys are Tripal Pub ontology terms and the values are extracted from the XML. The XML should contain only a single publication record.
tripal_pub_PMID_search_init tripal_pub/includes/importers/tripal_pub.PMID.inc Initailizes a PubMed Search using a given search string
tripal_pub_preprocess_tripal_pub_relationships tripal_pub/theme/tripal_pub.theme.inc
tripal_pub_remote_alter_form_AGL tripal_pub/includes/importers/tripal_pub.AGL.inc A hook for altering the publication importer form.
tripal_pub_remote_alter_form_PMID tripal_pub/includes/importers/tripal_pub.PMID.inc A hook for altering the publication importer form. It Changes the 'Abstract' filter to be 'Abstract/Title'.
tripal_pub_remote_search_AGL tripal_pub/includes/importers/tripal_pub.AGL.inc A hook for performing the search on the AGL database.
tripal_pub_remote_search_AGL_get_author tripal_pub/includes/importers/tripal_pub.AGL.inc Used for parsing of the XML results to get details about an author
tripal_pub_remote_search_AGL_get_subfield tripal_pub/includes/importers/tripal_pub.AGL.inc Used for parsing of the XML results to get a set of subfields
tripal_pub_remote_search_get_language tripal_pub/includes/importers/tripal_pub.PMID.inc Get the name of the language based on an abbreviation
tripal_pub_remote_search_PMID tripal_pub/includes/importers/tripal_pub.PMID.inc A hook for performing the search on the PubMed database.
tripal_pub_remote_validate_form_AGL tripal_pub/includes/importers/tripal_pub.AGL.inc A hook for providing additional validation of importer setup form.
tripal_pub_remote_validate_form_PMID tripal_pub/includes/importers/tripal_pub.PMID.inc A hook for providing additional validation of importer setup form.
tripal_pub_requirements tripal_pub/tripal_pub.install Implementation of hook_requirements().
tripal_pub_schema tripal_pub/tripal_pub.install Implementation of hook_schema().
tripal_pub_search_form tripal_pub/includes/tripal_pub.pub_search.inc Provides the form to search pubmed
tripal_pub_search_form_ajax_button_submit tripal_pub/includes/tripal_pub.pub_search.inc This function is used to rebuild the form if an ajax call is made vai a button. The button causes the form to be submitted. We don't want this so we override the validate and submit routines on the form button. Therefore, this function only needs…
tripal_pub_search_form_ajax_button_validate tripal_pub/includes/tripal_pub.pub_search.inc This function is just a dummy to override the default form submit on ajax calls for buttons
tripal_pub_search_form_submit tripal_pub/includes/tripal_pub.pub_search.inc Submit the tripal_pub_search_form form
tripal_pub_search_form_validate tripal_pub/includes/tripal_pub.pub_search.inc Validate the tripal_pub_search_form form
tripal_pub_search_page tripal_pub/includes/tripal_pub.pub_search.inc The page that contains the publication search form and the results for the search
tripal_pub_setup_form_ajax_button_submit tripal_pub/includes/tripal_pub.pub_importers.inc This function is just a dummy to override the default form submit on ajax calls for buttons
tripal_pub_setup_form_ajax_button_validate tripal_pub/includes/tripal_pub.pub_importers.inc This function is used to rebuild the form if an ajax call is made vai a button. The button causes the form to be submitted. We don't want this so we override the validate and submit routines on the form button. Therefore, this function only needs…
tripal_pub_set_pub_url tripal_pub/includes/tripal_pub.admin.inc Set the URL for a publication
tripal_pub_theme tripal_pub/tripal_pub.module Implements hook_theme(). Register themeing functions for this module
tripal_pub_uninstall tripal_pub/tripal_pub.install Implementation of hook_uninstall().
tripal_pub_views_api tripal_pub/tripal_pub.module Implements hook_views_api().
tripal_pub_views_default_views tripal_pub/tripal_pub.views_default.inc Implements hook_views_default_views().
tripal_reimport_publications tripal_pub/includes/tripal_pub.pub_importers.inc Updates publication records that currently exist in the Chado pub table with the most recent data in the remote database.
tripal_search_publications tripal_pub/includes/tripal_pub.pub_search.inc Builds the SQL statement need to search Chado for the publications that match the user supplied criteria. Tpyically, this function is called by the search form generated by the tripal_pub_search_form() function but this function is included in the…
tripal_stock_add_cvs tripal_stock/tripal_stock.install Add cvs related to publications
tripal_stock_add_cvterms tripal_stock/tripal_stock.install Add cvterms related to publications

Files

Namesort descending Location Description
tripal_pub.chado_node.inc tripal_pub/includes/tripal_pub.chado_node.inc Implements Drupal Node hooks to create the chado_analysis node content type.