app/models/bplmodels/mods_desc_metadata.rb
def insert_table_of_contents(text_value, url=nil)
      contents_index = self.mods(0).table_of_contents.count
      self.mods(0).table_of_contents(contents_index, text_value) unless text_value.blank?
      self.mods(0).table_of_contents(contents_index).href = url unless url.blank?
    end
#include Hydra::Datastream::CommonModsIndexMethods
# MODS XML constants.
include Hydra::Datastream::CommonModsIndexMethods
MODS XML constants.
include Hydra :: Datastream :: CommonModsIndexMethods MODS XML constants .
def insert_table_of_contents(text_value, url=nil)
      contents_index = self.mods(0).table_of_contents.count
      self.mods(0).table_of_contents(contents_index, text_value) unless text_value.blank?
      self.mods(0).table_of_contents(contents_index).href = url unless url.blank?
    end
def insert_table_of_contents ( text_value , url = nil ) contents_index = self . mods ( 0 ) . table_of_contents . count self . mods ( 0 ) . table_of_contents ( contents_index , text_value ) unless text_value . blank? self . mods ( 0 ) . table_of_contents ( contents_index ) . href = url unless url . blank? end
include Hydra::Datastream::CommonModsIndexMethods
MODS XML constants.
include Hydra :: Datastream :: CommonModsIndexMethods MODS XML constants .
text_value
url