Class: OLE_QA::Framework::OLELS::Control_006_Line

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

Overview

Represents a Marc control field 006 line in the OLELS Bib Editor.

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

Set Marc data line elements.



21
22
23
24
25
26
27
# File 'lib/olels/objects/control_006_line.rb', line 21

def set_elements
  element(:field)                       {b.text_field(:id => "Control_Field_006_line#{line_id}_control")}
  element(:add_button)                  {b.button(:id => "Control_Field_006_addTagButton_id_line#{line_id}")}
  element(:edit_button)                 {b.button(:id => "Control_Field_006_EditTagButton_id_line#{line_id}")}
  element(:remove_button)               {b.button(:id => "Control_Field_006_removeTagButton_id_line#{line_id}")}
  element(:clear_button)                {b.button(:id => "Control_Field_006_clearTagButton_id_line#{line_id}")}
end