class OLE_QA::Framework::DocStore::Marc_Results
OLE Document Store Search
Results
for a Marc Bibliographic Record search.
Public Instance Methods
set_elements()
click to toggle source
Calls superclass method
OLE_QA::Framework::DocStore::Results#set_elements
# File lib/docstore/pages/marc_results.rb, line 19 def set_elements super end
set_functions()
click to toggle source
Calls superclass method
OLE_QA::Framework::DocStore::Results#set_functions
# File lib/docstore/pages/marc_results.rb, line 24 def set_functions super # Return a 'view' button by a given (1-based) numerical value. function(:view_button) { |which = 1| which -= 1 ; b.button(:value => /View/, :index => which)} # Return an 'edit' button by a given (1-based) numerical value. function(:edit_button) { |which = 1| which -= 1 ; b.button(:name => 'Edit', :index => which)} # Return an 'instance' link by a given (1-based) numerical value. function(:instance_link) { |which = 1| which -= 1 ; b.b(:text => /Instance/, :index => which).parent} # Return a field value (other than title) in the results. function(:value_in_results) { |which| b.dd(:text => /#{which}/) } # Check whether a given field value exists in the search results. function(:value_in_results?) { |which| value_in_results(which).present?} # Alias value_in_results and value_in_results? to text_in_results/?. function(:text_in_results) { |which| value_in_results(which)} function(:text_in_results?) { |which| value_in_results?(which)} # Return an instance link containing the given text. function(:instance_text) { |which| b.b(:text => /#{which}/).parent } end