OARepo rdm records data model
Project description
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
- Initial public release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
oarepo_sitemaps-1.0.0.tar.gz
(12.7 kB
view hashes)
Built Distribution
Close
Hashes for oarepo_sitemaps-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6578a0ba4faf03f8f7f0cdc6a444278f2f699c9e082d42f399f76eb52fdd754 |
|
MD5 | 5c01cacdb7b358c5d4adc5a3405cbac0 |
|
BLAKE2b-256 | 39f849ec7ef44be1e8b928bc699ebd832c2458178d4751fdf4fb722e3bedeb47 |