app/models/bplmodels/mods_desc_metadata.rb
#include Hydra::Datastream::CommonModsIndexMethods
# MODS XML constants.
include Hydra::Datastream::CommonModsIndexMethods
MODS XML constants.
include Hydra :: Datastream :: CommonModsIndexMethods MODS XML constants .
def insert_location_url(url=nil, access=nil, usage=nil, note=nil)
      location_index = self.mods(0).item_location.count
      for index in 0..self.mods(0).item_location.count-1
        if self.mods(0).item_location(index).url.present?
          location_index = index
        end
      end
      url_index = self.mods(0).item_location(location_index).url.count
      self.mods(0).item_location(location_index).url(url_index, url) unless url.blank?
      self.mods(0).item_location(location_index).url(url_index).usage = usage unless usage.blank?
      self.mods(0).item_location(location_index).url(url_index).access = access unless access.blank?
      self.mods(0).item_location(location_index).url(url_index).note = note unless note.blank?
    end
def insert_location_url ( url = nil , access = nil , usage = nil , note = nil ) location_index = self . mods ( 0 ) . item_location . count for index in 0 .. self . mods ( 0 ) . item_location . count - 1 if self . mods ( 0 ) . item_location ( index ) . url . present? location_index = index end end url_index = self . mods ( 0 ) . item_location ( location_index ) . url . count self . mods ( 0 ) . item_location ( location_index ) . url ( url_index , url ) unless url . blank? self . mods ( 0 ) . item_location ( location_index ) . url ( url_index ) . usage = usage unless usage . blank? self . mods ( 0 ) . item_location ( location_index ) . url ( url_index ) . access = access unless access . blank? self . mods ( 0 ) . item_location ( location_index ) . url ( url_index ) . note = note unless note . blank? end
include Hydra::Datastream::CommonModsIndexMethods
MODS XML constants.
include Hydra :: Datastream :: CommonModsIndexMethods MODS XML constants .
url
access
usage
note