class OLE_QA::Framework::OLELS::Batch_Data_Mapping_Line
A Data Mapping Line in the OLE Library System Batch Process Bib Profile
Public Instance Methods
set_elements()
click to toggle source
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.
# 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