manus-tracker

tracker for scientific manuscripts
git clone git://src.adamsgaard.dk/manus-tracker # fast
git clone https://src.adamsgaard.dk/manus-tracker.git # slow
Log | Files | Refs | README Back to index

refs.html (1569B)


      1 {{define "content"}}
      2 <h1 class="page__title">References</h1>
      3 <p>{{.Total}} entries in BIBnew.bib · {{.NoDOI}} without DOI · {{len .DupKeys}} duplicate keys · {{len .DupDOIs}} duplicate DOIs</p>
      4 <div class="ref-forms">
      5   <form class="inline" method="get" action="/refs">
      6     <input name="q" value="{{.Q}}" placeholder="Search key, author, title, year, DOI">
      7     <button>Search</button>
      8   </form>
      9   <form class="inline" method="post" action="/refs">
     10     <input name="query" placeholder="DOI or title/author query" required size="40">
     11     <button>Add from Crossref</button>
     12   </form>
     13 </div>
     14 {{if .Q}}
     15 <table class="table">
     16   <thead><tr><th>Key</th><th>Authors</th><th>Year</th><th>Title</th><th>Journal</th><th>DOI</th></tr></thead>
     17   <tbody>
     18   {{range .Hits}}
     19   <tr><td><code>{{.Key}}</code></td><td>{{index .Fields "author"}}</td><td>{{index .Fields "year"}}</td>
     20     <td>{{index .Fields "title"}}</td><td>{{index .Fields "journal"}}</td>
     21     <td>{{with .DOI}}<a href="https://doi.org/{{.}}">{{.}}</a>{{end}}</td></tr>
     22   {{if $.Added}}<tr><td colspan="6"><pre class="preview">{{.Raw}}</pre></td></tr>{{end}}
     23   {{else}}<tr><td colspan="6" class="muted">No matches.</td></tr>
     24   {{end}}
     25   </tbody>
     26 </table>
     27 {{end}}
     28 {{if or .DupKeys .DupDOIs}}
     29 <section class="panel">
     30   <h2 class="panel__title">Duplicates</h2>
     31   <ul>
     32   {{range $k, $v := .DupKeys}}<li>key <code>{{$k}}</code> × {{len $v}}</li>{{end}}
     33   {{range $d, $v := .DupDOIs}}<li>doi <a href="https://doi.org/{{$d}}">{{$d}}</a>: {{range $v}}<code>{{.}}</code> {{end}}</li>{{end}}
     34   </ul>
     35 </section>
     36 {{end}}
     37 {{end}}