view · edit · sidebar · attach · print · history

20121011-fixed-delete-link-instant-search-update-generika-lookandfeel

<< 20121012-create-fachinfo-chapter-exporter-job | 2012 | 20121010-update-interaction-instant-search >>


Summary

  • Improved instant search
    • fixed duped delete_all links
  • Updated generika lookandfeel

Commits

Index


Fixed duplicated delete_all link

  • Interactions Instant search
  • Fachinfo chapter instant search
commit

Update generika lookandfeel

removed optional links in result list.

    DISABLED = [
      :atc_drugbank_link,
      :atc_dosing_link,
      :atc_division_link,
      :atc_pharmacokinetic_link,
    ]
commit

Removed following navigations and query limit.

  • Analysen
  • Arzt
  • Interaktionen
  • MiGeL
  • Spital
commit

Updated service navigation in generika

src/state/user/global.rb

	ZONE_NAVIGATION = [
		State::User::MailingList,
		State::User::Plugin,
		State::User::DownloadExport,
	]

src/view/navigation.rb

    class ZoneNavigation < Navigation
			NAV_METHOD = :zone_navigation
			NAV_LINK_CSS = 'navigation right'
      def build_navigation(links = [])
        links = @lookandfeel.zone_navigation.sort_by { |state|
          state = case state
                  when String, Symbol
                    state
                  else
                    state.direct_event
                  end
          @lookandfeel.lookup(state.to_sym).to_s.downcase
        }
        super(links)
      end
    end

It seems that bug of sbsm. Only User class of Generika Lookandfeel can not call parent method.
Finaly Added following code.

/src/custom/lookandfeelwrapper.rb

+    def zone_navigation(filter=false)
+      super
+    end
commit
view · edit · sidebar · attach · print · history
Page last modified on October 22, 2013, at 08:50 PM