Skip to content

Commit

Permalink
commited by action runner plazi/plaziWebsite@e853ed7
Browse files Browse the repository at this point in the history
  • Loading branch information
punkish committed Feb 6, 2025
1 parent 081a0af commit 9319dc9
Show file tree
Hide file tree
Showing 12 changed files with 44 additions and 24 deletions.
2 changes: 1 addition & 1 deletion index.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<description>Recent content in Home on Plazi</description>
<generator>Hugo</generator>
<language>en-us</language>
<lastBuildDate>Wed, 05 Feb 2025 19:35:38 +0100</lastBuildDate>
<lastBuildDate>Thu, 06 Feb 2025 12:14:23 +0100</lastBuildDate>
<atom:link href="https://plazi.org/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>EJT and GBIF Unveil New Portal to Enhance Access to Taxonomic Data</title>
Expand All @@ -20,7 +20,7 @@
<link>https://plazi.org/litsearch/</link>
<pubDate>Wed, 29 Jan 2025 19:17:05 +0200</pubDate>
<guid>https://plazi.org/litsearch/</guid>
<description>&lt;a href=&#34;https://plazi.org/litsearch&#34;&gt;HOME&lt;/a&gt;&#xA;&lt;details id=&#34;litsearchContainer&#34; open&gt;&#xA; &lt;summary&gt;Search Fields&lt;/summary&gt;&#xA; &lt;form id=&#34;litsearch&#34;&gt;&#xA; &lt;input type=&#34;hidden&#34; name=&#34;page&#34; value=1&gt;&#xA; &lt;input type=&#34;hidden&#34; name=&#34;size&#34; value=30&gt;&#xA;&#xA; &lt;div class=&#34;inputContainer&#34;&gt;&#xA; &lt;p&gt;Community:&lt;/p&gt;&#xA; &lt;label&gt;&#xA; &lt;input type=&#34;radio&#34; value=&#34;batlit&#34; name=&#34;communities&#34; checked&gt; Batlit&#xA; &lt;/label&gt; &#xA; &lt;label&gt;&#xA; &lt;input type=&#34;radio&#34; value=&#34;Taxodros&#34; name=&#34;communities&#34;&gt; Taxodros&#xA; &lt;/label&gt; &#xA; &lt;label&gt;&#xA; &lt;input type=&#34;radio&#34; value=&#34;BHL-SIBiLS&#34; name=&#34;communities&#34;&gt; BHL-SIBiLS&#xA; &lt;/label&gt;&#xA; &lt;/div&gt;&#xA; &#xA; &lt;div class=&#34;inputContainer&#34;&gt;&#xA; &lt;input type=&#34;text&#34; name=&#34;authors&#34; placeholder=&#34;Authors&#34;&gt;&#xA; &lt;ul class=&#39;example&#39;&gt;&#xA; &lt;li&gt;&lt;span class=&#34;key&#34;&gt;single author:&lt;/span&gt; Montani&lt;/li&gt;&#xA; &lt;li&gt;&lt;span class=&#34;key&#34;&gt;multiple authors (names separated by a space):&lt;/span&gt; Montani Saigo&lt;/li&gt;&#xA; &lt;li&gt;&lt;span class=&#34;key&#34;&gt;exclude author:&lt;/span&gt; -Montani&lt;/li&gt;&#xA; &lt;li&gt;&lt;span class=&#34;key&#34;&gt;exclude deprecated:&lt;/span&gt; -DEPRECATED&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &lt;/div&gt;&#xA;&#xA; &lt;div class=&#34;inputContainer&#34;&gt;&#xA; &lt;input type=&#34;text&#34; name=&#34;year&#34; placeholder=&#34;Publication Year&#34;&gt;&#xA; &lt;ul class=&#39;example&#39;&gt;&#xA; &lt;li&gt;&lt;span class=&#34;key&#34;&gt;single year:&lt;/span&gt; 2024&lt;/li&gt;&#xA; &lt;li&gt;&lt;span class=&#34;key&#34;&gt;range:&lt;/span&gt; 2024-2025&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &lt;/div&gt;&#xA;&#xA; &lt;div class=&#34;inputContainer&#34;&gt;&#xA; &lt;input type=&#34;text&#34; name=&#34;title&#34; placeholder=&#34;Title&#34;&gt;&#xA; &lt;/div&gt;&#xA;&#xA; &lt;div class=&#34;inputContainer&#34;&gt;&#xA; &lt;input type=&#34;text&#34; name=&#34;journal&#34; placeholder=&#34;Journal Name&#34;&gt; &#xA; &lt;input type=&#34;text&#34; name=&#34;volume&#34; placeholder=&#34;Volume&#34; disabled&gt; &#xA; &lt;input type=&#34;text&#34; name=&#34;issue&#34; placeholder=&#34;Issue&#34; disabled&gt;&#xA; &lt;ul class=&#39;example&#39;&gt;&#xA; &lt;li&gt;&lt;span class=&#34;key&#34;&gt;word in journal name:&lt;/span&gt; ecological&lt;/li&gt;&#xA; &lt;li&gt;&lt;span class=&#34;key&#34;&gt;exact journal name (in quotes):&lt;/span&gt; &#34;Ecological Entomology&#34;&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &lt;/div&gt;&#xA;&#xA; &lt;div class=&#34;inputContainer&#34;&gt;&#xA; &lt;button type=&#34;reset&#34;&gt;Reset&lt;/button&gt;&#xA; &lt;button type=&#34;submit&#34; id=&#34;search&#34;&gt;Search&lt;/button&gt; &#xA; &lt;img id=&#34;loadingGif&#34; src=&#34;img/loading.gif&#34; alt=&#34;searching…&#34; width=&#34;24&#34; height=&#34;24&#34;&gt;&#xA; &lt;/div&gt;&#xA; &lt;/form&gt;&#xA;&lt;/details&gt;&#xA;&#xA;&lt;div id=&#34;result&#34;&gt;&#xA; &lt;div id=&#34;searchResultStatus&#34;&gt;&lt;/div&gt;&#xA; &lt;div id=&#34;resultTable&#34;&gt;&lt;/div&gt;&#xA; &lt;div id=&#34;formLinks&#34;&gt;&#xA; &lt;div id=&#34;litsearch-pager&#34;&gt;&#xA; &lt;a id=&#34;prev&#34; class=&#34;litsearch-pager&#34; data-page=&#34;&#34; href=&#34;&#34;&gt;Prev&lt;/a&gt;&#xA; &lt;a id=&#34;next&#34; class=&#34;litsearch-pager&#34; data-page=&#34;&#34; href=&#34;&#34;&gt;Next&lt;/a&gt;&#xA; &lt;/div&gt;&#xA; &lt;button id=&#34;download-page&#34;&gt;download these&lt;/button&gt;&#xA; &lt;/div&gt;&#xA;&lt;/div&gt;</description>
<description>&lt;a href=&#34;https://plazi.org/litsearch&#34;&gt;HOME&lt;/a&gt;&#xA;&lt;details id=&#34;litsearchContainer&#34; open&gt;&#xA; &lt;summary&gt;Search Fields&lt;/summary&gt;&#xA; &lt;form id=&#34;litsearch&#34;&gt;&#xA; &lt;input type=&#34;hidden&#34; name=&#34;page&#34; value=1&gt;&#xA; &lt;input type=&#34;hidden&#34; name=&#34;size&#34; value=30&gt;&#xA;&#xA; &lt;div class=&#34;inputContainer&#34;&gt;&#xA; &lt;p&gt;Community:&lt;/p&gt;&#xA; &lt;label&gt;&#xA; &lt;input type=&#34;radio&#34; value=&#34;biosyslit&#34; name=&#34;communities&#34; checked&gt; BioSysLit&#xA; &lt;/label&gt; &#xA; &lt;label&gt;&#xA; &lt;input type=&#34;radio&#34; value=&#34;batlit&#34; name=&#34;communities&#34;&gt; Batlit&#xA; &lt;/label&gt; &#xA; &lt;label&gt;&#xA; &lt;input type=&#34;radio&#34; value=&#34;Taxodros&#34; name=&#34;communities&#34;&gt; Taxodros&#xA; &lt;/label&gt; &#xA; &lt;label&gt;&#xA; &lt;input type=&#34;radio&#34; value=&#34;BHL-SIBiLS&#34; name=&#34;communities&#34;&gt; BHL-SIBiLS&#xA; &lt;/label&gt;&#xA; &lt;/div&gt;&#xA; &#xA; &lt;div class=&#34;inputContainer&#34;&gt;&#xA; &lt;input type=&#34;text&#34; name=&#34;authors&#34; placeholder=&#34;Authors&#34;&gt;&#xA; &lt;ul class=&#39;example&#39;&gt;&#xA; &lt;li&gt;&lt;span class=&#34;key&#34;&gt;single author:&lt;/span&gt; Montani&lt;/li&gt;&#xA; &lt;li&gt;&lt;span class=&#34;key&#34;&gt;multiple authors (names separated by a space):&lt;/span&gt; Montani Saigo&lt;/li&gt;&#xA; &lt;li&gt;&lt;span class=&#34;key&#34;&gt;exclude author:&lt;/span&gt; -Montani&lt;/li&gt;&#xA; &lt;!-- &lt;li&gt;&lt;span class=&#34;key&#34;&gt;exclude deprecated:&lt;/span&gt; -DEPRECATED&lt;/li&gt; --&gt;&#xA; &lt;/ul&gt;&#xA; &lt;/div&gt;&#xA;&#xA; &lt;div class=&#34;inputContainer&#34;&gt;&#xA; &lt;input type=&#34;text&#34; name=&#34;year&#34; placeholder=&#34;Publication Year&#34;&gt;&#xA; &lt;ul class=&#39;example&#39;&gt;&#xA; &lt;li&gt;&lt;span class=&#34;key&#34;&gt;single year:&lt;/span&gt; 2024&lt;/li&gt;&#xA; &lt;li&gt;&lt;span class=&#34;key&#34;&gt;range:&lt;/span&gt; 2024-2025&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &lt;/div&gt;&#xA;&#xA; &lt;div class=&#34;inputContainer&#34;&gt;&#xA; &lt;input type=&#34;text&#34; name=&#34;title&#34; placeholder=&#34;Title&#34;&gt;&#xA; &lt;/div&gt;&#xA;&#xA; &lt;div class=&#34;inputContainer&#34;&gt;&#xA; &lt;input type=&#34;text&#34; name=&#34;journal&#34; placeholder=&#34;Journal Name&#34;&gt; &#xA; &lt;input type=&#34;text&#34; name=&#34;volume&#34; placeholder=&#34;Volume&#34; disabled&gt; &#xA; &lt;input type=&#34;text&#34; name=&#34;issue&#34; placeholder=&#34;Issue&#34; disabled&gt;&#xA; &lt;ul class=&#39;example&#39;&gt;&#xA; &lt;li&gt;&lt;span class=&#34;key&#34;&gt;word in journal name:&lt;/span&gt; ecological&lt;/li&gt;&#xA; &lt;li&gt;&lt;span class=&#34;key&#34;&gt;exact journal name (in quotes):&lt;/span&gt; &#34;Ecological Entomology&#34;&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &lt;/div&gt;&#xA;&#xA; &lt;div class=&#34;inputContainer&#34;&gt;&#xA; &lt;input type=&#34;checkbox&#34; name=&#34;include-deprecated&#34;&gt; Include &lt;i&gt;DEPRECATED&lt;/i&gt; records&#xA; &lt;/div&gt;&#xA;&#xA; &lt;div class=&#34;inputContainer&#34;&gt;&#xA; &lt;button type=&#34;reset&#34;&gt;Reset&lt;/button&gt;&#xA; &lt;button type=&#34;submit&#34; id=&#34;search&#34;&gt;Search&lt;/button&gt; &#xA; &lt;img id=&#34;loadingGif&#34; src=&#34;img/loading.gif&#34; alt=&#34;searching…&#34; width=&#34;24&#34; height=&#34;24&#34;&gt;&#xA; &lt;/div&gt;&#xA; &lt;/form&gt;&#xA;&lt;/details&gt;&#xA;&#xA;&lt;div id=&#34;result&#34;&gt;&#xA; &lt;div id=&#34;searchResultStatus&#34;&gt;&lt;/div&gt;&#xA; &lt;div id=&#34;resultTable&#34;&gt;&lt;/div&gt;&#xA; &lt;div id=&#34;formLinks&#34;&gt;&#xA; &lt;div id=&#34;litsearch-pager&#34;&gt;&#xA; &lt;a id=&#34;prev&#34; class=&#34;litsearch-pager&#34; data-page=&#34;&#34; href=&#34;&#34;&gt;Prev&lt;/a&gt;&#xA; &lt;a id=&#34;next&#34; class=&#34;litsearch-pager&#34; data-page=&#34;&#34; href=&#34;&#34;&gt;Next&lt;/a&gt;&#xA; &lt;/div&gt;&#xA; &lt;button id=&#34;download-page&#34;&gt;download these&lt;/button&gt;&#xA; &lt;/div&gt;&#xA;&lt;/div&gt;</description>
</item>
<item>
<title>Plazi on Twitter</title>
Expand Down
11 changes: 9 additions & 2 deletions litsearch/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ <h1 class="post__title">Literature Search Tool</h1>
<div class="inputContainer">
<p>Community:</p>
<label>
<input type="radio" value="batlit" name="communities" checked> Batlit
<input type="radio" value="biosyslit" name="communities" checked> BioSysLit
</label>
<label>
<input type="radio" value="batlit" name="communities"> Batlit
</label>
<label>
<input type="radio" value="Taxodros" name="communities"> Taxodros
Expand All @@ -121,7 +124,7 @@ <h1 class="post__title">Literature Search Tool</h1>
<li><span class="key">single author:</span> Montani</li>
<li><span class="key">multiple authors (names separated by a space):</span> Montani Saigo</li>
<li><span class="key">exclude author:</span> -Montani</li>
<li><span class="key">exclude deprecated:</span> -DEPRECATED</li>
<!-- <li><span class="key">exclude deprecated:</span> -DEPRECATED</li> -->
</ul>
</div>

