Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve DublinCoreMetaPlugin #8406

Closed
bozana opened this issue Nov 4, 2022 · 6 comments
Closed

Improve DublinCoreMetaPlugin #8406

bozana opened this issue Nov 4, 2022 · 6 comments
Assignees
Labels
Housekeeping:1:Todo Any dependency management or refactor that would be nice to have some day.
Milestone

Comments

@bozana
Copy link
Collaborator

bozana commented Nov 4, 2022

There are a few things that should be considered in the DublinCoreMetaPlugin:

  • get rid of the deprecated submission methods, use publication instead
  • chapters (OMP) -- e.g. DOIs, URL
  • the URL for book files is wrong
  • see if we can get rid of wait in the test
  • empty content
    E.g. if abstract only exists in one locale and for the other it is empty, the following DC element will be displayed:
    <meta name="DC.Description" xml:lang="fr" content=""/>
    Adapt the DublinCoreMetaPlugin so that it does not consider/display empty content.
    I am not sure where the empty content in the DB comes from, because when using the UI forms they are not saved if empty.
@bozana bozana added this to the 3.4 milestone Nov 4, 2022
@bozana bozana added the Housekeeping:1:Todo Any dependency management or refactor that would be nice to have some day. label Nov 4, 2022
@bozana bozana changed the title Do not display meta DC elements with empty content Improve DubinCoreMetaPlugin Nov 7, 2022
@bozana bozana changed the title Improve DubinCoreMetaPlugin Improve DublinCoreMetaPlugin Feb 2, 2023
@bozana
Copy link
Collaborator Author

bozana commented Feb 3, 2023

@asmecher, should the DC meta elements be displayed on the galley i.e. file view page in OJS, as this is the case in OMP?
Or should the OMP be change so that the DC elements are only displayed on the book/chapter view page (as this is the case for GoogleScholarPlugin)?
Currently, in OMP, the only difference between the DC elements on the submission and representation/file view page are the elements DC.Identifier and DC.Identifier.URI.
If we would like to keep the DC elements on both pages (submission and representation), then eventually also DC.Format , DC.Identifier.DOI, DC.Language and DC.Type could be changed to only display values of that particular representation?
Something else? 🤔

EDIT:
And one more question: what is 'sponsor' here https://github.com/pkp/ojs/blob/main/plugins/generic/dublinCoreMeta/DublinCoreMetaPlugin.php#L79? 'Supporting Agencies' i.e. 'submissionAgency' in DB table controlled_vocabs?

@bozana
Copy link
Collaborator Author

bozana commented Feb 6, 2023

This Issue changes/improves the following:
OJS and OMP:

  • replaces deprecated submission methods
  • fixes DC.Contributor.Sponsor: instead of not existing article->getData('sponsor') the publication->getData('submissionAgencies') is used
  • does not display empty elements
  • adds subjects (additionally to the existing keywords) -- to be the same as in OMP and GoogleScholar
  • changes the way the keywords and subjects are get: instead of using the SubmissionKeywordDAO and SubmissionSubjectDAO the publication->getData() is used
  • some small changes in code, like e.g. instead of using $i to differentiate template headers use $locale if already there, or use $i from already existing foreach loops.

additionally in OMP:

  • considers the chapter pages
  • considers submission file DOIs/URNs on submission file page

The way the subjects and keywords are get is also changed in GoogleScholar plugin

@bozana
Copy link
Collaborator Author

bozana commented Feb 6, 2023

Hi @asmecher,
For the representation i.e. submission file view pages I left everything as it was. This I can approach later, if needed.
Else s. #8406 (comment) for the changes I have made now.
Could you please review the PRs above?

bozana added a commit to bozana/omp that referenced this issue Feb 9, 2023
bozana added a commit to bozana/omp that referenced this issue Feb 9, 2023
bozana added a commit to bozana/omp that referenced this issue Feb 9, 2023
bozana added a commit to bozana/googleScholar that referenced this issue Feb 9, 2023
bozana added a commit to bozana/ojs that referenced this issue Feb 9, 2023
@bozana
Copy link
Collaborator Author

bozana commented Feb 9, 2023

Hi @asmecher, thanks a lot for the review! I considered everything (s. the last commits).
Additionally:
In OMP I also considered chapter for datePublished and pages, and I changed the way we assure the DC meta elements are displayed only for the current version when viewing a file (see the comment there).
In OJS now I get the section from the TemplateManger.
OK so?

@asmecher
Copy link
Member

asmecher commented Feb 9, 2023

Yes, I can't think of any problem with those approaches. Please go ahead, thanks!

bozana added a commit to pkp/googleScholar that referenced this issue Feb 9, 2023
pkp/pkp-lib#8406 Improve GoogleScholarPlugin according to the changes…
bozana added a commit to pkp/ojs that referenced this issue Feb 9, 2023
bozana added a commit to pkp/omp that referenced this issue Feb 9, 2023
 pkp/pkp-lib#8406 Improve DublinCoreMetaPlugin and adapt GoogleScholarPlugin
@bozana bozana closed this as completed Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Housekeeping:1:Todo Any dependency management or refactor that would be nice to have some day.
Projects
None yet
Development

No branches or pull requests

3 participants