lib/cirneco/work.rb in cirneco-0.4.9 vs lib/cirneco/work.rb in cirneco-0.5.3

- old
+ new

@@ -1,8 +1,7 @@ require 'active_support/all' require 'nokogiri' -require 'sanitize' require_relative 'api' require_relative 'utils' require_relative 'base' @@ -33,14 +32,9 @@ @descriptions = options.fetch(:descriptions, nil) @related_identifiers = options.fetch(:related_identifiers, nil) end SCHEMA = File.expand_path("../../../resources/kernel-4.0/metadata.xsd", __FILE__) - - - def sanitize(string) - Sanitize.fragment(string).squish - end def has_required_elements? doi && creators && title && publisher && publication_year && resource_type end