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

MIR-1151 Rework mods name search #776

Merged
merged 6 commits into from
Sep 27, 2022

Conversation

sebhofmann
Copy link
Member

@sebhofmann sebhofmann commented Jun 16, 2022

@sebhofmann sebhofmann force-pushed the issues/MIR-1151-Rework_mods_name_search branch from 7df2f15 to 45c5f60 Compare June 17, 2022 12:04
@kkrebs kkrebs requested review from golsch and toKrause June 21, 2022 13:44
Copy link
Contributor

@kkrebs kkrebs left a comment

Choose a reason for hiding this comment

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

feature works and looks good for me, I only see some little fine tuning to do. See code comments.

<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<link rel="stylesheet" href="http://localhost:8291/mir/rsc/sass/mir-layout/scss/flatmir-flatly.min.css">
Copy link
Contributor

Choose a reason for hiding this comment

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

please check href to localhost

Copy link
Member Author

Choose a reason for hiding this comment

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

index.html is only used for testing its not actually used when the component is built.

<script>
window["webApplicationBaseURL"] = "http://localhost:8291/mir/";
window["currentLang"] = "de";
</script>
Copy link
Contributor

Choose a reason for hiding this comment

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

are these default values only?

Copy link
Member Author

Choose a reason for hiding this comment

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

index.html is only used for testing its not actually used when the component is built.

}
</script>

<style scoped>
Copy link
Contributor

Choose a reason for hiding this comment

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

We should use this feature with care and better put css / sass code to mir-layout. This way we can better ensure a consistent look and feel. Please check if all used classes are only relevant for this vue component.

mir.editor.person.website = Website
mir.editor.person.link = Link
mir.editor.person.wikipedia = Wikipedia
mir.editor.addIdentifier = Identifier Hinzuf\u00FCgen
Copy link
Contributor

Choose a reason for hiding this comment

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

little type here -> "hinzufügen"

mir.editor.person.website = Website
mir.editor.person.link = Link
mir.editor.person.wikipedia = Wikipedia
mir.editor.addIdentifier = Identifier Hinzuf\u00FCgen
Copy link
Member

Choose a reason for hiding this comment

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

Respect to "mir.editor.person.applyPerson", "ID" instead of "Identifier"?

pom.xml Outdated
@@ -45,7 +45,7 @@
<jetty.version>11.0.9</jetty.version>
<maven.compiler.arg>-Werror</maven.compiler.arg>
<mycore.version>2022.05-SNAPSHOT</mycore.version>
<node.version>v12.16.3</node.version>
<node.version>v12.22.12</node.version>
Copy link
Member

Choose a reason for hiding this comment

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

Does not belong directly to it, but this props are redefined in MIR, may we should use definitions of mycore-parent, according to MyCoRe-Org/mycore#1623

<i class="fas fa-address-card"></i>
<span class="identifier-count">{{ currentIdentifier.length }}</span>
</button>
<button :id="`search-${this.nameIndex}`" type="button" class="btn btn-outline-secondary"
Copy link
Member

Choose a reason for hiding this comment

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

Oher templates use "btn-secondary" here

}

closeDrops() {
console.log("Clicked outside!")
Copy link
Member

Choose a reason for hiding this comment

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

I would generally suggest to remove the logs in production.

}

get url() {
return (<any>window)["webApplicationBaseURL"] + "servlets/MIROrcidServlet"
Copy link
Member

Choose a reason for hiding this comment

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

Type any leads to ugly outputs during building. I would suggest to annotate them at least so that they are no longer displayed


for (let i = 0; i < array.length; i+=2) {
const term = array[i] as string;
const count = array[i+1] as number;
Copy link
Member

Choose a reason for hiding this comment

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

unused

@sebhofmann sebhofmann requested a review from golsch July 27, 2022 14:25
@sebhofmann sebhofmann changed the base branch from main to 2022.06.x August 16, 2022 12:32
@sebhofmann sebhofmann force-pushed the issues/MIR-1151-Rework_mods_name_search branch from 5131781 to 4990d8f Compare August 30, 2022 13:36
- use vue.js for the GUI
- allow multiple identifiers to be added with a search
- more detailed result display
- added ror to search for corporate
* fixed typos
* removed log messages
* replaced <any>window with window as any
* replace btn-outline with btn-secondary
* use node and yarn version of mycore-parent
* remove unused variable
@sebhofmann sebhofmann force-pushed the issues/MIR-1151-Rework_mods_name_search branch from 4990d8f to f274c75 Compare September 22, 2022 07:59
@sebhofmann sebhofmann merged commit a7f278f into 2022.06.x Sep 27, 2022
@sebhofmann sebhofmann deleted the issues/MIR-1151-Rework_mods_name_search branch September 27, 2022 07:34
sebhofmann added a commit that referenced this pull request Sep 27, 2022
* 2022.06.x:
  MCR-1116 added rules for new fact based acl system
  MCR-2728 remove jpa mapping from mycore-ifs
  MCR-2530 add translations
  MCR-2731 Add configurable list of x-languages that may be edited using the classification editor (#797)
  MIR-1151 Rework mods name search (#776)
  MIR-1173 use only relatedItems with right type and id (#806)
  MIR-1170 Provide default value to prevent unintentional behavioural change
  Bump moment from 2.29.2 to 2.29.4 in /mir-module
  Fix bibutils download link
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.

3 participants