User Tools


This is an old revision of the document!


How to merge duplicate records in Drupal

The NNELS repository is designed to have a single Drupal node (record) that contains multiple file attachments or formats. For example, there is 1 record for the book Homes : a refugee story and it contains 5 file attachments.

Over time, multiple records have popped up for the same title. We need to ensure all the files for a title are in a single record. Here's how to merge all files for a title into 1 record:

  1. Go to the Duplicates: Titles view in Drupal [link to come]. You'll see a list of all the records that are duplicates in the repository. Each file is on its own row. The column called Nid is important - it stands for "node identifier". In other words, the record identifier. Files that have the same Nid are located on the same record page.
    1. For example, you might see 4 files that are the same book. 3 of these files might have the same Nid, meaning they are located on the same record page. But 1 file might have a different Nid, so be on a different record page. In this case, we'll want to transfer that 1 file to the same record page where the other 3 files are located. Make sense?
  2. Select all of the files that are the same book (check the title and author fields to ensure they're actually the same book).
  3. Click the Transfer File Resource Entities operation button
public/nnels/cataloguing/merge-duplicate-records.1551886468.txt.gz · Last modified: 2019/03/06 07:34 by farrah.little