예제 #1
0
static void
output_jstor( FILE *fp, fields *info, int format_opts )
{
    int js = fields_find( info, "JSTOR", -1 );
    if ( js!=-1 ) {
        newstr jstor;
        newstr_init( &jstor );
        jstor_to_url( info, js, "URL", &jstor );
        if ( jstor.len )
            output_element( fp, "url", jstor.data, format_opts );
        newstr_free( &jstor );
    }
}
예제 #2
0
static void
output_jstor( FILE *fp, fields *f )
{
	newstr s;
	int i;
	newstr_init( &s );
	for ( i=0; i<fields_num( f ); ++i ) {
		if ( !fields_match_tag( f, i, "JSTOR" ) ) continue;
		jstor_to_url( f, i, "URL", &s );
		if ( s.len )
			fprintf( fp, "UR  - %s\n", s.data );
	}
	newstr_free( &s );
}
예제 #3
0
static void
output_jstor( FILE *fp, fields *f )
{
	newstr jstor_url;
	int i, n;

	newstr_init( &jstor_url );

	n = fields_num( f );
	for ( i=0; i<n; ++i ) {
		if ( !fields_match_tag( f, i, "JSTOR" ) ) continue;
		jstor_to_url( f, i, "URL", &jstor_url );
		if ( jstor_url.len )
			fprintf( fp, "%%U %s\n", jstor_url.data );
	}

	newstr_free( &jstor_url );
}