-
Notifications
You must be signed in to change notification settings - Fork 6
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
MIR-1151 Rework mods name search #776
Conversation
7df2f15
to
45c5f60
Compare
There was a problem hiding this 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"> |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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!") |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused
5131781
to
4990d8f
Compare
- 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
4990d8f
to
f274c75
Compare
* 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
Link to jira.