Project

General

Profile

« Previous | Next » 

Revision 7882

include the result-template stuff - - causing js errors in perl registry without it.

View differences:

lib/style/common/templates/metacatui/genericFooter.tmpl
8 8
        </div>
9 9
      </div>
10 10
    </footer>
11
    
12
    <!-- Templates used for rendering data from the models
13
    ======================================================================= -->
14
    <script type="text/template" id="result-template">
15
        <div class="result-selection span1"><input type="checkbox" <%= selected ? 'checked' : '' %>></div>
16
        <div class="result-citation span7">
17
              <span class="result-author"><% var count=0; _.each(origin, function(author) {
18
                   count++;
19
                   if (count > 1) {
20
                       print(", ")
21
             }
22
                   if (count > 1 && count == origin.length) {
23
                       print("and ")
24
             }
25
                   print(author)
26
                   if (count == origin.length) {
27
                       print(". ")
28
             }
29
               }) %></span>
30
               <span class="result-pubdate"> <% if(pubDate) { 
31
                   print(moment(pubDate).format('YYYY'), '. ')
32
               } else {
33
                   print(moment(dateUploaded).format('YYYY'), '. ')
34
               } %></span>
35
               <span class="result-title"> <% if (title) { print('<a href=\"', baseurl, id, '\">', title, '.</a> '); } %></span>
36
               <span class="result-id"> <%- id %></span>
37
        </div>
38
        <div class="result-stats span2"><span class="badge badge-info"><%- downloads %></span> <span class="badge badge-success"><%- citations %></span></div>
39
        
40
      <div class="btn-group span1">
41
        <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
42
          Download
43
          <span class="caret"></span>
44
        </a>
45
        <ul class="dropdown-menu">
46
          <li><a href="#">Add to collection...</a></li>
47
          <li class="divider"></li>
48
          <li><a href="#">Share...</a></li>
49
        </ul>
50
      </div>
51
  </script>
52
  <script type="text/template" id="statcounts-template">
53
    <div class="result-header-count span8" id="countstats"><%- start %> to <%- end %> of <%- numFound %></div>
54
  </script>
11 55

  
12 56
    <!-- Javascript at the end of the document to load pages faster 
13 57
    ======================================================================= -->

Also available in: Unified diff