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

Extract date during import of documents #254

Closed
sebdeleze opened this issue Jun 24, 2020 · 3 comments · Fixed by #262
Closed

Extract date during import of documents #254

sebdeleze opened this issue Jun 24, 2020 · 3 comments · Fixed by #262

Comments

@sebdeleze
Copy link
Contributor

sebdeleze commented Jun 24, 2020

And display the field provisionActivity.startDate all the time

@sebdeleze
Copy link
Contributor Author

Here's the different ways to populate provisionActivity.startDate from RERODOC documents:

  1. Field 260$c --> Example: http://doc.rero.ch/record/323385/export/xm
  2. Field 269$c --> Example: http://doc.rero.ch/record/328670/export/xm
  3. Field 773$g (as long as 980$f is of the type ART_INBOOK) --> Example: http://doc.rero.ch/record/328059/export/xm

I tested a document for all the possibilities and the start date is set correctly.

Is there another field that can hold this start date?

@pronguen
Copy link
Contributor

pronguen commented Jul 9, 2020

@sebastiendeleze Some documents have 2 dates (example), so it would be great to prioritize:

  • look first in field 260
  • if no date found, look in 269
  • if no date found, look in 773$g

@sebdeleze
Copy link
Contributor Author

sebdeleze commented Jul 17, 2020

As mentioned here, now we take care of field 502$9 for getting a start date. This one has the lowest priority against the other fields.

sebdeleze pushed a commit that referenced this issue Aug 17, 2020
* Imports start date in provision activity from field `502$9`.
* Prioritizes fields for retreiving start date: 1. 260$c, 2. 269$c, 3. 773$g, 4. 502$9.
* Fixes display of start date in detail views.
* Closes #254.

Co-Authored-by: Sébastien Délèze <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants