-
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 #4 from arXiv/handle_identify
Handle identify
- Loading branch information
Showing
4 changed files
with
79 additions
and
9 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
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,41 @@ | ||
{% extends "base.xml" %} | ||
|
||
{% block request_element %} | ||
{{ macros.request_element(query_params) }} | ||
{% endblock %} | ||
|
||
{% block interior_xml %} | ||
<Identify> | ||
<repositoryName>{{config_data.REPOSITORY_NAME}}</repositoryName> | ||
<baseURL>{{config_data.BASE_URL}}</baseURL> | ||
<protocolVersion>{{config_data.PROTOCOL_VERSION}}</protocolVersion> | ||
<adminEmail>{{config_data.ADMIN_EMAIL}}</adminEmail> | ||
<earliestDatestamp>{{config_data.EARLIEST_DATE.strftime('%Y-%m-%d')}}</earliestDatestamp> | ||
<deletedRecord>{{config_data.DELETED_RECORD}}</deletedRecord> | ||
<granularity>{{config_data.GRANULARITY}}</granularity> | ||
{{arXiv_desc()}} | ||
</Identify> | ||
{% endblock %} | ||
|
||
{% macro arXiv_desc() %} | ||
<description> | ||
<eprints xmlns="http://www.openarchives.org/OAI/1.1/eprints" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/1.1/eprints http://www.openarchives.org/OAI/1.1/eprints.xsd"> | ||
<content> | ||
<text>Author self-archived e-prints</text> | ||
</content> | ||
<metadataPolicy> | ||
<text>Metadata harvesting permitted through OAI interface</text> | ||
<URL>http://arxiv.org/help/oa/metadataPolicy</URL> | ||
</metadataPolicy> | ||
<dataPolicy> | ||
<text>Full-content harvesting not permitted (except by special arrangement)</text> | ||
<URL>http://arxiv.org/help/oa/dataPolicy</URL> | ||
</dataPolicy> | ||
<submissionPolicy> | ||
<text>Author self-submission preferred, submissions screened for appropriateness.</text> | ||
<URL>http://arxiv.org/help/submit</URL> | ||
</submissionPolicy> | ||
</eprints> | ||
</description> | ||
{% endmacro %} | ||
|
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