OARepo sitemaps
Instalation
pip install oarepo-sitemaps
Usage
OARepo module that creates sitemap for a repository. Sitemap includes only records, that are in state "published" and can be viewed by public.
Created sitemap is accessible on server/sitemap.xml
url.
Configuration
Default number of record per one sitemap is 10000, this can be changed in configuration with 'SITEMAP_MAX_URL_COUNT
set to a different number.
Example
<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>http://localhost:5000/cesnet/records/1</loc>
<lastmod>2021-05-24</lastmod>
<changefreq>weakly</changefreq>
<priority>1</priority>
</url>
<url>
<loc>http://localhost:5000/cesnet/records/2</loc>
<lastmod>2021-05-24</lastmod>
<changefreq>weakly</changefreq>
<priority>1</priority>
</url>
</urlset>
Changes
Version 1.0.0