annotate mpiwgISMI/search-result.tpl.php @ 47:378dcb66a27f

new compare_models comparing the existence of nodes and relations in two graphs. fixed bugs in ismixml2model.
author casties
date Mon, 06 Feb 2017 18:44:43 +0100
parents eccbb6239b89
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
37
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
1 <?php
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
2
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
3 /**
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
4 * @file
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
5 * Default theme implementation for displaying a single search result.
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
6 *
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
7 * This template renders a single search result and is collected into
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
8 * search-results.tpl.php. This and the parent template are
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
9 * dependent to one another sharing the markup for definition lists.
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
10 *
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
11 * Available variables:
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
12 * - $url: URL of the result.
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
13 * - $title: Title of the result.
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
14 * - $snippet: A small preview of the result. Does not apply to user searches.
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
15 * - $info: String of all the meta information ready for print. Does not apply
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
16 * to user searches.
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
17 * - $info_split: Contains same data as $info, split into a keyed array.
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
18 * - $module: The machine-readable name of the module (tab) being searched, such
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
19 * as "node" or "user".
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
20 * - $title_prefix (array): An array containing additional output populated by
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
21 * modules, intended to be displayed in front of the main title tag that
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
22 * appears in the template.
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
23 * - $title_suffix (array): An array containing additional output populated by
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
24 * modules, intended to be displayed after the main title tag that appears in
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
25 * the template.
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
26 *
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
27 * Default keys within $info_split:
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
28 * - $info_split['module']: The module that implemented the search query.
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
29 * - $info_split['user']: Author of the node linked to users profile. Depends
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
30 * on permission.
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
31 * - $info_split['date']: Last update of the node. Short formatted.
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
32 * - $info_split['comment']: Number of comments output as "% comments", %
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
33 * being the count. Depends on comment.module.
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
34 *
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
35 * Other variables:
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
36 * - $classes_array: Array of HTML class attribute values. It is flattened
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
37 * into a string within the variable $classes.
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
38 * - $title_attributes_array: Array of HTML attributes for the title. It is
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
39 * flattened into a string within the variable $title_attributes.
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
40 * - $content_attributes_array: Array of HTML attributes for the content. It is
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
41 * flattened into a string within the variable $content_attributes.
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
42 *
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
43 * Since $info_split is keyed, a direct print of the item is possible.
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
44 * This array does not apply to user searches so it is recommended to check
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
45 * for its existence before printing. The default keys of 'type', 'user' and
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
46 * 'date' always exist for node searches. Modules may provide other data.
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
47 * @code
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
48 * <?php if (isset($info_split['comment'])): ?>
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
49 * <span class="info-comment">
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
50 * <?php print $info_split['comment']; ?>
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
51 * </span>
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
52 * <?php endif; ?>
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
53 * @endcode
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
54 *
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
55 * To check for all available data within $info_split, use the code below.
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
56 * @code
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
57 * <?php print '<pre>'. check_plain(print_r($info_split, 1)) .'</pre>'; ?>
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
58 * @endcode
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
59 *
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
60 * @see template_preprocess()
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
61 * @see template_preprocess_search_result()
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
62 * @see template_process()
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
63 *
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
64 * @ingroup themeable
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
65 */
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
66 ?>
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
67 <li class="<?php print $classes; ?>"<?php print $attributes; ?>>
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
68 <?php print render($bib_render) ?>
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
69 <!-- <?php print render($title_prefix); ?>
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
70 <h3 class="title"<?php print $title_attributes; ?>>
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
71 <a href="<?php print $url; ?>"><?php print $title; ?></a>
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
72 </h3>
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
73 <?php print render($title_suffix); ?>
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
74 <div class="search-snippet-info">
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
75 <?php if ($snippet): ?>
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
76 <p class="search-snippet"<?php print $content_attributes; ?>><?php print $snippet; ?></p>
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
77 <?php endif; ?>
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
78 <?php if ($info): ?>
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
79 <p class="search-info"><?php print $info; ?></p>
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
80 <?php endif; ?>
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
81 </div>
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
82 -->
eccbb6239b89 custom search results for bibliography.
casties
parents:
diff changeset
83 </li>