Mercurial > hg > solrsearch
comparison solr-search-result.tpl.php @ 0:a2b4f67e73dc default tip
initial
author | Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 08 Jun 2015 10:21:54 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a2b4f67e73dc |
---|---|
1 <?php | |
2 | |
3 /** | |
4 * @file | |
5 * Default theme implementation for displaying a single search result. | |
6 | |
7 * @see template_preprocess() | |
8 * @see template_preprocess_search_result() | |
9 * @see template_process() | |
10 * | |
11 * @ingroup themeable | |
12 */ | |
13 ?> | |
14 | |
15 <?php if ($doc_type == "indexMeta"):?> | |
16 <div class="single-result indexmeta <?php print $classes; ?>" <?php print $attributes; ?>> | |
17 <div class="thumbnail"> | |
18 <?php if ($access_type !="free"):?> | |
19 <a href="<?php print $url; ?>"> | |
20 <img src="<?php print $thumburl; ?>"/> | |
21 <p class="solrsearch_internal">internal</p> | |
22 </a> | |
23 <?php else: ;?> | |
24 <img src="<?php print $thumburl; ?>"/> | |
25 <?php endif;?> | |
26 </div> | |
27 <div class="search-result-meta"> | |
28 <div class="search-result-author"> | |
29 <?php print $author; ?> | |
30 </div> | |
31 <div class="search-result-title"> | |
32 <a href="<?php print $url; ?>"> | |
33 <?php print $title; ?> | |
34 <?php if (isset ($signature)):?> | |
35 <?php print $signature; ?> | |
36 <?php endif;?> | |
37 </a> | |
38 </div> | |
39 <div class="search-result-date"> | |
40 <?php if (isset ($date)):?> | |
41 <?php print $date; ?> | |
42 <?php else: ?> | |
43 <?php print $year; ?> | |
44 <?php endif;?> | |
45 </div> | |
46 <div class="search-result-dataSource"> | |
47 <?php if (isset ($dataSource)):?> | |
48 <?php print $dataSource; ?> | |
49 <?php else: ?> | |
50 <?php print $dataSource; ?> | |
51 <?php endif;?> | |
52 </div> | |
53 | |
54 | |
55 | |
56 </div> | |
57 <!--</div> closing div is in solrsearch.pages.inc line 174--> | |
58 <?php elseif ($doc_type == "external"):?> | |
59 <div class="single-result indexmeta <?php print $classes; ?>" <?php print $attributes; ?>> | |
60 <div class="thumbnail"> | |
61 <?php if ($external_image!=""): ?> | |
62 <img src="<?php print $external_image; ?>"/> | |
63 <?php endif;?> | |
64 </div> | |
65 | |
66 <div class="search-result-meta"> | |
67 <div class="search-result-author"> | |
68 <?php print $author; ?> | |
69 </div> | |
70 <div class="search-result-title"> | |
71 <?php if ($external_url!=""): ?> | |
72 <a href="<?php print $external_url; ?>"> | |
73 <?php endif; ?> | |
74 <?php print $title; ?> | |
75 <?php if (isset ($signature)):?> | |
76 <?php print $signature; ?> | |
77 <?php endif;?> | |
78 </a> | |
79 </div> | |
80 <div class="search-result-date"> | |
81 <?php if (isset ($date)):?> | |
82 <?php print $date; ?> | |
83 <?php else: ?> | |
84 <?php print $year; ?> | |
85 <?php endif;?> | |
86 </div> | |
87 | |
88 <div class="search-result-provider"> | |
89 <?php if (isset ($provider)):?> | |
90 <?php print $provider; ?> | |
91 <?php else: ?> | |
92 <?php print $provider; ?> | |
93 <?php endif;?> | |
94 </div> | |
95 | |
96 <div class="search-result-dataSource"> | |
97 <?php if (isset ($dataSource)):?> | |
98 provided by: <?php print $dataSource; ?> | |
99 <?php else: ?> | |
100 <?php print $dataSource; ?> | |
101 <?php endif;?> | |
102 </div> | |
103 | |
104 </div> | |
105 | |
106 | |
107 | |
108 <?php elseif ($doc_type == "institutesLibrary"): ?> | |
109 <div class="single-result institutesLibrary <?php print $classes; ?>"<?php print $attributes; ?>> | |
110 <div class="thumbnail"> | |
111 | |
112 </div> | |
113 <div class="search-result-meta"> | |
114 <div class="libraryfield"> | |
115 <?php if (isset ($signature)):?> | |
116 <span class="signatureLabel">Signature Institute's Library:</span> | |
117 <span class="signature"><?php print $signature; ?></span> | |
118 <?php endif;?> | |
119 </div> | |
120 <div class="search-result-author"> | |
121 <?php print $author; ?> | |
122 </div> | |
123 <div class="search-result-title"> | |
124 <a target="_blank" href="<?php print $librarySearchPath; ?>"> | |
125 <?php print $title; ?> | |
126 </a> | |
127 </div> | |
128 <div class="search-result-date"> | |
129 <?php if (isset ($date)):?> | |
130 <?php print $date; ?> | |
131 <?php else: ?> | |
132 <?php print $year; ?> | |
133 <?php endif;?> | |
134 </div> | |
135 </div> | |
136 <!--</div> closing div is in solrsearch.pages.inc line 174--> | |
137 <?php else: ?> | |
138 <div class="single-result collection <?php print $classes; ?>" <?php print $attributes; ?>> | |
139 <div class="thumbnail"> | |
140 | |
141 </div> | |
142 <div class="search-result-meta"> | |
143 <div class="search-result-author"> | |
144 <?php print $author; ?> | |
145 </div> | |
146 <div class="search-result-title"> | |
147 <span class="collectionLabel">Collection:</span> | |
148 <a href="<?php print $collectionPath; ?>"> | |
149 <?php print $title; ?> | |
150 </a> | |
151 </div> | |
152 <div class="search-result-date"> | |
153 <?php if (isset ($date)):?> | |
154 <?php print $date; ?> | |
155 <?php else: ?> | |
156 <?php print $year; ?> | |
157 <?php endif;?> | |
158 </div> | |
159 <div class="collection-content"> | |
160 <div><?php print $content?></div> | |
161 </div> | |
162 </div> | |
163 <!--</div> closing div is in solrsearch.pages.inc line 174--> | |
164 <?php endif;?> | |
165 | |
166 | |
167 <!-- <tr class="line"> | |
168 <td> </td> | |
169 <td colspan="4"> | |
170 <div class="search-snippet-info"> | |
171 <?php if ($snippet): ?> | |
172 <p class="search-snippet"<?php print $content_attributes; ?>><?php print $snippet; ?></p> | |
173 <?php endif; ?> | |
174 </div> | |
175 </td> | |
176 </tr>--> |