Tech Blog

Disable date threshold check on journal level links from Summon

  • Description

Source parser creation / customization.

  • By default, SFX doesn’t show fulltext link, when there is no date to be compared with date threshold
  • It is possible to to use sfx.ingore_date_threshold=1 as parameter (it is used on A-Z List)
  • It is also possible to specify this behaviour for specific sources – such as Summon

 

  • Author: Milan Janíček
  • Institution: National Library of Technology, CZE
  • Year: 2013
  • License: BSD style
  • Short description: Use, modification and distribution of the code are permitted provided the copyright notice, list of conditions and disclaimer appear in all related material.
  • Skill required for using this code: Basic

State

In Development

Programming language

Perl

Software requirements

SFX 4
Summon with OpenURL 1.0 linking set

Download

Attach the code file(s) to this page and link to them here.
Page attachments management can be reached from the top-right menu – ‘attachments’ after page save.

Working example

customized:
http://sfx.techlib.cz/sfxlcl41?url_ver=Z39.88-2004&issn=0001-3072&rfr_id=info:sid/summon.serialssolutions.com
vs. original
http://sfx.techlib.cz/sfxlcl41?url_ver=Z39.88-2004&issn=0001-3072

Installation instructions

        1. download parser file (Summon.pm)
        2. configure local source
               a. config (summon.config)
               b. dir (source_local_v1_0.dir)
        3. set up source in sfxadmin

1. download parser file Summon.pm to
/exlibris/sfx_ver/sfx4_1/sfxlcl41/lib/Parsers/SourceParser/OpenURL_1_0/Summon.pm
file contains:

package Parsers::SourceParser::OpenURL_1_0::Summon; 
use Parsers::SourceParser::OpenURL_1_0::DEFAULT; 
@ISA = qw(Parsers::SourceParser::OpenURL_1_0::DEFAULT);
 
sub     parsePrivateID { 
    my ($this,$ctx_obj,$args,$pid) = @_;
    $ctx_obj->set('sfx.ignore_date_threshold','1') unless ($ctx_obj->get('rft.date') or $ctx_obj->get('rft.year')); }1;

2a. download configuration file summon.config to

  • /exlibris/sfx_ver/sfx4_1/sfxlcl41/config/source/OpenURL_1_0/summon.config

file contains:

# 
# Summon source configuration 
# 

Section "source" 
"SUMMON" 
EndSection 
Section "parsePrivateID" 
"Parsers::SourceParser::OpenURL_1_0::Summon" 
EndSection

2b. modify configuration file

  • /exlibris/sfx_ver/sfx4_1/sfxlcl41/config/source/source_local_v1_0.dir

to contain following (only last line is important;-):

################################################################################ 
#                                                                               # 
# Local source configuration goes here 
# 
# Syntax:                                                                       # 
#                                                                               # 
# <serviceID regex>  <configuration file> 
# 
################################################################################

summon.serialssolutions.com*    config/source/OpenURL_1_0/summon.config

3. configure Summon source in sfxadmin

  • go to KBManager->Sources
  • click Add new source
    • Source name – Summon (or anything else you like 
    • Source ID – SUMMON (this has to be same as in config file!!)
    • Description – your description
    • Show Availability – check
  • add services to your new source
    • click on ‘S’ icon
    • add ALL(!!) services you want to have shown when Summon is source

You may test your new configuration on link simmilar to this:
http://MY_SFX_INSTANCE/?url_ver=Z39.88-2004&rfr_id=info:sid/summon.serialssolutions.com&issn=SOME_ISSN_I_HAVE

Known issues

None so far 😉 .. it is not much more than specific example of SFX configuration…

Page Attachments

Summon.pm

summon.config

source_local_v1_0.dir

Leave a Reply