In the oai address of ojs 3.x I can not display the keywords
How can I enable it?
ej. http://34.193.28.61/index.php/index/oai?verb=ListRecords&metadataPrefix=oai_dc
In the oai address of ojs 3.x I can not display the keywords
How can I enable it?
ej. http://34.193.28.61/index.php/index/oai?verb=ListRecords&metadataPrefix=oai_dc
I have the same problem, there are not much ionformation about it.
Hi @jaimescript,
I see you’ve also posted this over at OJS 3 metadataPrefix oai_dc keywords or subject. Please just post each question once – it helps keep the forum organized.
Regards,
Alec Smecher
Public Knowledge Project Team
Hi, I could solve the problem , but I am not sure if it is the best solution.
I realized that for dc:subject (keywords) the query doesnt obatain any data, I checked some post in this forum I got this.
I Modified DublinCoreMetaPlugin.inc.php
$dao = DAORegistry::getDAO(‘SubmissionKeywordDAO’);
$keywords = $dao->getKeywords($article->getId(), array(AppLocale::getLocale()));
foreach ($keywords as $locale => $localeKeywords) {
foreach ($localeKeywords as $keyword) {
$templateMgr->addHeader('dublinCoreSubject' . $i++, '<meta name="DC.Subject" xml:lang="' . htmlspecialchars(substr($locale, 0, 2)) . '" content="' . htmlspecialchars($keyword) . '"/>');
// echo htmlspecialchars($keyword)."\n";
}
}
I know that there are some problems with muiltilanguage configuration, but at least I coul see metadata about keywords in OAI request