mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2025-12-22 20:51:58 +00:00
add marc21 and lom to the searchbar
copy pasted code from invenio_app_rdm/searchbar. it was necessary to do that to configure the shown list.
This commit is contained in:
@@ -1,18 +1,49 @@
|
|||||||
{#
|
{#
|
||||||
Copyright (C) 2020-2021 Graz University of Technology.
|
Copyright (C) 2020-2022 Graz University of Technology.
|
||||||
|
|
||||||
invenio-theme-tugraz is free software; you can redistribute it and/or
|
invenio-theme-tugraz is free software; you can redistribute it and/or
|
||||||
modify it under the terms of the MIT License; see LICENSE file for more
|
modify it under the terms of the MIT License; see LICENSE file for more
|
||||||
details.
|
details.
|
||||||
#}
|
#}
|
||||||
|
|
||||||
|
{% set options = [
|
||||||
|
{
|
||||||
|
"key": "records",
|
||||||
|
"text": _("All") + " " + config.THEME_SITENAME,
|
||||||
|
"value": url_for("invenio_search_ui.search"),
|
||||||
|
},{
|
||||||
|
"key": "marc21",
|
||||||
|
"text": _("search publications (thesis, books, papers, etc)"),
|
||||||
|
"value": url_for("invenio_records_marc21.search"),
|
||||||
|
},{
|
||||||
|
"key": "lom",
|
||||||
|
"text": _("search open educational resources"),
|
||||||
|
"value": url_for("invenio_records_lom.search"),
|
||||||
|
}
|
||||||
|
]
|
||||||
|
%}
|
||||||
|
|
||||||
|
|
||||||
|
{% set community = true %}
|
||||||
|
|
||||||
<div class="ui container">
|
<div class="ui container">
|
||||||
<div class="short-menu" id="all-menu-top-table">
|
<div class="short-menu" id="all-menu-top-table">
|
||||||
<div class="short-menu-left">
|
<div class="short-menu-left">
|
||||||
<div id="all-menu-top-left-item">
|
<div id="all-menu-top-left-item">
|
||||||
<div class="short-menu-left-search">
|
<div class="short-menu-left-search">
|
||||||
<div style="display: inline-block;">
|
<div style="display: inline-block;">
|
||||||
{% include "invenio_app_rdm/searchbar.html" %}
|
<div class="item p-0 search-bar rel-mr-1">
|
||||||
|
<div id="header-search-bar" data-options='{{ options | tojson }}'>
|
||||||
|
<div class="ui fluid search">
|
||||||
|
<div class="ui icon input">
|
||||||
|
<input autocomplete="off" placeholder="Search records..."
|
||||||
|
type="text" tabindex="0" class="prompt" value="">
|
||||||
|
<i aria-hidden="true" class="search icon"></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="short-menu-left-lang">
|
<div class="short-menu-left-lang">
|
||||||
@@ -53,7 +84,7 @@
|
|||||||
<br>
|
<br>
|
||||||
{{_ ("REPOSITORY")}}
|
{{_ ("REPOSITORY")}}
|
||||||
<br>
|
<br>
|
||||||
{{_ ("LIBRARY & ARCHIVES")}}
|
{{_ ("LIBRARY & ARCHIVES")}}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user