[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] EPrints Shelves - a question and suggestion



Hi Tomasz

This is interesting.  It's kindof like a browse view, but only generating for one set of items.

I've had a quick peek at:

http://bazaar.eprints.org/258/1/epm/shelves/cfg/cfg.d/z_shelf_dataobj.pl

And the ids of the content of the shelf are contained in the 'items' field.  I think it would be fairly straightforwards to extend the behaviour of a shelf.  You'd need to do the following:

* Add a 'shelf_search' field to the shelf -- see how the editorial rights restrictions on a user do this, it's also a search field.
* Create a script that will iterate through all shelves, finding the ones with a shelf_search field set, run the search and swap the contents of the shelf for the result of the search.  Run it nightly (or whatever) in the crontab.

Note that there may be some user interface issues here -- if people add things to the shelf then they'll be lost on the next nightly update.  Some thinking will need to go into this.  Maybe make it an admin only function and restrict the shelf editors.


[Jisc]<http://www.jisc.ac.uk/>

Adam Field
SHERPA services analyst developer


From: <eprints-tech-bounces at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk>> on behalf of Tomasz Neugebauer <Tomasz.Neugebauer at concordia.ca<mailto:Tomasz.Neugebauer at concordia.ca>>
Reply-To: "eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>" <eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>>
Date: Tuesday, 29 March 2016 16:25
To: "eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>" <eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>>
Subject: [EP-tech] EPrints Shelves - a question and suggestion

It looks to me like EPrints ?Shelves? (http://bazaar.eprints.org/258/  - although the EPrints Bazaar looks to be not responding right now)
are the closest in terms of functionality to allowing for sorted RSS export of search results from EPrints.

I have a question and a suggestion about it.

The question is: I would like to roll this out to admins and editors first, is there a way to turn off the shelves functionality for non-administrators and non-editors?

The suggestion: Rather than adding items individually one-by-one to a shelf, it would be useful if it was possible to assign a shelf to a Search URL/parameters directly, and have EPrints regenerate the shelf export nightly based on the search.
This would make the shelves dynamic, once they are set, they would update automatically as more content is added to the repository.

Tomasz

Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc?s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.

Jisc Services Limited is a wholly owned Jisc subsidiary and a company limited by guarantee which is registered in England under company number 2881024, VAT number GB 197 0632 86. The registered office is: One Castle Park, Tower Hill, Bristol BS2 0JA. T 0203 697 5800.  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20160331/6e8b7bf6/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6B9928AE-9C97-4E75-8330-7E24168F02D7[3].png
Type: image/png
Size: 1264 bytes
Desc: 6B9928AE-9C97-4E75-8330-7E24168F02D7[3].png
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20160331/6e8b7bf6/attachment.png