I have a collection with 15 documents, manually I added the views of each items anfd the total was 23.000~ but when I view the statistics of the colecction I get 3.200~. When viewing the statistics of a collection in DSpace 6 I only get the views the collection has gotten but it doesn't add the views the items of that collection has gotten.
How can I add each item's statistics into the collection?
The DSpace Usage Statistics for a Collection or Community only display views of the Collection or Community landing page. The total item views are not displayed in the user interface.
The question can be answered by querying the Solr repository within DSpace. We have built an internal reporting tool that computes these usage numbers.
All item views
type:2
All item views for a collection
You can get the item uuid from the database or from the url of the item edit page.
q=type:2 AND owningColl:59f3a497-9e82-4100-ba9a-e00cff04ec43
All item views for a community
q=type:2 AND owningComm:59f3a497-9e82-4100-ba9a-e00cff04ec43
All item views for a community for the last 12 months
q=type:2 AND owningComm:59f3a497-9e82-4100-ba9a-e00cff04ec43
facet.date=time
facet.date.start=NOW/MONTH/DAY-12MONTHS
facet.date.end=NOW/MONTH/DAY+1MONTH
facet.date.gap=+1MONTH
More information
I have a tutorial on using Solr with DSpace here: https://github.com/terrywbrady/TutorialSolrAdmin
Related
I'm creating an application in the MERN stack and I stumbled upon a problem. I will start by explaining how that app is going to work.
So, in that application users can create their Collections. It can be anything - a collection of books, a collection of a favorite food - anything. Now in these Collections, they can create Items - for example, specific books.
We can navigate through the application to the different Collection Pages or the specific Item Pages in those Collections. You get the idea. There is a list of all the Collections on the main page and we can click e.g. Books Collection, then click on the Harry Potter item, and we will visit the Page for that specific book.
When a user creates an Item, he has to add a name and tag to it. But the user can set his own fields, like for example Author field for that Books Collection. Then every Item (book) will gain that Author field. It's obvious, that the main Item Schema is not affected by that additional field. Because we don't wanna the Author field in the Favourite Food Collection.
Anyway, I know how to modify data of already existing Items, but how to change that Schema for an Items that user gonna create in the future? Because if the user added Author field, we obviously want that field to show every time that user creates a new Item (book) in that certain Collection. Should I create a whole new Schema, only for the modified document? Or is there a different, more approachable way of achieving what I want right here?
As far as saving dynamic data in the collection, you could use Mixed Type or Object Type, see more info here
For keeping track of the fields the user has used previously, we could maintain a array within, having all the fields
I have a question on Backbone routes and views.
Assuming that there is a page with 3 views, View-1,2,3. Each view nested inside the other (view 3 inside view 2 which is inside view 1) and that view 3 is result of navigating from view 1 to view 2 to view 3.
For example, view-1 shows all customers, and view-2 shows the selected customer and view-3 shows active order(s) of the selected customer.
Now, if I want to give a permalink to this entire view (which shows the active order(s) of a particular customer selected from a list of customers) to another user then how to design it.
Are there any good practices in this scenario.
I am trying to display a collection of related items on a page which are at discounted price. I want to know the API call which gets all the discounted items from the database to filter out the related items to the currently displayed item.
I'm trying to add a simple line off text next to the price in my Drupal Commerce solution.
Seems quite simple but i'm lost where to start. Here is my problem summarised:
Drupal commerce doesn't use templates but views for every page so i want to edit the view
All views contain a rendered entity most off the time a product list
I can add fields to the product list display but these are all fields that are editable on the product page.
So i'm wondering is there a way to add a simple chunk off text (or HTML) to the product list?
Thank you!
I have a page generated by Views which lists 5 Articles at a time. This view is paginated so that page 2 of this View will list the second batch of 5 Articles, page 3 will list the third batch of Articles, so on and so forth.
My question: is it somehow possible to extract fields from Articles listed on the page you're currently on, perhaps via the url? And I only want to them on the Articles being displayed by the page the viewer is currently on and not all the Articles.
My intent is to have a Views Block that would ...
determine what page of the paginated View above you're looking at
determine what Articles are listed on that specific page
aggregate and display the Taxonomy Terms of those listed Articles (Articles have a Taxonomy Term field) in the block
do all the above automatically as you change what page you're looking at
The way I'm going about this is to list all the the Taxonomy terms in a block which is relatively straightforward. What I can't figure out is how to filter it based on what Articles are being displayed to me in a paginated page.
I was thinking maybe this is possible to use it using the url of the paginated page which goes along this format: ?page=1, ?page=2, etc.
If anyone could just point me to the right direction, I would appreciate it. I'm also open to alternatives.
What if you created another display of the same view as your Article page view?
You could add a Relationship for the Taxonomy Terms and then the Fields in the block view would be the appropriate fields from the taxonomy terms. You'll want to setup the same Filters, Sort and Pager options for the two displays are the same. That way the results should match.
Then you might just want to hide the pager from the block view. You could do that through a custom template for that view display, or maybe a preprocess function that hides the pager for just your view, or maybe via CSS.