Luke,

 

Thanks for sharing this – I’ve put it in a JIRA ticket for future reference:

 

https://vufind.org/jira/browse/VUFIND-951

 

- Demian

 

From: Osullivan L. [mailto:L.Osullivan@swansea.ac.uk]
Sent: Friday, January 17, 2014 11:45 AM
To: hatop@ub.uni-marburg.de
Cc: Demian Katz; vufind-tech@lists.sourceforge.net
Subject: Re: [VuFind-Tech] Search engine impact (was: Re: Sitemap)

 

Hi Goetz,

I have added google scholar tags to our vufind based repository. I took an approach similar to that used when generating openurl links:

    /**
     * Get Google Scholar Tags
     *
     * @return array
     */
    public function getGoogleScholarTags()
    {
        $meta = array();
        $format = $this->getOpenURLFormat();
        $pubDate = $this->getPublicationDates();
        $pubDate = empty($pubDate) ? '' : $pubDate[0];
        $meta[] = array("name" => "citation_title", "content" => $this->getTitle());
        $meta[] = array(
            "name" => "citation_author",
            "content" => $this->getPrimaryAuthor()
        );
        foreach ($this->getSecondaryAuthors() as $author) {
                $meta[] = array("name" => "citation_author", "content" => $author);
        }
        $meta[] = array(
            "name" => "citation_publication_date",
            "content" => $pubDate
        );

        switch ($format) {
        case 'Edited book':
        case 'Authored book':
        case 'Book':
            $meta[] = array(
                "name" => "citation_isbn",
                "content" => $this->getCleanISBN()
            );
            break;
        case 'Journal article':
        case 'Article':
            $meta[] = array(
                "name" => "citation_issn",
                "content" => $this->getCleanISSN()
            );
            $meta[] = array(
                "name" => "citation_volume",
                "content" => $this->getContainerVolume()
            );
            $meta[] = array(
                "name" => "citation_issue",
                "content" => $this->getContainerIssue()
            );
            $meta[] = array(
                "name" => "citation_firstpage",
                "content" => $this->getContainerStartPage()
            );
            $meta[] = array(
                "name" => "citation_journal_title",
                "content" => $this->getContainerTitle()
            );
            break;
        case 'Journal':
            $meta[] = array(
                "name" => "citation_issn",
                "content" => $this->getCleanISSN()
            );
        default:
            break;
        }

        return $meta;
    }

In core.phtml we then do

$tags = $this->record($this->driver)->getGoogleScholarTags();
foreach ($tags as $tag) {
if (!empty($tag['content'])) {
$this->headMeta()->appendName($tag['name'], $tag['content']);
}
}

Cheers,

Luke

On Fri, 2014-01-17 at 17:34 +0100, hatop@ub.uni-marburg.de wrote:

 
 
  I would be very interested in such a feature, especially if tags 
  like the ones needed for google scholar (citation_author and such)
  can be configured somewhere. We have a VF instance working as repository
  frontend, and that would simplify our publication system even more.
  
  -- Goetz.
 
On Fri, Jan 17, 2014 at 03:59:00PM +0000, Demian Katz wrote:
> It certainly might be interesting to create a new VuFind "about" action that could display basic information about the library similar to the Evergreen page you describe... this could pull basic data from config.ini, or individual libraries could override the template as desired. I'd be happy to collaborate on this if others are interested -- if there's a consensus on a good URL for such a page and fields that should appear there, I'd be happy to do the basic wiring to get the page created and the configuration settings established if Dan would like to build the markup of the page itself. Something for a future developers call?
> 
> - Demian
> ________________________________________
> From: Dan Scott [denials@gmail.com]
> Sent: Friday, January 17, 2014 10:30 AM
> To: Andrew Preater
> Cc: vufind-tech@lists.sourceforge.net
> Subject: [VuFind-Tech] Search engine impact (was: Re: Sitemap)
> 
> On Thu, Jan 16, 2014 at 10:09 AM, Andrew Preater
> <Andrew.Preater@london.ac.uk> wrote:
> 
> <snip>
> 
> > Google Webmaster Tools reports the indexing and harvesting side is working
> > as expected. The thing I'm not seeing is amazing impact on search results,
> > so we're monitoring this.
> 
> I'm _really_ interested in this aspect of the sitemap & indexing side
> of things. I took a quick look at a sample record
> (http://find.senatehouselibrary.ac.uk/Record/.b23607683) and noticed
> that, beyond the URL, there's not really any clear relationship
> between the described resource and the location where it's available
> (at least, not clear in a way that a search engine would be able to
> understand).
> 
> Interestingly, your legacy catalogue does show up in search engine
> results if I do '"<search term>" senate house libraries'. One reason
> is probably that the <title> element of the legacy catalogue includes
> "Senate House Libraries", whereas the VuFind catalogue title is simply
> "Holdings: The open fields". Also, the legacy catalogue uses an alt
> attribute on the logo to identify it as "Senate House Libraries",
> whereas the VuFind catalogue lacks that. In fact, "Senate House
> Libraries" doesn't appear in the text of the record page at all. So
> there are some very basic tweaks you could make to your VuFind
> template to help out the search engines (say, something like title =
> "Senate House Libraries : holdings: The open fields" which would also
> be useful in bookmarks).
> 
> To break it down a bit at the structured data level, in this case the
> schema.org/seller property is listed as "IHR OPEN ACCESS" Normally
> that would link to or otherwise identify the library that is offering
> the resource; I'm not sure if that's a local customization treating
> shelving locations as libraries or something I messed up in my
> schema.org work for VuFind. For shelving locations, per
> http://www.w3.org/community/schemabibex/wiki/Holdings_via_Offer we
> should map them to schema.org/availableAtOrFrom
> 
> Even with a full string like "Senate House Libraries" for the
> schema.org/seller property, however, that might not be enough for the
> search engine (I have to imagine that there are other "Senate House
> Libraries" in the world, but of course I could be entirely wrong!).
> Over in Evergreen, I have put together a branch that publishes one web
> page per library that includes structured data such as the physical
> address, phone number, email address, opening hours, etc; then we link
> from the schema.org/seller property to that page. Theoretically, this
> should give plenty of signals to the search engines; they will be able
> to coordinate the location of the searcher with the library, for
> example. It remains to be seen if this will actually impact search
> results, but giving them more data seems like it can only be a good
> thing... and having that library info all in a single page should make
> it useful to humans, too :)
> 
> If there's interest in taking things further with VuFind, I'm
> interested as well!
> 
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
> _______________________________________________
> Vufind-tech mailing list
> Vufind-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vufind-tech
> 
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today. 
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
> _______________________________________________
> Vufind-tech mailing list
> Vufind-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vufind-tech
 
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Vufind-tech mailing list
Vufind-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vufind-tech