Re: [Dspace-tech] How to create new metadata field and how to insert metadata entry fir every record

2013-01-03 Thread helix84
Hi Sherman,

if you have Discovery enabled and you want to make a query which will
select all items that have a fulltext (i.e. a bistream in the TEXT bundle),
you can just use this Solr query in the DSpace search box: fulltext:*
This will also correctly restrict search results to the current
community/collection.

If this is not the usage you have in mind, you can do this:

On Wed, Dec 26, 2012 at 7:41 AM, LIBRIS Reference (LIBRIS) 
lib...@nie.edu.sg wrote:
 Q1. We need to create to a new Dublin Core (DC) metadata field,
dc.description.fulltext.  How do we go about it?

Just use the administrator's interface to add the field (Registries -
Metadata).

 Q2. We need to insert a metadata entry, dc.description.fulltext=Yes for
every record in a community (say, DB ID=3)  How do we go about it?

1) back up your database
2) look up the metadata field name (element and qualifier columns) in the
metadatafieldregistry table and find its metadata_field_id
3) use this code to insert the values (FIELD_ID is the value you found in
2), ITEM_ID is the internal ID of the item to which you want to add
metadata):

INSERT INTO metadatavalue (item_id, metadata_field_id,
text_value)VALUES (ITEM_ID, FIELD_ID, 'Yes')


Code is untested, from the top of my head. Remember to back up!


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] How to create new metadata field and how to insert metadata entry fir every record

2012-12-25 Thread LIBRIS Reference (LIBRIS)
Dear All,

Q1. We need to create to a new Dublin Core (DC) metadata field, 
dc.description.fulltext.  How do we go about it?

Q2. We need to insert a metadata entry, dc.description.fulltext=Yes for every 
record in a community (say, DB ID=3)  How do we go about it?

Thanks.

Sherman

National Institute of Education (Singapore) http://www.nie.edu.sg

DISCLAIMER : The information contained in this email, including any 
attachments, may contain confidential information. 
This email is intended only for the use of the addressee(s) listed above. 
Unauthorised sight, dissemination or any other 
use of the information contained in this email is strictly prohibited. If you 
have received this email by fault, please 
notify the sender and delete it immediately.
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette