unibrementypo3auto/README.md

68 lines
1.4 KiB
Markdown
Raw Normal View History

2023-05-15 20:15:52 +02:00
# Uni-Bremen Typo3 Automatization Tools
2023-05-15 20:10:49 +02:00
## Pip packages
```
pip install selenium
pip install webdriver-manager
2023-05-15 20:12:36 +02:00
pip install numpy
2023-05-15 20:10:49 +02:00
```
For the bib tools:
```
pip3 install bibtexparser
2023-05-15 20:12:36 +02:00
pip3 install pandas
2023-05-15 20:10:49 +02:00
```
2023-05-12 01:30:41 +02:00
2023-05-15 20:12:36 +02:00
## How to use the typo3 examples:
* Change user name in username.json
* Change the page id and content id to something you can and want to work ong
2023-05-15 20:15:52 +02:00
## 1_bib_make_types_and_authors_database.py
Running this program produces (or updates) two databases:
* types_db.json : Containing the list of the types of publications.
* authors_db.json : Containing the list of the authors.
If you want to remove an entry from these databases, you need to delete it yourself.
2023-05-15 20:38:43 +02:00
If you want to use another bib filename, you need to change it in 1_bib_make_types_and_authors_database.py under
```
filename_bib: str = "neuro.bib"
```
2023-05-15 20:15:52 +02:00
### types_db.json
An entry looks like this:
2023-05-15 20:21:25 +02:00
```
2023-05-15 20:15:52 +02:00
"article": [[], "article", "article"]
2023-05-15 20:21:25 +02:00
```
Beside the key, there are three components.
1. An list with alternative keys. In the case we want to fuse several keys into one category.
2. The German headline
3. The English headline
Thus we want to change it into:
```
"article": [[], "Artikel", "Article"]
```
### authors_db.json
An entry looks like this:
```
"Pawelzik, K.": [],
```
The key is later used for generating the author name in the html lists. Again a list with alternative author names follows.
Since this entry is wrong, we fix it by:
```
"Pawelzik, K. R.": ["Pawelzik, K."],
```
2023-05-15 20:12:36 +02:00
2023-05-15 17:25:50 +02:00