Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Olivier DOSSMANN
@blankoworld
@zzacharo : thanks, I will check what I miss. It's not intuitive to create an invenio.cfg if we don't know that it exists ^_^
Zacharias Zacharodimos
@zzacharo
you will need this only if you want to ovveride potentially specific stuff based on your environment..For example we use it in pur production to supply sensitive password variables. During development this is not something you probably need :)
Lars Holm Nielsen
@lnielsen
@blankoworld The documentation on pythonhosted is outdated….the correct place is invenio.readthedocs.io
Olivier DOSSMANN
@blankoworld
@lnielsen oops. Is that planned to update/remove those from pythonhosted? O:-)
Lars Holm Nielsen
@lnielsen
pythonhosted has been deprecated as a service and we’ve tried to remove all links to it……there’s supposed to be an option to delete it, but it doesn’t work and is not available any longer: https://github.com/pypa/pypi-legacy/issues/700#issuecomment-378470711
Olivier DOSSMANN
@blankoworld
Ootch, I came from "google". That's why I use pythonhosted :'(
mb-wali
@mb-wali
i cloned the recent commited RDM app while running the scripts ./scripts/bootstrap.. i get this errror: ModuleNotFoundError: No module named 'invenio_search'
Pablo Panero
@ppanero
Hi @mb-wali cookiecutter-invenio-rdm or invenio-app-rdm?
This message was deleted
Lars Holm Nielsen
@lnielsen
@mb-wali It's not in a state where you can start looking at it....it's WIP.....end-October we expect to have the first alpha release that will have anything in a working state......
ilawbijom
@ilawbijom
invenio-app-rdm
@lnielsen ok thanks.
ilawbijom
@ilawbijom
Hello, does anyone know this error: elasticsearch.exceptions.NotFoundError: NotFoundError(404, 'index_not_found_exception', 'no such index')
Dubois Laurent
@itld_solutions_twitter
@ilawbijom Hi, Have you run scripts/setup ? In the setup script, there is a command to init the elasticsearch index.
ilawbijom
@ilawbijom
@itld_solutions_twitter hi, i know when i run this script the failer is gone but i will lose my data also with it. i dont want to lose my data eveytime i stop the webserver.
Zacharias Zacharodimos
@zzacharo
@ilawbijom if you open the setup you could see the commands that are being executed. For your problem you need just to run the command for creating the indexes...
invenio index init --force
by losing your data do you mean the database data?
ilawbijom
@ilawbijom
@zzacharo hello. thanks. yes i los the database data.
Zacharias Zacharodimos
@zzacharo
So if you run just the above command it will create the recreate the indexes only
ilawbijom
@ilawbijom
@zzacharo this command you mentioned works good, but one i think database tables are not regonized anymore, i get an error of internal. i want to have my database data after i stop the containers and when i run again the containers i should be able to see my database data and tables.
ilawbijom
@ilawbijom
@zzacharo . OK found the solution. i was using docker-compose down command which will stop and delete the containers. i prefer to use docker container stop <docker ids>
Zacharias Zacharodimos
@zzacharo
@ilawbijom so everything is fine now?
mb-wali
@mb-wali
@zzacharo yes dear. its fine now.
mb-wali
@mb-wali
hello guys. running this command docker-compose -f docker-compose.full.yml up to start all the services in Invenio gives an error of:ERROR: Service 'worker' failed to build: .. any ideas??
mb-wali
@mb-wali
The issue is in the Dockerfile this line of code: FROM my-site-base:${DEPENDENCIES_VERSION} is giving the error of access denied or the repository doesnt exist....... any ideas??
Olivier DOSSMANN
@blankoworld
@mb-wali probably you need to build the image before.
The ./docker/build-images.sh do the trick! ;)
mb-wali
@mb-wali
@blankoworld thank you so much... you are life saver. :)
Olivier DOSSMANN
@blankoworld
I'm just a simple human ;)
Mayazure
@Mayazure
Hi everyone, I defined a record type which has some metadata including a 'title' field. When configure the REST api, is it possible that when list all records, only the title field is listed and returned to client, while when read a specific record, all the metadata are returned to client? Thank you very much!
Zacharias Zacharodimos
@zzacharo
Hey @Mayazure you can control what is returned to your response via the serializers. You can define your marshmallow schema and enlist all the fields you want to return back to the user. You can check our latest invenio training for some more information here https://github.com/inveniosoftware/training/tree/master/07-data-models-new-field#step-7-manipulate-response-using-serializers
Mayazure
@Mayazure
@zzacharo Thanks for your response. Actually, I realized that what I need to do is to modify the search_serializer and make it different from record_serializer. After doing so, I solved the problem.
Zacharias Zacharodimos
@zzacharo
yes search_serializer is always used to manipulate search response and record_serializer when you try to access an individual record
jjcrawley
@jjcrawley
doing a little research on and not having much luck finding whether ldap can be used for user authentication in the documentation. can someone help point me to documentation? thanks!
fenekku
@fenekku
@jjcrawley We have open-sourced a library to use LDAP some time ago: https://github.com/galterlibrary/invenio-ldapclient . Feel free to contribute to it.
jjcrawley
@jjcrawley
thanks!
mb-wali
@mb-wali
Hello guys, i am trying to override the header.html of Invenio i found this documentation: https://invenio-theme.readthedocs.io/en/latest/usage.html , i am able to override the logo with this block {% block brand %} ... {% endblock brand %} but not sure how to do for search bar and navbar_header and ideas??
Zacharias Zacharodimos
@zzacharo
mb-wali
@mb-wali
@zzacharo thanks, but i want to change for example navbar_header, navbar_nav and navbar_right.
Zacharias Zacharodimos
@zzacharo
you can still extend your template from the default one and override only the blocks you need
mb-wali
@mb-wali
@zzacharo thanks mate, one more thing how can i add external javascript files to a templte?
just another template that you can override :)
In that file you can find also examples in general about template overriding
mb-wali
@mb-wali
if i have a javascript file i want to include to my template how would i do that?
Nicola
@ntarocco
@mb-wali I would recommend you to have a loot to the Invenio training repository: https://github.com/inveniosoftware/training
there are some examples and detailed instructions to achieve what you need!
Nicola
@ntarocco
for JS, you have a couple of choices
  1. add your new js file to an existing bundle, similar to here. In this case, when building the assets it will be automatically included inside that js bundle and injected in your template
  2. create a new bundle: declare the bundle as in the example above, register it in the entrypoints with a name e.g. mybundle_js, as for example here, use your new bundle in a template as here with the name my_bundle_js.