Skip to content
Jozef Misutka edited this page May 7, 2015 · 4 revisions

Machine readable PIDs specified with PID@format=cmdi or accepted content

You can handle it in redirects, see

147                 # handle cmdi requests with redirects
148                 RewriteCond %{HTTP_ACCEPT} (.*xml.cmdi.*)
149                 RewriteRule ^(.*)/xmlui/handle/(.*)$ https://%{HTTP_HOST}$1/oai/request?verb=GetRecord&metadataPrefix=cmdi&identifier=oai:%{HTTP_HOST}:$2 [L,R=301]
150                 RewriteCond %{QUERY_STRING} format=cmdi [NC]
151                 RewriteRule ^(.*)/xmlui/handle/(.*)$ https://%{HTTP_HOST}$1/oai/request?verb=GetRecord&metadataPrefix=cmdi&identifier=oai:%{HTTP_HOST}:$2 [L,R=301]
1
Clone this wiki locally