2009-10-18 07:52:27 -05:00
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
|
|
|
|
metal:use-macro="here/main_template/macros/master">
|
|
|
|
|
|
|
|
<tal:comment replace="nothing">This page presents results of queries</tal:comment>
|
|
|
|
<body>
|
|
|
|
|
2009-10-20 09:57:00 -05:00
|
|
|
<tal:comment replace="nothing">Disable standard Plone green tabs</tal:comment>
|
|
|
|
<div metal:fill-slot="top_slot">
|
|
|
|
<metal:block metal:use-macro="here/global_defines/macros/defines" />
|
|
|
|
<div tal:define="dummy python:request.set('disable_border', 1)" />
|
|
|
|
</div>
|
2009-10-18 07:52:27 -05:00
|
|
|
|
2009-10-20 09:57:00 -05:00
|
|
|
<tal:comment replace="nothing">We suppose we are in the app folder here.</tal:comment>
|
|
|
|
<div metal:fill-slot="main"
|
|
|
|
tal:define="appFolder context/getParentNode;
|
|
|
|
appName appFolder/id;
|
|
|
|
tool python: portal.get('portal_%s' % appName.lower());
|
2009-11-03 08:02:18 -06:00
|
|
|
contentType python:context.REQUEST.get('type_name');
|
2009-11-17 03:05:19 -06:00
|
|
|
searchName python:context.REQUEST.get('search', '')">
|
2009-10-18 07:52:27 -05:00
|
|
|
|
2010-08-05 11:23:17 -05:00
|
|
|
<div metal:use-macro="here/skyn/page/macros/prologue"/>
|
2009-11-03 08:02:18 -06:00
|
|
|
<tal:comment replace="nothing">Query result</tal:comment>
|
|
|
|
<div id="queryResult"></div>
|
|
|
|
|
|
|
|
<script language="javascript"
|
2010-10-14 07:43:56 -05:00
|
|
|
tal:define="ajaxUrl python: tool.getQueryUrl(contentType, searchName)"
|
|
|
|
tal:content="python: 'askQueryResult(\'queryResult\', \'%s\',\'%s\',\'%s\',0)' % (tool.absolute_url(), contentType, searchName)">
|
2009-11-03 08:02:18 -06:00
|
|
|
</script>
|
2009-10-20 09:57:00 -05:00
|
|
|
</div>
|
2009-10-18 07:52:27 -05:00
|
|
|
</body>
|
|
|
|
</html>
|