Closed emanuil-tolev closed 12 years ago
Reason found: during prettification of submission form, radio button input element's name changed from 'type' to 'test_or_desc' in the template, but nowhere in the code which processes the template, so no surprises there. Working to resolve in master.
Furthermore: more fields added to submission page, no code to handle them. Working to resolve in master.
Furthermore: url_prefix field is modified by the code in importer.py before it's indexed into ES. Modification is a bit flaky though - if the field is left blank, it ends up being "http:///" in the index. Also, judging from dao.py (and bibserver's dao.py), if data needs processing before indexing into ES, a method should be defined in the dao.py class definition for that class. Class Test needs new method in this case. See dao.py:Account's methods for an example of where I got that notion from. So, perhaps url_prefix will benefit from a method in dao.py:Test. NOT working on this right now, just noting.
Okay, url_prefix handling code actually OVERWRITES whatever the user puts in with http:///. Not going to re-architecture it right now, but working on fix in master.
Recap:
Submission page displays, but:
Plus, it REALLY does not index the data the user submitted (no new items in elasticsearch index).