Skip to content

Directory Export/Import

x

Error message

  • Notice: Only variables should be passed by reference in include() (line 191 of sites/all/themes/UCMerced/templates/partials/_header.tpl.php).
  • Notice: Only variables should be passed by reference in include() (line 417 of sites/all/themes/UCMerced/templates/partials/_header.tpl.php).

NB: This page describes undeployed alpha software

This is information for Drupal admins.

Directory Export

Dependencies

  • services 3.14
  • services_views 1.1
  • campuscms_feature_directory_export --branch master git@alexandria.ucmerced.edu:campuscms_feature_directory_export.git

[DEPRECATED: uuid 1.0-beta1]

Installation

Install the Directory Export feature. This will automatically install the other dependencies.

Initial Configuration

  1. Edit the People content type to add a term reference field for the Directory Export vocabulary. The field should be called "Directory Export" with a machine name of "field_people_directory_export". It is formatted as a select list and has an unlimited number of values. The field should be hidden by default.
  2. Revert the directory export feature if necessary so that the view includes this field.

[DEPRECATED: Enable UUID - create missing uuids]

Configuring for a new destination site

  1. Add a new term to the Directory Export vocabulary on the host site (http://www.ucmerced.edu/admin/structure/taxonomy/directory_export/add) to identify the destination site (e.g. "Psychology").
  2. After edit the people you wish to export by adding the appropriate vocabulary term. (e.g. Psychology)

Directory Import

Dependencies

Installation

Install the Directory Import feature on the destination site. This will automatically install the other dependencies.

Configuration

  1. Install campuscms_feature_directory_import
  2. Edit the People content type to specify a file directory for images (http://site-name/admin/structure/types/manage/people/fields/field_people_photo). This value should be set to "images" unless it already has a value.
  3. Edit the feed importer so that it imports the correct set of entries. This is done by changing the "Keyword filter" tamper setting (http://site-name/admin/structure/feeds/directory/tamper/directory-xpathparser_6-keyword_filter/edit) to match the appropriate taxonomy term in the source site's Directory Export vocabulary (e.g. "Psychology")
  4. Edit http://site-name/import/directory to specify the source of the feed (e.g., http://www.ucmerced.edu/rest/views/directory) and begin the import
  5. Edit the People views to use the correct taxonomy terms for filtering (http://site-name/admin/structure/views/view/people/edit)