No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
css
docs
fonts
images
js
lib/tcpdf
src
templates
tests
.gitignore
CHANGELOG.md
LICENSE.txt
README.md
composer.json
config.ini.sample
oeaw.config_translation.yml
oeaw.info.yml
oeaw.install
oeaw.libraries.yml
oeaw.links.menu.yml
oeaw.links.task.yml
oeaw.local_tasks.yml
oeaw.menu_links.yml
oeaw.module
oeaw.routing.yml
oeaw.schema.yml
oeaw.services.yml
oeaw.settings.yml

README.md

oeaw_drupal_module

Installation

In the drupal/modules directory create a new directory called oeaw and copy the content of the repo. Or clone it.

Turn off the "Internal Dynamic Page Cache" and "Internal Page Cache" modules. Because if you not turn it off then the sidebar search will not work for the anonymus users.

If you finished with the setup then you can reach the modul in the following url: www.yourdomain.com/oeaw_menu

Module Menu:

  • List All Root Resource
  • Search by Meta data And URI
  • Add New Resource

List All Root Resource

This menu contains the root resources. The root resource is which has no dct:isPartOf value. The results displayed in the Jquery Datatable, so the result is searchable and ordarable.

You can check the Resources Details or you can edit them at the moment. If a Resource has a children then it will be listed to a second table beyond the root table details. The Childr

Search by Meta data And URI

Here you can search by:

  • MetaKey
  • MetaKey and MetaValue
  • MetaKey and URI
  • MetaKey and MetaValue and UR

The results displayed in the drupal core tables, but it will be changedt to the datatable too.

Add New Resource

This menupoint has a multistep form.

Step 1: You can select the Root element (which has no dct:isPartOf property) and the ontology Class (based on the acdh-repo-core/ontology)

Step 2: The second step form will generate fields based on the ontology what you selected in the step 1. If Your selected ontology needs a binary resource, then the modul will generate a file upload field. After you filled the fields then you can submit your data to the fedora DB -> in this step you basically creating the sparql file with the triples.

If everything was okay then you will get a success message with your new fedora db URL.

SideBar Blocks

SideBar Class

Based on the redmine #7397 issue. If the class children has no dc:title, then the children uri will be visible on the results page.

Sidebar Search

The "Search by Meta data And URI" menupont sidebar version.

How to add a block to your site?
Go to the a admin/Structure/Block layout (http://yourdomain.com/admin/structure/block)
Select the Block where you want to add the sidebar and click on the "Place block" button.  After it a new popup window contains the availble blocks, here you can find the two oeaw block:
"Sidebar Class List OEAW" and "Sidebar Search OEAW". Click the Place Block button and after the Save Block button to add this to the website.

User restrictions:

Not logged users can't edit or add new resources. They have only browsing permissions.

Useful infos:

If you have routing problems with the drupal 8 then, try to open the http://yoursite.com/admin/config/development/performance and try to remove the cache. If it is not reachable too then you should run the drush cache-rebuild command in your machine. (In our case login to the docker image and run there the command).