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

fix: Fix project codes #13

Merged
merged 2 commits into from
Sep 4, 2019
Merged

fix: Fix project codes #13

merged 2 commits into from
Sep 4, 2019

Conversation

benjamingeer
Copy link
Contributor

@benjamingeer benjamingeer commented Aug 27, 2019

This PR fixes some project codes so they correspond to the ones exported from PHP SALSAH. Since this produces some conflicting project codes, some others have to be changed as well.

@lrosenth sent me this list of all projects in PHP SALSAH:

Shortcode Shortname Decimal ID in PHP SALSAH
0803 incunabula 3
0806 webern 6
0808 dokubib 8
080C kuhaba 12
080E LIMC 14
0811 postcards 17
0812 SGV 18
0813 BMF 19
0814 wackernagel 20
0816 vitrails 22
0817 Parzival 23
0818 bosnienfoto 24
081B delille 27
081C HdM 28
081F litfeuilleton 31

Most of these codes conflicted with codes assigned in shortcodes.csv. In all but one case, I changed the code of the other project, as follows:

  • 0806 (lhtt -> webern, lhtt got 0820)
  • 080C (SGV_oldproject -> kuhaba, I deleted SGV_oldproject because it is apparently not needed)
  • 0811 (digi-archives -> postcards, I deleted digi-archives because Lukas said to do so)
  • 0812 (elib -> SGV, elib got 080F)
  • 0813 (heidelberg -> BMF, heidelberg got 0823)
  • 0814 (postcards -> wackernagel, postcards got 0811)
  • 0816 (wackernagel -> vitralis, wackernagel got 0814)
  • 0817 (travis -> Parzival, travis got 081D)
  • 0818 (vitralis -> bosnienfoto, vitralis got 0816)
  • 081B (dhlab-web -> delille, dhlab-web got 081E)
  • 081C (smp -> HdM, smp got 081A)
  • 081F (RTI -> litfeuilleton, RTI got 0819)

The exception is 0808, where there was a conflict between dokubib and terlag. In the Knora test data, dokubib is 0804. Lukas said it would be better to reassign dokubib than terlag, so I changed dokubib to 0804 in shortcodes.csv, so we don't have to change the Knora test data.

I also removed the values of OLD SALSAH ID from shortcodes.csv for projects that are not in the above list.

As far as I understand, if a project is not in PHP SALSAH (i.e. not in the above list) and is not live in Knora (i.e. not BEOL) its project code can be changed. So I changed some other project codes to remove gaps between codes. I made exceptions for 0825 and 0826, because they have entries in dasch_ark_registry.ini.

In dasch_ark_registry.ini, I removed entries with UsePhp: true that don't correspond to any project in the above list. I made an exception for 0825, because it looks like it's supposed to be live on app.langzeitarchivierung.ch (although that site is down).

Does this make sense?

@benjamingeer
Copy link
Contributor Author

@subotic Any idea why the Travis build fails?

Copy link
Collaborator

@lrosenth lrosenth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything seems to be fine!

@benjamingeer
Copy link
Contributor Author

@lrosenth Thanks for the review!

@benjamingeer benjamingeer merged commit 7506df7 into master Sep 4, 2019
@benjamingeer benjamingeer deleted the fix/12-project-codes branch September 4, 2019 08:58
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 this pull request may close these issues.

2 participants