Class: OLE_QA::Framework::OLELS::Batch_Data_Mapping_Line

Inherits:
Line_Object show all
Defined in:
lib/olels/objects/batch_data_mapping_line.rb

Overview

A Data Mapping Line in the OLE Library System Batch Process Bib Profile

Instance Attribute Summary

Attributes inherited from Line_Object

#line_number, #sublines

Attributes inherited from Common_Object

#elements, #functions, #ole

Instance Method Summary collapse

Methods inherited from Line_Object

#initialize, #line_id, #set_subline

Methods inherited from Common_Object

#initialize, #set_functions

Methods included from Helpers

#browser, #load_yml, #set_element, #set_function

Constructor Details

This class inherits a constructor from OLE_QA::Framework::Line_Object

Instance Method Details

#set_elementsObject

Element definitions for the data mapping lines are expected to change in 1.5 development.

  • Data mapping lines can currently be conceptualized as line objects that, when added, transform to subline objects.

  • There is absolutely no need to add more than one main data mapping line, as its only function is to create sublines.

  • This object can be considered a line object, although it represents a subline on the screen. The first line id in the element ID attributes will be hard-coded to 0.

  • “New line” elements will be set on the batch export profile page, with line IDs hard-coded to 0.



28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/olels/objects/batch_data_mapping_line.rb', line 28

def set_elements
  element(:data_type)                             {b.span(:id => "batchExportDataTypeField_line0_line#{line_id}_control")}
  element(:source)                                {b.span(:id => "holding-sourcefield_line0_line#{line_id}_control")}
  element(:source_2)                              {b.span(:id => "dataMappingOptions_sourceField1_line0_line#{line_id}_control")}
  element(:source_field_value)                    {b.span(:id => "dataMappingOptions_sourceFieldValue_line0_line#{line_id}_control")}
  element(:destination_data_type)                 {b.span(:id => "batchExportDataType-destinationfield_line0_line#{line_id}_control")}
  element(:destination_field)                     {b.span(:id => "bibmarc_destinationField_line0_line#{line_id}_control")}
  element(:destination_field_2)                   {b.span(:id => "dataMappingOptions_destinationField1_line0_line#{line_id}_control")}
  element(:destination_field_value)               {b.span(:id => "dataMappingOptions_destinationFieldValue_line0_line#{line_id}_control")}
  element(:priority)                              {b.span(:id => "dataMappingOptions_priority_line0_line#{line_id}_control")}
  element(:delete_button)                         {b.button(:id => "addLineDataMapping-delete_line0_line#{line_id}")}
end