xmlui | XML User Interface for Appcelerator
kandi X-RAY | xmlui Summary
kandi X-RAY | xmlui Summary
XML UI was created to help the development of applications using Appcelerator. Instead of coding the interface using the Titanium.UI.create methods, you can simply declare your interface in XML.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of xmlui
xmlui Key Features
xmlui Examples and Code Snippets
Community Discussions
Trending Discussions on xmlui
QUESTION
I have a modified version of ItemRequestForm.java
that previously worked in version 5x. In item-view.xsl
, I created a link that when clicked, will redirect the user to this modified form. The URL pattern of this link is http://example.com/documentdelivery/123456789/1234
. When I upgrade my DSpace version to 6x, I have difficulty in making it work. Due to major code refactoring between versions 5 and 6, I find it hard to migrate my code to the latest version.
Below is part of the code that worked in version 5x (DocumentDeliveryForm.java)
The code is mostly based on this answer: How can I get the title of the referring page (item) from a modified version of feedback page in DSpace?
...ANSWER
Answered 2020-May-11 at 01:45Finally, I managed to get it to work. I also displayed other metadata fields based on my previous post here: Getting other metadata in ItemRequestForm in DSpace 6x
QUESTION
I am trying to display the thumbnails from harvested items. The settings I have for the harvesting options is Harvest metadata and references to bitstreams (requires ORE support). When looking for the code on how DSpace displays the filenames and file sizes of the bitstreams of the harvested items in simple view, I found that in https://github.com/DSpace/DSpace/blob/dspace-6.1/dspace-xmlui-mirage2/src/main/webapp/xsl/aspect/artifactbrowser/item-view.xsl#L375-L378
...ANSWER
Answered 2020-Apr-18 at 11:06For my future reference, this is what I have made to show the thumbnails for harvested items.
This answer is based on DSpace 5x Mirage2 Theme but it can also be applied to DSpace 6x Mirage2.
In item-view.xsl
, locate the block and then insert this code:
QUESTION
the first thing is...sorry for my English.
I have two differents objects: a factor and a numeric. I print a geom_point()
and geom_line()
with x=Year with trimester (As factor)
, and y=value (numeric)
.
I divide y
information into two factor levels, through group= a factor variable
.
Then, I have two lines. I need to print 3 vertical lines in the position which is the biggest difference between both lines, and the lessest too.
I have seen that I can make a line with geom_segment
or geom_line
. But I need the start and the end, so I need x
reference. But my x
is a factor, not a numeric.
So, what can I do?
I have this enter image description here
And I need something like this (page 3, first graphic):
https://riull.ull.es/xmlui/bitstream/handle/915/6574/A_08_%282017%29_07.pdf?sequence=1&isAllowed=y
And this is my data (first 20 lines) before I transform it with melt
function (by "Ambos.Sexos")
`
...ANSWER
Answered 2019-Jul-31 at 17:19I really recommend you to improve this example, but this will do the work if you keep the structure. Translate: Te recomiendo que mejores el código, si sigues la estructura tal y como la definí va a funcionar, pero se puede mejorar.
QUESTION
I would need to sort the items displayed on the XMLUI discovery page using a combination of metadata, because the type of ordering required (specifically for size) uses a different metadata for media type of reference (see images, audio, video ...) .
Wanting to act, as per documentation, on the file "discovery.xml" but specifying a bean of this type:
...ANSWER
Answered 2018-Nov-29 at 14:45Sorting via a list of metadataFields currently isn't possible in DSpace's Discovery module.
DiscoverySortFieldConfiguration
only supports a single metadataField
as noted in the documentation at: https://wiki.duraspace.org/display/DSDOC6x/Discovery#Discovery-Sortoptioncustomizationforsearchresults
You can also see that the code itself only supports one field: https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace-api/src/main/java/org/dspace/discovery/configuration/DiscoverySortFieldConfiguration.java#L17
QUESTION
I've trying to edit item-view.xsl to add a link in author label (dc.contributor.author) but no luck yet.
I'm using XMLUI - Mirage2
in: https://openknowledge.worldbank.org/handle/10986/29498
What should I add?
Thanks
...ANSWER
Answered 2018-Apr-06 at 22:33The following code snippet might help. This code turns the subject field into a facet link. It will require a little modification to work for the author field.
QUESTION
I am using XMLUI (Mirage) on DSpace 6.2 and am trying to insert the "Most Downloaded Items" into the home page.
I have figured out the SOLR query for this, namely (in page-structure.xsl):
...ANSWER
Answered 2018-Feb-28 at 04:39i) Your query gets bitstream IDs, not the IDs of the owning item. For most downloaded items you'll want facet.field=owningItem
, and possibly also an exclusion so you don't count thumbnails (something like &fq=bundleName:ORIGINAL
- you'll need to adjust that if you have non standard bundle names).
ii) Looks good to me. You probably want something like to suppress the random XML junk you're seeing.
iii) I think it'll be better to get the metadata from the Discovery Solr core rather than trying to obtain the mets.xml file. You may be able to do a Solr join to the discovery core and get the title (or whatever other metadata you want) from there all in one query, but I'm not sure that works with faceting. You could, in your template, make a query to the Discovery core for each ID to get what you're after (eg http://localhost:8080/solr/search/select?q=*:*&fq=search.id=[id-goes-here]&rows=1&fl=title).
iv) Depends on whether you think writing Java code is easier ;) I have solved much the same issue locally in a two-step process: (a) query solr once per day with a query much like yours and write the results to a (JSON) file; (b) write Java code for a Cocoon transformer that loads the item IDs from the file, looks up the corresponding item's title then puts that into the page in a useful format. Not sure whether your approach is any better/worse! Though my approach avoids having to query Solr in real time, which we found to be quite resource intense.
Just for reference, my query for the JSON file mentioned in (iv) is http://localhost:8080/solr/statistics/select?q=*:*&fq=-isBot:true&fq=type:0&fq=statistics_type:view&facet=true&facet.field=owningItem&facet.limit=5&indent=true&rows=0&fq=time:[NOW/DAY-7DAYS+TO+NOW/DAY]&facet.mincount=5&fq=bundleName:ORIGINAL&wt=json&omitHeader=true
- get non-bot hits
- hits for bitstreams (type 0)
- where the statistics type is view (not workflow or whatever else there is)
- we want them grouped by the corresponding item's ID
- we only want 5
- we want this to be indented (this is just for optics)
- we want 0 rows of data (which would be in addition to the facets - we only care about facets)
- we want the last 7 full days
- we only want items whose files have been downloaded at least 5 times
- we only want ORIGINAL bundle, not thumbnails etc
- we want JSON format
- we want to skip some of the Solr results stuff that we don't care about
QUESTION
I've been trying to modify the appearance of the list of communities on the repository I'm working on. Essentially I want to remove the caption of the content description underneath the communities on the front page. I've attached image descriptions below.
I can't seem to find the files responsible, I had initially attempted to modify the _community-list.scss and the _community-view.scss files in [source]/dspace-xmlui-mirage2/src/main/webapp/styles/classic_mirage_color_scheme/
But no luck yet.
...ANSWER
Answered 2017-Dec-13 at 16:18Comment out the following code to hide the display of that information. https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace-xmlui-mirage2/src/main/webapp/xsl/aspect/artifactbrowser/community-list.xsl#L66-L73
QUESTION
i'm trying harvest a collection from a external repository by OAI service, but when i try ping the url by terminal or test the configurations harvest in module xmlui:
...ANSWER
Answered 2017-Dec-13 at 16:42If I open up your OAI landing page at https://repositorioaberto.uab.pt/oai/request?verb=Identify
I see that the links for the OAI verbs do not conform to the original URL
http://repositorioaberto.uab.pt/oaiextended/request?verb=ListSets
Can you explain why "oaiextended" is part of the path? Could this be the source of the problem?
QUESTION
Inside of statements that select
a dim:field
in DSpace's item-view.xsl, I find
ANSWER
Answered 2017-Nov-23 at 07:12No, there is no difference.
See https://msdn.microsoft.com/en-us/library/ms256086(v=vs.110).aspx
The expressions ./node
and node
are equivalent.
QUESTION
I have to configure the Swordv2 Server on an exisitng Dspace installation to allow access via SwordV2 protocol. I have looked at duraspace's instruction, the swordv2 app at [dspace]/webapps/swordv2/ seems to be available in the tomcat webapps folder and the Sword2 config file is locatet at the right place ([dspace]/config/modules/swordv2-server.cfg).
Yet changes to the config file seem to have no effect. What am I doing wrong here?
UPDATE
This is the sword specific output of tomcat after restart:
ANSWER
Answered 2017-Nov-21 at 00:12From the dspace.log output it looks like your authentication methods are not set up right. I believe swordv2 requires you to have password authentication enabled.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install xmlui
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page