-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from archesproject/cnh/stand-alone-rascoll-search
Adds rascoll search component at standalone endpoint, #14
- Loading branch information
Showing
6 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import SearchPage from '@/afrc/Search/SearchPage.vue'; | ||
import createVueApplication from 'arches/arches/app/media/js/utils/create-vue-application'; | ||
|
||
createVueApplication(SearchPage).then(vueApp => { | ||
vueApp.mount('#rascoll-search-container'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{% extends "base-root.htm" %} | ||
|
||
{% load static %} | ||
{% load webpack_static from webpack_loader %} | ||
|
||
{% block head %} | ||
<head> | ||
<title> | ||
{% block title %}{% endblock title %} | ||
</title> | ||
|
||
<!-- Meta --> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta name="description" content=""> | ||
<meta name="author" content=""> | ||
|
||
<link rel="shortcut icon" href="{% webpack_static 'favicons/favicon.ico' %}" type="image/x-icon" /> | ||
<link rel="apple-touch-icon" href="{% webpack_static 'favicons/apple-touch-icon.png' %}" /> | ||
<link rel="apple-touch-icon" sizes="76x76" href="{% webpack_static 'favicons/apple-touch-icon-76x76.png' %}" /> | ||
<link rel="apple-touch-icon" sizes="120x120" href="{% webpack_static 'favicons/apple-touch-icon-120x120.png' %}" /> | ||
<link rel="apple-touch-icon" sizes="152x152" href="{% webpack_static 'favicons/apple-touch-icon-152x152.png' %}" /> | ||
<link rel="apple-touch-icon" sizes="180x180" href="{% webpack_static 'favicons/apple-touch-icon-180x180.png' %}" /> | ||
|
||
{% block css %} | ||
<link rel="stylesheet" href="{% webpack_static 'node_modules/normalize.css/normalize.css' %}" /> | ||
<link rel="stylesheet" href="{% webpack_static 'node_modules/font-awesome/css/font-awesome.min.css' %}" /> | ||
<link rel="stylesheet" href="{% webpack_static 'node_modules/primeicons/primeicons.css' %}" /> | ||
<style> | ||
html {font-size: 10px} | ||
</style> | ||
{% endblock css %} | ||
</head> | ||
{% endblock head %} | ||
|
||
|
||
{% block body %} | ||
<div id="rascoll-search-container" style="font-size:10px"></div> | ||
{% endblock body %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from django.shortcuts import render | ||
from arches.app.views.base import BaseManagerView | ||
from django.utils.translation import gettext_lazy as _ | ||
|
||
class RascollSearchView(BaseManagerView): | ||
def get(self, request, graphid=None, resourceid=None): | ||
context = self.get_context_data(main_script="views/rascoll-search") | ||
context['page_title'] = _("RASCOLL Search") | ||
return render(request, "views/rascoll-search.htm", context) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters