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

Update Primo Normalized XML.js #1951

Merged
merged 3 commits into from Jun 10, 2019

Conversation

Projects
None yet
4 participants
@zuphilip
Copy link
Collaborator

commented Jun 3, 2019

  • handle also cases where place is part of publisher string
  • handle also cases where seriesNumber is part of series
  • prefer subjects in display section over subjects in
    search sections
@zuphilip

This comment has been minimized.

Copy link
Collaborator Author

commented Jun 3, 2019

I can look into the linter errors/warnings later, but I would prefer to first know that these changes are fine.

@zuphilip

This comment has been minimized.

Copy link
Collaborator Author

commented Jun 3, 2019

(
The test is not running the correct command, but rather it is running:

teslint "Primo" "Normalized" "XML.js"

instead of

teslint "Primo Normalized XML.js"

)

@adam3smith

This comment has been minimized.

Copy link
Collaborator

commented Jun 9, 2019

@retorquere -- I think you built that part of CI? Seems to struggle with filenames with spaces in it (see zuphilip's post above and travis details)

@adam3smith
Copy link
Collaborator

left a comment

I'm mostly fine with this. One question about the new test you added inline.
What's the rationale for the change in keywords/tags from search to display? Relatedly, do we generally import these long hierarchical tags and does that makes sense as a practice?

"items": [
{
"itemType": "book",
"title": "Zur Medienöffentlichkeit der Dritten Gewalt rechtliche Aspekte des Zugangs der Medien zur Rechtsprechung im Verfassungsstaat des Grundgesetzes",

This comment has been minimized.

Copy link
@adam3smith

adam3smith Jun 9, 2019

Collaborator

Anyway we could have figured out the subtitle here?

This comment has been minimized.

Copy link
@zuphilip

zuphilip Jun 9, 2019

Author Collaborator

It is not in the PNX data, which is a little strange, because it is in the underlying data. However, I don't see anything we can do in the translator for this case.

@retorquere

This comment has been minimized.

Copy link
Contributor

commented Jun 9, 2019

@adam3smith I'm looking into it

@retorquere

This comment has been minimized.

Copy link
Contributor

commented Jun 9, 2019

@zuphilip

This comment has been minimized.

Copy link
Collaborator Author

commented Jun 9, 2019

What's the rationale for the change in keywords/tags from search to display?

Currently, we add for example tags for all name forms of Germany which are part of the search section, e.g. https://primo-49man.hosted.exlibrisgroup.com/permalink/f/19ojnqi/MAN_ALMA21126560510002561 . It makes sense to have several name forms saved in the search section, because then all of them can be search in primo, but the normalized form is what you see in the display section.

Relatedly, do we generally import these long hierarchical tags and does that makes sense as a practice?

Do you mean the "Schlagwortketten" like Deutschland / Gerichtsberichterstattung / Elektronische Medien / Verbot / Verfassungsmäßigkeit? We could split this up into individual tags, as I would say is more what Zotero does. Should I do that?

@adam3smith

This comment has been minimized.

Copy link
Collaborator

commented Jun 10, 2019

@retorquere thanks!

@zuphilip Thanks for the explanation; makes sense on search vs. display and OK on the missing subtitle delimiter. Yes, I think splitting up the Schlagwortkette makes a lot of sense (and then fix any remaining linting issues)

@zuphilip zuphilip force-pushed the zuphilip:pnx-update branch from d749951 to 27b8daa Jun 10, 2019

item.itemType = "thesis";
break;
}
case 'book':

This comment has been minimized.

Copy link
@zuphilip

zuphilip Jun 10, 2019

Author Collaborator

This indenting looks strange for me, but it was suggested by the linter...

This comment has been minimized.

Copy link
@dstillman

dstillman Jun 12, 2019

Member

I've just changed this in the latest version of the config. The previous style is common in many languages, but there's now a compelling reason to indent switch cases in JavaScript, and the prevailing wisdom seems to have shifted.

@zuphilip

This comment has been minimized.

Copy link
Collaborator Author

commented Jun 10, 2019

Okay, I did split up the tags as you suggested. Please have a look. Linting is also done. I can squash later on.

@adam3smith

This comment has been minimized.

Copy link
Collaborator

commented Jun 10, 2019

Yes, I think that works better -- thanks! You can squash the PNX and Primo linting into one or leave them as two commits -- I don't have a preference on that either way (the two non-linting PNX ones need to get squashed for sure, though)

zuphilip added some commits Jun 3, 2019

Update Primo Normalized XML.js
- handle also cases where place is part of publisher string
- handle also cases where seriesNumber is part of series
- prefer subjects in display section over subjects in
search sections
- split chains of tags into single ones

@zuphilip zuphilip force-pushed the zuphilip:pnx-update branch from af46105 to dc34eb6 Jun 10, 2019

@zuphilip

This comment has been minimized.

Copy link
Collaborator Author

commented Jun 10, 2019

Squashed the firsts two commits together.

@adam3smith adam3smith merged commit dee6f73 into zotero:master Jun 10, 2019

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@adam3smith

This comment has been minimized.

Copy link
Collaborator

commented Jun 10, 2019

Thanks!

@zuphilip zuphilip deleted the zuphilip:pnx-update branch Jun 10, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.