Expand All @@ -147,6 +150,10 @@ <h1 class="post__title">Literature Search Tool</h1>
</ul>
</div>

<div class="inputContainer">
<input type="checkbox" name="include-deprecated"> Include <i>DEPRECATED</i> records
</div>

<div class="inputContainer">
<button type="reset">Reset</button>
<button type="submit" id="search">Search</button>
Expand Down
8 changes: 7 additions & 1 deletion litsearch/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ journalFld.addEventListener('input', function(event) {
issueFld.disabled = true;
}

})
});

const includeDeprecatedCheckbox = document.querySelector('input[name=include-deprecated]');

const { errorMsg, params } = getParamsFromUrl();

Expand Down Expand Up @@ -57,6 +59,9 @@ searchButton.addEventListener('click', async function(event) {

// Conduct search
const communitiesFld = document.querySelectorAll('input[name=communities]');
const includeDeprecated = includeDeprecatedCheckbox.checked
? true
: false;
const params = {
communities: Array.from(communitiesFld).filter(c => c.checked)[0].value,
authors: document.querySelector('input[name=authors]').value,
Expand All @@ -65,6 +70,7 @@ searchButton.addEventListener('click', async function(event) {
journal: journalFld.value,
volume: volumeFld.value,
issue: issueFld.value,
includeDeprecated,
page: document.querySelector('input[name=page]').value,
size: document.querySelector('input[name=size]').value,
litsearchContainer,
Expand Down
7 changes: 7 additions & 0 deletions litsearch/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ function makeUrl({
journal,
volume,
issue,
includeDeprecated,
page = 1,
size = 30
}) {
Expand Down Expand Up @@ -61,6 +62,10 @@ function makeUrl({
metadata.push(`creators.person_or_org.name:${creators}`);

}

if (!includeDeprecated) {
metadata.push(`creators.person_or_org.name:(-DEPRECATED)`);
}

if (year) {
let publication_date = '';
Expand Down Expand Up @@ -487,6 +492,7 @@ async function getResults(params) {
journal,
volume,
issue,
includeDeprecated,
page,
size,
litsearchContainer,
Expand All @@ -505,6 +511,7 @@ async function getResults(params) {
journal,
volume,
issue,
includeDeprecated,
page,
size
});
Expand Down
14 changes: 7 additions & 7 deletions sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@
<lastmod>2025-02-03T16:16:54+01:00</lastmod>
</url><url>
<loc>https://plazi.org/tags/</loc>
<lastmod>2025-02-05T19:35:38+01:00</lastmod>
<lastmod>2025-02-06T12:14:23+01:00</lastmod>
</url><url>
<loc>https://plazi.org/tags/batlit/</loc>
<lastmod>2025-02-05T19:35:38+01:00</lastmod>
<lastmod>2025-02-06T12:14:23+01:00</lastmod>
</url><url>
<loc>https://plazi.org/tags/bhl-sibils/</loc>
<lastmod>2025-02-05T19:35:38+01:00</lastmod>
<lastmod>2025-02-06T12:14:23+01:00</lastmod>
</url><url>
<loc>https://plazi.org/tags/blr/</loc>
<lastmod>2025-02-05T19:35:38+01:00</lastmod>
<lastmod>2025-02-06T12:14:23+01:00</lastmod>
</url><url>
<loc>https://plazi.org/tags/lit-search/</loc>
<lastmod>2025-02-05T19:35:38+01:00</lastmod>
<lastmod>2025-02-06T12:14:23+01:00</lastmod>
</url><url>
<loc>https://plazi.org/litsearch/</loc>
<lastmod>2025-02-05T19:35:38+01:00</lastmod>
<lastmod>2025-02-06T12:14:23+01:00</lastmod>
</url><url>
<loc>https://plazi.org/tags/taxodros/</loc>
<lastmod>2025-02-05T19:35:38+01:00</lastmod>
<lastmod>2025-02-06T12:14:23+01:00</lastmod>
</url><url>
<loc>https://plazi.org/posts/2025/01/plazi-on-twitter/</loc>
<lastmod>2025-01-17T18:14:20+01:00</lastmod>
Expand Down
Loading

0 comments on commit 9319dc9

Please sign in to comment.