Class: OLE_QA::Framework::OLELS::Instance_Editor
- Inherits:
-
Editor
- Object
- Common_Object
- Page
- Editor
- OLE_QA::Framework::OLELS::Instance_Editor
- Defined in:
- lib/olels/pages/instance_editor.rb
Overview
The OLE Library System MARC Instance Record Editor Screen
Instance Attribute Summary
Attributes inherited from Page
Attributes inherited from Common_Object
Instance Method Summary collapse
-
#set_elements ⇒ Object
Set OLELS Instance Editor page elements.
- #set_lines ⇒ Object
-
#wait_for_elements ⇒ Object
Wait for location field to appear when opening page.
Methods inherited from Editor
Methods inherited from Page
#initialize, #lookup, #lookup_url, #open, #set_functions, #set_line, #wait_for_element, #wait_for_page_to_load
Methods inherited from Common_Object
Methods included from Helpers
#browser, #load_yml, #set_element, #set_function
Constructor Details
This class inherits a constructor from OLE_QA::Framework::OLELS::Editor
Instance Method Details
#set_elements ⇒ Object
Set OLELS Instance Editor page elements.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/olels/pages/instance_editor.rb', line 19 def set_elements super element(:location_toggle) {b.a(:id => "OleLocationInformationSection_toggle")} element(:location_field) {b.text_field(:id => "OleHoldingLocation_control")} element(:call_number_toggle) {b.a(:id => "OleCallNumberInformation_toggle")} element(:prefix_field) {b.text_field(:id => "OleHoldingCallNumberPrefix_control")} element(:call_number_field) {b.text_field(:id => "OleHoldingCallNumber_control")} element(:shelving_order_field) {b.text_field(:id => "OleHoldingShelvingOrder_control")} element(:call_number_type_selector) {b.select_list(:id => "OleHoldingShelvingScheme_control")} element(:call_number_browse_button) {b.(:id => "callNumberHoldingsBrowseLink")} element(:ownership_extent_toggle) {b.a(:id => "OleExtentOfOwnershipSection_toggle")} element(:extended_information_toggle) {b.a(:id => "OleExtendedInformationSection_toggle")} element(:receipt_status_selector) {b.select_list(:id => "OleReceiptStatusField_control")} element(:holding_notes_toggle) {b.a(:id => "OleHoldingNotes_toggle")} element(:holdings_notes_toggle) {b.a(:id => "OleHoldingNotes_toggle")} # Read-Only Elements (non-iterative fields not requiring input) element(:readonly_edit_button) {b.(:text => /Edit/)} element(:readonly_location) {b.span(:id => 'OleHoldingLocation_control')} element(:readonly_prefix) {b.span(:id => 'OleHoldingCallNumberPrefix_control')} element(:readonly_call_number) {b.span(:id => 'OleHoldingCallNumber_control')} element(:readonly_call_number_type) {b.span(:id => 'OleHoldingShelvingScheme_control')} element(:readonly_shelving_order) {b.span(:id => 'OleHoldingShelvingOrder_control')} element(:readonly_created_by) {b.span(:id => 'createdByHolding_control')} element(:readonly_created_date) {b.span(:id => 'createdDateHolding_control')} end |
#set_lines ⇒ Object
50 51 52 53 54 |
# File 'lib/olels/pages/instance_editor.rb', line 50 def set_lines set_line(:ownership_extent_line, OLE_QA::Framework::OLELS::Ownership_Extent_Line) set_line(:access_info_line, OLE_QA::Framework::OLELS::Access_Info_Line) set_line(:holdings_note_line, OLE_QA::Framework::OLELS::Holdings_Note) end |
#wait_for_elements ⇒ Object
Wait for location field to appear when opening page.
46 47 48 |
# File 'lib/olels/pages/instance_editor.rb', line 46 def wait_for_elements super end |