Hi Diwaker,
A quick answer to your first question: for detecting what kind of page
you are displaying (search, submit, etc..), you could use the
'navmenuid' parameter (it is used also for displaying as selected one of
the main tabs in the header).
Cheers,
Ludmila
On 08/17/2011 07:37 AM, Diwaker Ghimire wrote:
Hello,
I have two main queries here:
websubmit doesnot work if we put a form in the header [much like
search]. I have dug a little and found that there is multiple usage of
"document.forms[0]" js snippets in these codes
bibexport_method_fieldexporter_templates.py (2 matches)
websubmit_engine.py (2 matches)
websubmit_managedocfiles.py (3 matches)
websubmit_templates.py (81 matches)
and the same code is used inside some functions websubmit_functions/
too. [I don't know how to post it to trac, Can't we assign id to these
forms and use document.getElementById instead?]
my problem is related to this. I have upgraded 0.9x to 1.0rc0 recently
the same problem existed before when using 0.9x but then i changed all
the files to "document.forms[1]" instead as i haved messed up the core
files of invenio as well Now i don't want to do that [messing around
core files] so i want to remove the "header form" from other than
websearch pages.
My question is can i check for modules on webstyle_templates something
like:
if module != 'websearch':
# donot show the form
else:
# show the form
I have one more question,
I need to have more than one virtual collections [can i do that ?].
Currently what i am doing is i am adding multiple childs of root
virtual collections and showing each of them into their own
"narrowbox". For that i have added quite few code on
websearch_webcoll.py file. My question is : how can i separate my code
from core websearch_webcoll module [i need to overwrite some methods
too.] so that core files remains clean.
Thank you
Diwaker
--
Ludmila Marian ** CERN Document Server **<http://cds.cern.ch/>