How to use the datacite.metadata_xml_string function in datacite

To help you get started, we’ve selected a few datacite examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github open-machine-learning / mldata / datacite / views.py View on Github external
def metadata_xml(request, doi):
    """
        View displays datacite information
        for given DOI.
    """
    data = Data.objects.get(doi__slug=doi)
    return HttpResponse(metadata_xml_string(data))