EPrints Technical Mailing List Archive
Message: #09067
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] How to add title in Google Search link?
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>, "MOHD.IZWAN SALIM" <mohdizwan8733@uitm.edu.my>
- Subject: Re: [EP-tech] How to add title in Google Search link?
- From: Martin Brändle <martin.braendle@uzh.ch>
- Date: Wed, 14 Sep 2022 14:03:27 +0000
CAUTION: This e-mail originated outside the University of Southampton.
Hi Izwan, this is what I have from the QUT citation plugin: $c->{gscholar}->{search_title} = sub { my ( $eprint ) = @_; my $quri = $eprint->repository->config( "gscholar", "uri" )->clone; my $q = ""; # get the title and encode it for Google my $title = $eprint->get_value( "title" ); utf8::encode( $title ); $q = "allintitle:\"$title\""; # get the creators' name and encode it for Google if ( $eprint->is_set( "creators_name" ) ) { my $creator = (@{$eprint->get_value( "creators_name" )})[0]; $creator = substr( $creator->{given}, 0, 1 ) . "-" . $creator->{family}; utf8::encode( $creator ); $q .= " author:$creator"; } $quri->query_form( q =>
$q ); return $quri; }; Kind regards, Martin -- Dr. Martin Brändle From:
eprints-tech-bounces@ecs.soton.ac.uk <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of MOHD.IZWAN SALIM via Eprints-tech <eprints-tech@ecs.soton.ac.uk> CAUTION: This e-mail originated outside the
University of Southampton. Dear all Previously I use this code to create a link to search items in GS Its sort of checks whether the item was indexed in GS or not. But now it does not work anymore, maybe GS already changed it. How to insert other metadata at the back of the query
q= Let say title Regards
Izwan PENAFIAN: E-mel ini dan apa-apa fail yang dihantar bersama-samanya ("Mesej") adalah dihasratkan hanya untuk kegunaan penerima yang dinyatakan di atas dan mungkin mengandungi maklumat
yang tidak umum, bermilik, istimewa, sulit dan dikecualikan dari penzahiran di bawah undang-undang yang terpakai termasuklah Akta Rahsia Rasmi 1972.
BACA
SELANJUTNYA... DISCLAIMER : This e-mail and any files transmitted with it ("Message") is intended only for the use of the recipient(s) named above and may contain information that is non-public,
proprietary, privileged, confidential and exempt from disclosure under applicable law including the Official Secrets Act 1972.
READ
MORE... |
- Follow-Ups:
- Re: [EP-tech] How to add title in Google Search link?
- From: Martin Brändle <martin.braendle@uzh.ch>
- Re: [EP-tech] How to add title in Google Search link?
- References:
- [EP-tech] How to add title in Google Search link?
- From: "MOHD.IZWAN SALIM" <mohdizwan8733@uitm.edu.my>
- Re: [EP-tech] How to add title in Google Search link?
- From: Martin Brändle <martin.braendle@uzh.ch>
- [EP-tech] How to add title in Google Search link?
- Prev by Date: [EP-tech] How to add title in Google Search link?
- Next by Date: Re: [EP-tech] How to add title in Google Search link?
- Previous by thread: [EP-tech] Sort view with creators_name and corp_creators
- Index(es):