Prototype of bcmagic search plugin.
[htsworkflow.git] / htsworkflow / frontend / inventory / views.py
index 65040a1e10dbabd35dc565b78066c0dac36465d2..027c4aaa4cbdade50a7e9b465e498757ee661d27 100644 (file)
@@ -1,4 +1,6 @@
 from htsworkflow.frontend.inventory.models import Item, LongTermStorage
+from htsworkflow.frontend.inventory.bcmagic import item_search
+from htsworkflow.frontend.bcmagic.plugin import register_search_plugin
 from htsworkflow.frontend.experiments.models import FlowCell
 from htsworkflow.frontend.bcmagic.forms import BarcodeMagicForm
 from htsworkflow.frontend.bcprinter.util import print_zpl_socket
@@ -12,6 +14,8 @@ from django.template import RequestContext
 from django.template.loader import get_template
 from django.contrib.auth.decorators import login_required
 
+register_search_plugin('Inventory Item', item_search)
+
 try:
     import json
 except ImportError, e: