Documentation available on this page.
rero / ng-core Goto Github PK
View Code? Open in Web Editor NEWAngular library for Invenio
Angular library for Invenio
Documentation available on this page.
Describe the issue
There is no 'request' button in the item detailed view.
To Reproduce
N/A
Expected behavior
An optional 'request' button should be added to the detailed view. When a request is done, the delete button should be disabled.
EDIT: better to generalize the behaviour so that any needed button can be added.
Software version
v0.0.33
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Describe the issue
Add an example to demonstrate the editor capabilities to the ng-core-tester.
resetFieldOnHide
to avoid fields with default value to be resetted.The title in all headers is currently "Invenio ng-core". It have to be changed for "RERO angular core".
When the API is not responding correctly, the component must show an error message.
Describe the issue
Changing the number of results fire two REST requests (see network in the debug mode)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Only one request.
Software version
v0.0.3
Check the permission before showing the record editor page.
When switching quickly from a resource type to another using the tabs, it causes resources from one type are loaded in the view of another.
At this time, delete button is gray, but we have to find a way to improve the display.
Don't take care of _settings entry in aggregations filters
Implement a script which is able to extract all translations in files and put them in json files. See RERO ILS ui app for a working example.
Set empty value for apiBaseUrl in configuration for production.
Describe the issue
The project needs a way to support more i18n languages, and to configure which ones a specific instance will need.
Expected behavior
This should help projects like rero-ils-ui
or sonar-ui
to support more languages.
Additional context
When resolving this issue, the translated files in rero-ils-ui
for Spanish, Arabic and Dutch, should be produced and synchronized to transifex, in order to recycle the existing translations in rero_ils/ui
or on transifex.
Describe the issue
When a document is saved with a required property, when we edit the document and the property is no more required and removed from editor, some data are kept when saving the document.
To Reproduce
Steps to reproduce the behavior:
Preprint
and fill provisionActivity
field with a start date.Conference poster
.provisionActivity
property from editor.Expected behavior
When the data are posted, they must not contain the provisionActivity
field.
In the configuration, add an entry which may contain an observable for handling errors when an API call fails.
Describe the issue
If an enum field is marked as read-only, the value can still be changed.
To Reproduce
Add this kind of property:
"readonly_changeable": {
"title": "[issue] Readonly value changeable",
"description": "Readonly values must not be changeable.",
"type": "string",
"default": "Value 1",
"readOnly": true,
"enum": [
"Value 1",
"Value 2"
]
}
Describe the issue
In certain circumstances, tooltips are displayed twice on editor field mouse over. The issue has been seen in a SONAR editor.
To Reproduce
"specificCollections": {
"title": "Specific collections",
"description": "The names of the organisation's specific/patrimonial collections to which this document belongs",
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
}
Expected behavior
On mouse over, only one tooltip must be displayed.
Additional context
SONAR deposit editor.
Describe the issue
When the url is changed from a detail component, the content is not updated excepted if we reload the application.
To Reproduce
Steps to reproduce the behavior:
In rero-ils-ui
Expected behavior
The content of the view should match the corresponding url.
Software version
cb1af09
rero/rero-ils-ui@2cd145c
use link with detailUrl as record title and person name in addition to fa fa-search button
Add parameters to manage record sorting to getRecords. One for the key and one for the order (ASC or DESC)
When an API call fails, the handleError method of the API service logs errors in console. We want to avoid that.
Describe the issue
With a list of a simple property, this property is not validated, even with a pattern.
To Reproduce
Check this kind of property:
"simple_not_required": {
"title": "[issue] Simple element of list are not required.",
"description": "Simple element must not pass the validation if they are required and empty.",
"type": "array",
"minItems": 1,
"items": {
"title": "Item",
"type": "string",
"pattern": "^.+$",
"minLength": 1
}
}
Describe the issue
It would be great to add default pages for 4xx and 5xx sever status. An additional configuration can be added to have the possibility to overwrite the default pages.
The editor should be adapted accordingly.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
An permission denied page is displayed.
Software version
Tell us which version you're using:
Note
Similar pages has been created to the rero-ils-ui. For the page redirection in rero-ils-ui we use guards.
Describe the issue
Following this structure:
"publication": {
"title": "Publication",
"type": "object",
"additionalProperties": false,
"properties": {
"startDate": {
"title": "Start date",
"type": "string",
"minLength": 1,
"form": {
"hide": true
}
},
"statement": {
"title": "Statement",
"type": "string",
"minLength": 1
}
}
}
The startDate
field is not displayed by default in the editor, but could be selectable in the dropdown after the parent's label. The dropdown appears well, but contains nothing.
To Reproduce
Steps to reproduce the behavior:
Book chapter
for document type.Contained in (host document)
section.Publication
.Expected behavior
The dropdown must contain the choice for adding field Start date
.
Use yarn instead of npm as package manager
Describe the issue
"record" property is not necessary in DetailComponent. The use of async pipe is better.
TODO:
Describe the issue
The start
and end
arguments of the TimeValidator.greaterThanValidator
are not use to validate data.
Instead of this, the validator get the content of static 'start_date' and 'end_date' field
Expected behavior
Validator arguments should be used
Software version
v1.0.0
Describe the issue
Sometimes after records creation, an error appears after redirection, instead of showing the record details.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
After redirection, the record details must be displayed, not an error.
Document installation on the README file
Provide a configuration service, which can be overloaded by the application.
Describe the issue
If a group
is specified in the JSON schema, the options have to be grouped by this group when rendering the select box. It was the case, but a recent PR broke this behavior.
To Reproduce
language
select box, the first four options must be separated from others.Expected behavior
A separator representing the group have to be displayed after the fourth options (preferred languages).
Describe the issue
Following this property example:
"editionStatement": {
"title": "Edition",
"type": "object",
"additionalProperties": false,
"properties": {
"editionDesignation": {
"title": "Designation",
"type": "object",
"properties": {
"value": {
"title": "Value",
"type": "string",
"minLength": 1
}
},
"required": [
"value"
]
},
"responsibility": {
"title": "Responsibility",
"type": "object",
"properties": {
"value": {
"title": "Value",
"type": "string",
"minLength": 1
}
},
"required": [
"value"
]
}
},
"required": [
"editionDesignation"
],
"form": {
"hide": true,
"navigation": {
"essential": true
},
"templateOptions": {
"cssClass": "editor-title"
}
}
}
The editor-title
CSS class is added twice in the HTML, causing an extra border in the property.
To Reproduce
Edition
field.Edition
properties.Expected behavior
The additional border must not be displayed. In other word, the editor-title
class must be added only one time.
Each private property and method must start with the "_" char.
The library have to guess the current locale by checking on :
The functions that control permissions to add, edit or delete a resource must return an observable.
In addition, it is necessary to add a control on the possibility of listing records and seeing the details of a record.
Describe the issue
The switches don't work anymore in editors. It's impossible to change the state of the field.
To Reproduce
Expected behavior
State of the field must change when clicking on the switch.
Software version
This problem seems appearing since this commit 87e51ef.
Remove "public" keyword before properties in the whole project as a property is public by default.
Remove icon detail because the link is put on the title of the record.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.