rdrew 2 weeks ago
parent
commit
b4aa7b9e0d
  1. 0
      composer.json
  2. 0
      css/messages.css
  3. 5
      js/vre2024.js
  4. 56
      templates/block--facet-block--date.html.twig
  5. 0
      templates/display-citations.html.twig
  6. 0
      templates/main_layouts/taxonomy-term--scholars.html.twig
  7. 61
      templates/views/views-view-fields--solr-search-content--page-1.html.twig
  8. 1
      templates/views/views-view-fields.html.twig

0
composer.json

0
css/messages.css

5
js/vre2024.js

@ -45,4 +45,9 @@ jQuery(document).ready(function ($) {
});
/* End document
--------------------------*/
$('.facet-slider .noUi-handle').attr('aria-valuetext', '10000');
var number = $('#nouislider-input-from');
console.log(number['value']);
//console.log($('.noUi-handle').attr('aria-valuetext'));
});

56
templates/block--facet-block--date.html.twig

@ -0,0 +1,56 @@
{#
/**
* @file
* Theme override to display a block.
*
* Available variables:
* - plugin_id: The ID of the block implementation.
* - label: The configured label of the block if visible.
* - configuration: A list of the block's configuration values.
* - label: The configured label for the block.
* - label_display: The display settings for the label.
* - provider: The module or other provider that provided this block plugin.
* - Block plugin specific settings will also be stored here.
* - content: The content of this block.
* - attributes: array of HTML attributes populated by modules, intended to
* be added to the main container tag of this template.
* - id: A valid HTML ID and guaranteed unique.
* - title_attributes: Same as attributes, except applied to the main title
* tag that appears in the template.
* - title_prefix: Additional output populated by modules, intended to be
* displayed in front of the main title tag that appears in the template.
* - title_suffix: Additional output populated by modules, intended to be
* displayed after the main title tag that appears in the template.
*
* @see template_preprocess_block()
*/
#}
<div{{ attributes.addClass('block') }}>
{{ title_prefix }}
{% if label %}
<h2{{ title_attributes.addClass('block-title') }}>{{ label }}</h2>
{% endif %}
{{ title_suffix }}
<div class="block-content">
{% block content %}
{{ content }}
{% endblock %}
</div><!--/.block-content -->
</div><!--/.block -->
<script>
window.onload = function() {
var inputField = document.getElementById('nouislider-input-from');
var str = inputField.value.toString();
str = str.slice(0, -3);
str = parseInt(str);
inputField.value = str;
var inputField = document.getElementById('nouislider-input-to');
var str = inputField.value.toString();
str = str.slice(0, -3);
str = parseInt(str);
inputField.value = str;
};
</script>

0
templates/display-citations.html.twig

0
templates/main_layouts/taxonomy-term--scholars.html.twig

61
templates/views/views-view-fields--solr-search-content--page-1.html.twig

@ -0,0 +1,61 @@
{#
/**
* @file
* Theme override to display all the fields in a row.
*
* Available variables:
* - view: The view in use.
* - fields: A list of fields, each one contains:
* - content: The output of the field.
* - raw: The raw data for the field, if it exists. This is NOT output safe.
* - class: The safe class ID to use.
* - handler: The Views field handler controlling this field.
* - inline: Whether or not the field should be inline.
* - wrapper_element: An HTML element for a wrapper.
* - wrapper_attributes: List of attributes for wrapper element.
* - separator: An optional separator that may appear before a field.
* - label: The field's label text.
* - label_element: An HTML element for a label wrapper.
* - label_attributes: List of attributes for label wrapper.
* - label_suffix: Colon after the label.
* - element_type: An HTML element for the field content.
* - element_attributes: List of attributes for HTML element for field content.
* - has_label_colon: A boolean indicating whether to display a colon after
* the label.
* - element_type: An HTML element for the field content.
* - element_attributes: List of attributes for HTML element for field content.
* - row: The raw result from the query, with all data it fetched.
*
* @see template_preprocess_views_view_fields()
*/
#}
<div class="search-result-block columns">
<div class="left icon w20">
<div class="icon-wrapper">
<i class="fas fa-file-alt"></i>
</div>
</div>
<div class="right fields w80">
{% for field in fields -%}
{{ field.separator }}
{%- if field.wrapper_element -%}
<{{ field.wrapper_element }}{{ field.wrapper_attributes }}>
{%- endif %}
{%- if field.label -%}
{%- if field.label_element -%}
<{{ field.label_element }}{{ field.label_attributes }}>{{ field.label }}{{ field.label_suffix }}</{{ field.label_element }}>
{%- else -%}
{{ field.label }}{{ field.label_suffix }}
{%- endif %}
{%- endif %}
{%- if field.element_type -%}
<{{ field.element_type }}{{ field.element_attributes }}>{{ field.content }}</{{ field.element_type }}>
{%- else -%}
{{ field.content }}
{%- endif %}
{%- if field.wrapper_element -%}
</{{ field.wrapper_element }}>
{%- endif %}
{%- endfor %}
</div>
</div>

1
templates/views/views-view-fields--solr-search-content--page-1.html.twig.disabled → templates/views/views-view-fields.html.twig

@ -29,7 +29,6 @@
* @see template_preprocess_views_view_fields()
*/
#}
{{ fields.did_image.content }}
{% for field in fields -%}
{{ field.separator }}
{%- if field.wrapper_element -%}
Loading…
Cancel
Save