Hi! Thank you foe great idea!
Works great for different fields. But I can not find duplicates by field_video_embed Video URL from the module Video Embed Field
Can you fix it?

Comments

patator’s picture

Issue summary: View changes
sami radi’s picture

Hello,

Could you give me these informations :

1. Can you select the field in the drop-down list ?
2. Are you sure that there are exact duplicates (=> the search for duplicates is CaSe SeNsiTive) ?

Best Regards.

patator’s picture

1. Yes, I can
2. Comparison field is url. No capital letters.
Here http://grabyourboard.ru/ two first node with equal title, url Video Embed Field and body. But different authors.
Her is screenshotes what I did for fide duplicate. First two search by Video Embed. Then search by title.
https://dl.dropboxusercontent.com/u/68010186/grab1_cr.png
https://dl.dropboxusercontent.com/u/68010186/grab2_cr.png
https://dl.dropboxusercontent.com/u/68010186/grab3_cr.png
https://dl.dropboxusercontent.com/u/68010186/grab4_cr.png
By Video Embed nothing found.
By Title found.

patator’s picture

Hello, Sami!
Do you have similar bug with these two modules?

sami radi’s picture

Hello,

I'm sorry but i've been very busy. I haven't tested the matter with the Video Embed field. However, I believe that i have clues about why remove duplicates isn't working with Field Video Embed custom field.

The module Field Video Embed is creating a custom field table with two fields : video_url and embed_code.

In the select box in your screenshot only the label Video Embed is shown rather than two labels for the two real fields in the database that could be used to check for duplicates.

I believe to solve the matter, I should work on the way i'm getting the custom fields columns name from the database. I'll keep you informed when i'will solve the problem.

Best Regards,

Sami

TimelessDomain’s picture

I solved this by copying the video url from the video embed field to a text field (to use for field comparison instead) via Rules module.

Rule Name: Copy Link To Link Plain Text Field - For Duplicate Removal
Content Type: Video
Plain Text Field Name: Link Plain Text
Video Field Name: Video Link

Import this via Rules module if you used the content type & field names listed above otherwise modify the code to import without errors.

{ "rules_copy_link_to_link_plain_text_field_for_duplicate_removal" : {
    "LABEL" : "Copy Link To Link Plain Text Field - For Duplicate Removal",
    "PLUGIN" : "reaction rule",
    "OWNER" : "rules",
    "REQUIRES" : [ "rules" ],
    "ON" : { "node_presave--video" : { "bundle" : "video" } },
    "IF" : [ { "data_is_empty" : { "data" : [ "node:field-link-plain-text" ] } } ],
    "DO" : [
      { "data_set" : {
          "data" : [ "node:field-link-plain-text" ],
          "value" : [ "node:field-video-link:0:video-url" ]
        }
      }
    ]
  }
}

  • Sami Radi committed 4352a63 on 7.x-1.x
    * Getting field sql storage information from field_info_field
    * Issue #...

  • Sami Radi committed b9abde5 on 7.x-1.x
    * Getting field sql storage information from field_info_field
    * Issue #...
sami radi’s picture

Status: Active » Closed (fixed)

Hello,

The problem is solved in the 7.x-1.2 version. You can now find your duplicates according to the video embed field url.

Best Regards.

Sami