Compare commits
9 commits
Author | SHA1 | Date | |
---|---|---|---|
8c4457d164 | |||
7674e2c64c | |||
7f72892b0b | |||
51c49aace2 | |||
e37aebff7c | |||
b73ba155a7 | |||
6498d194cd | |||
50d53cd080 | |||
fa3027629e |
5 changed files with 11 additions and 9 deletions
|
@ -35,7 +35,8 @@ display:customSearchFiltersDataGetter
|
||||||
?searchFilter search:id ?id .
|
?searchFilter search:id ?id .
|
||||||
?searchFilter search:filterFiled ?searchField .
|
?searchFilter search:filterFiled ?searchField .
|
||||||
?searchField search:indexField ?field .
|
?searchField search:indexField ?field .
|
||||||
|
BIND (replace ( ?name, "«", "" ) AS ?sortName)
|
||||||
|
|
||||||
} ORDER BY ?field ?name
|
} ORDER BY ?field ?sortName
|
||||||
""" .
|
""" .
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@ ${scripts.add('<script async type="text/javascript" src="//cdn.plu.mx/widget-pop
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<#assign firstPub = propertyGroups.pullProperty("https://litvinovg.pro/text_structures#firstPublication")!>
|
<#assign firstPub = propertyGroups.pullProperty("https://litvinovg.pro/text_structures#firstPublication")!>
|
||||||
<#if firstPub.statements?has_content && firstPub.type == "data">
|
<#if firstPub.statements?has_content || editable >
|
||||||
<div class="firstPub" style="list-style:none;">
|
<div class="firstPub" style="list-style:none;">
|
||||||
<div class="label">Первая публикация статьи
|
<div class="label">Первая публикация статьи
|
||||||
</div>
|
</div>
|
||||||
|
@ -211,7 +211,7 @@ ${scripts.add('<script async type="text/javascript" src="//cdn.plu.mx/widget-pop
|
||||||
<#assign no_authors = true>
|
<#assign no_authors = true>
|
||||||
<#list authors as author>
|
<#list authors as author>
|
||||||
<#if no_authors>
|
<#if no_authors>
|
||||||
<div class="authors" style="display:block;float:right; margin:15px;">
|
<div class="authors" style="display:block;text-align:right; margin:15px;">
|
||||||
<#assign no_authors = false>
|
<#assign no_authors = false>
|
||||||
<#else>
|
<#else>
|
||||||
", "
|
", "
|
||||||
|
@ -265,10 +265,9 @@ for (i = 0; i < coll.length; i++) {
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
console.log(localStorage.getItem('switchExpand'));
|
|
||||||
if (localStorage.getItem('switchExpand') === true || localStorage.getItem('switchExpand') === 'true') {
|
if (localStorage.getItem('switchExpand') === true || localStorage.getItem('switchExpand') === 'true') {
|
||||||
console.log("show html excerpts");
|
|
||||||
$('.htmlExcerpt').show();
|
$('.htmlExcerpt').show();
|
||||||
|
document.getElementById("expandlCB").checked = true;
|
||||||
}
|
}
|
||||||
function switchExpand(){
|
function switchExpand(){
|
||||||
var checkBox = document.getElementById("expandlCB");
|
var checkBox = document.getElementById("expandlCB");
|
||||||
|
|
|
@ -80,7 +80,7 @@
|
||||||
</table></div>
|
</table></div>
|
||||||
</section> <!-- #intro -->
|
</section> <!-- #intro -->
|
||||||
|
|
||||||
<@widget name="login" />
|
|
||||||
|
|
||||||
<!-- List of research classes: e.g., articles, books, collections, conference papers -->
|
<!-- List of research classes: e.g., articles, books, collections, conference papers -->
|
||||||
<#-- <@lh.researchClasses /> -->
|
<#-- <@lh.researchClasses /> -->
|
||||||
|
|
|
@ -90,6 +90,7 @@
|
||||||
$('#btn-get-standard-searchform').on('click', function() {
|
$('#btn-get-standard-searchform').on('click', function() {
|
||||||
$('#querybuilder-container').hide();
|
$('#querybuilder-container').hide();
|
||||||
$('#simple-search-container').show();
|
$('#simple-search-container').show();
|
||||||
|
localStorage.setItem('extendedSearchOpen',false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
@ -140,7 +141,7 @@
|
||||||
if ('operator' in json_query && json_query.operator.startsWith("not_")){
|
if ('operator' in json_query && json_query.operator.startsWith("not_")){
|
||||||
string_query += "NOT ";
|
string_query += "NOT ";
|
||||||
}
|
}
|
||||||
string_query += json_query.field + ":\"" + json_query.value.toString().replace(/['"]+/g,'').replace(/#/g,'%23') + "\"";
|
string_query += json_query.field + ":" + json_query.value.toString().replace(/[']+/g,'').replace(/#/g,'%23') ;
|
||||||
}
|
}
|
||||||
return string_query;
|
return string_query;
|
||||||
}
|
}
|
||||||
|
@ -163,7 +164,7 @@
|
||||||
values: {
|
values: {
|
||||||
<#list searchFilters as filter>
|
<#list searchFilters as filter>
|
||||||
<#if filter.field == field.field>
|
<#if filter.field == field.field>
|
||||||
'${filter.id}':'${filter.name}',
|
'"${filter.id}"':'${filter.name}',
|
||||||
</#if>
|
</#if>
|
||||||
</#list>
|
</#list>
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,9 @@
|
||||||
$('#switch-to-extended-searchform').on('click', function() {
|
$('#switch-to-extended-searchform').on('click', function() {
|
||||||
$('#simple-search-container').hide();
|
$('#simple-search-container').hide();
|
||||||
$('#querybuilder-container').show();
|
$('#querybuilder-container').show();
|
||||||
|
localStorage.setItem('extendedSearchOpen',true);
|
||||||
});
|
});
|
||||||
if ( "${querytext!?html}".includes(":"") ){
|
if (localStorage.getItem('extendedSearchOpen') === true || localStorage.getItem('extendedSearchOpen') === 'true') {
|
||||||
$('#simple-search-container').hide();
|
$('#simple-search-container').hide();
|
||||||
$('#querybuilder-container').show();
|
$('#querybuilder-container').show();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue