view · edit · sidebar · attach · print · history

20120921-fachinfo-chapter-instant-search-navigatino-layout

<< | Index | >>


Summary

  • Create retult view of Fachinfo chapter search.

Commits

Index


Text match

use String#scan for multi(times) match.

  desc.match(/.*\n?.*#{term}.*\n?.*/i)
  desc.scan(/.*\n?.*#{term}.*\n?.*/i)

Setup cache before xhr request

warm-up (prepare Registrations in memory)

class FachinfoSearch < View::PrivateTemplate
  CONTENT = View::Drugs::FachinfoSearchComposite
  SNAPBACK_EVENT = :result
  JAVASCRIPTS = ['admin']
  def init
    # warm-up
    @session.app.registrations.length
    super
  en

Added CSV Export

EAN-Code; Pharmacode; Name; Search Match
  • FI_(chapter)_(term)_(date).csv
view · edit · sidebar · attach · print · history
Page last modified on September 21, 2012, at 12:16 PM