dspace

How to shorten filename displayed in DSpace

吃可爱长大的小学妹 提交于 2019-12-23 12:10:20
问题 I would like to shorten the file name that is being displayed in the simple item view. If I have a very long file name, this is displayed in the simple item record: This example file name is shortened if you view the full item record: But if you edit this item and click the Item Bitstreams tab, the file name is being displayed like this: My goal is to apply what is being displayed in the edit bitstream (the 3rd picture) to the simple and full item view. I don't know where this transformation

Modify filename of uploaded DSpace submission

人盡茶涼 提交于 2019-12-23 04:54:15
问题 I use DSpace 5.4. Using Java, how can I change an uploaded submission's file name? I found out that some Flyway database schema migration changed the location of this filename. As I don't want to run into problems with future database schema migrations, I am looking for solutions that are SQL-agnostic and instead use DSpace's domain objects. 回答1: To change the name of a file (= a DSpace bitstream) of an archived submission, you could use the example below, given that you know the ID of the

Styling of Mirage 2 using themes from bootswatch.com

送分小仙女□ 提交于 2019-12-19 12:05:26
问题 Based from the Readme files of Mirage 2, it says here: If you want to base your theme on an existing Bootstrap theme (like the ones at bootswatch.com) you can do so by using the standard Bootstrap color scheme and replacing the import of Bootstrap in bootstrap_color_scheme/_main.scss : @import "../vendor/bootstrap-sass-official/vendor/assets/stylesheets/bootstrap"; with an import of just its _variables.sccs file (those variables need to be defined, because they are used in _dspace-bootstrap

How to translate or replace subject terms in DSpace if I have the translations in a file

ぃ、小莉子 提交于 2019-12-14 00:54:59
问题 I would like to translate the subject(MeSH) terms displayed in item-view.xsl in the DSPace instance that I'm maintaining if the language is switched. Previously I am using the code below (I added this in XSLUtils.java class) to lookup to Babelmesh site and translate it on the fly. public static String lookupBabelMeSH(String term, String lang) { try { URLConnection babelMeshConn = (new URL("https://babelmesh.nlm.nih.gov/mesh_trans.php?oterm=" + URLEncoder.encode(term, "UTF-8") + "&in=ENG&out="

How to retrieve collection name based on item?

ぐ巨炮叔叔 提交于 2019-12-12 01:24:25
问题 I am doing dspace search project. Here I have created seperate item page. Now I have one problem. I am not able to retrieve collection name in in which item appears. Collection2item displays only collection id.Please help. 回答1: Savio, thank you for clarifying that you are in DSpace 5. The following code appears to document the migration of community.name from DSpace 4 to DSpace 5. https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/resources/org/dspace/storage/rdbms/sqlmigration

How can I get the title of the referring page (item) from a modified version of feedback page in DSpace?

折月煮酒 提交于 2019-12-11 22:13:37
问题 How can I get the title of an item from a modified version of the feedback page just like in the "Recommend this item" in jspui? I'm hoping also to generate the resulting url of the page to be like http://example.com/feedback?handle=123456789/123. I've asked this from a comment in my previous post but I don't know how to use the HandleManager. I've tried many times using part of the code from itemRequestForm but I always get null pointer error. DSpaceObject dso = HandleUtil.obtainHandle

How to add textArea based on selection from a dropdown or radio button in java?

穿精又带淫゛_ 提交于 2019-12-11 18:58:48
问题 I modified the feedback form of dspace code to add a category that will ask the user for their 'user type'. Select category = form.addItem().addSelect("category"); category.setLabel("Please select your category"); category.addOption("UG","Undergraduate/BS"); category.addOption("MS","MS Student"); category.addOption("PHD","PhD Student"); category.addOption("FAC","Faculty"); category.addOption("RES","Researcher"); category.addOption("TRA","Trainee"); category.addOption("BUS","Businessman

Move items between collections

不羁的心 提交于 2019-12-11 13:13:36
问题 I need to move a heavy quantity of items between two collections. I tried to change direct at database the tables "item" and "collection2item", columns "owning_collection" and "item_id" respectively. Then I restarted tomcat, cleaned the cocoon cache, rebuilt the index and it's still not working. Is the process metadata-export/metadata-import safer or easier than the above for mass move of items? What else can I do? 回答1: Your process should be ok if you run the reindex with the -bf flags (just

Location of pdf files in dspace server

北慕城南 提交于 2019-12-11 13:11:51
问题 I was wondering where in the live server files, can I find the pdf files I submitted in my DSpace instance? Does anyone knows where it is located? any help would be very much appreciated 回答1: Given a handle and a bitstream id number, you can get to the path for your file with the following query. By default your bitstream_id will be 1 unless you have added/removed bitstreams from your item. select '${YOUR_ASSETSTORE_PATH}' || substring(bit.internal_id, 1, 2) || '/' || substring(bit.internal

How to access or retrieve mets content of an item from another item?

老子叫甜甜 提交于 2019-12-11 12:14:57
问题 My use case is I have an item that has a link in another item. For example, item 123456789/152 has a metadata field dc.relation.hasversion=123456789/717 . Within the item view of 123456789/152 , how can I retrieve the values of the metadata of 123456789/717 ? For example, I want to retrieve the dc.language.iso value of 123456789/717 from 123456789/152 . I looked at the Related items feature in DSpace but I don't know how the metadata displayed in the Related items list were pulled from the