Content-type: multipart/alternative; boundary="Boundary_(ID_lv9+NW6O1ljRVI603vXx1Q)" --Boundary_(ID_lv9+NW6O1ljRVI603vXx1Q) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable Any text that you put in the $u subfield will be treated by VuFind as a lin= k, so I would advise against putting a fake string in there. The whole poi= nt of an 856 field is to provide a link, so building an 856 field that only= contains a $z note is technically illegal usage, at least according to the= Library of Congress guidelines (see http://www.loc.gov/marc/856guide.html)= . Shouldn't both fields include links, one for on-campus access, one for o= ff-campus access? If not, what would you like VuFind to do when it encount= ers the 856 field without the URL? You might be able to customize the beha= vior to your liking by modifying the getURLs record driver method and relat= ed templates, but it still seems like you're going to need to find a way to= inject $u values into 856 fields that lack them.... Good luck, and let me know if you need further assistance! - Demian From: Altaf Mahmud [mailto:altaf.mahmud@gmail.com] Sent: Tuesday, November 30, 2010 9:18 AM To: fapeng@notes.cc.sunysb.edu Cc: vufind-tech@lists.sourceforge.net; vufind-general@lists.sourceforge.net Subject: Re: [VuFind-Tech] Format display of electronic journals Library science is a new field for me to explore, my apologies if that soun= ds novice. Just want to know, can I put only a text there instead of a URL = link? On Mon, Nov 29, 2010 at 8:20 PM, > wrote: I think you may need to have $$u in the second 856 to display it. ************ Fang Peng Library Information System/DoIT Stony Brook University ************************ [cid:image001.gif@01CB9070.4F6A8930]Altaf Mahmud ---11/29/2010 04:38:46 AM-= --Many thanks, Eoghan. What I did, move this piece of code at the end of th= e script, so for 'Electroni From: Altaf Mahmud > To: Eoghan =D3 Carrag=E1in > Cc: vufind-tech@lists.sourceforge.net, vufind-general@lists.sourceforge.net Date: 11/29/2010 04:38 AM Subject: Re: [VuFind-Tech] Format display of electronic journals ________________________________ Many thanks, Eoghan. What I did, move this piece of code at the end of the = script, so for 'Electronic' it will be displayed if no other matches. That = would fulfill my needs. Now, I want to add another field in '856' in my mar= c record like this: =3D856 40$zOnline version [2009-present]: Oxford University Press$uhttp://= abbs.oxfordjournals.org/ =3D856 40$zOn-campus access But, the VuFind only picking up the first one, second one is not in display= . I want to include this On-campus/Off-campus access at the main search vie= w. How can I add something in repeating fields? 2010/11/29 Eoghan =D3 Carrag=E1in > Hi, If you look at /index_script/format.bsh again, notice that one of the first= places it looks for format information is 245$h: // check if there's an h in the 245 if (title !=3D null) { if (title.getSubfield('h') !=3D null){ if (title.getSubfield('h').getData().toLowerCase().contains("[e= lectronic resource]")) { result.add("Electronic"); return result; } } } If the script finds "[electronic resource]" there (as in your case), it ret= urns "Electronic" and doesn't look any further. You'll have to modify the s= cript so that it collects both format values before returning the result. B= y the way, in order to use /index_script/format.bsh you need to uncomment t= his line in /marc_local.properties, otherwise SolrMarc will ignore your mod= ificaitons: "#format =3D script(format.bsh), getFormat, format_map.properti= es". If you want the facet to display as "Online" rather than "Electronic",= modify /translation_maps/format_map.properties so that "Electronic" is map= ped to "Online". 245$h is not stored in the solr title field by default, so it is not displa= yed as part of the title. One way to display it would be to add $h in marc.= properties or marc_local.properties, i.e."title =3D 245abh, first". However= , this will mean that "electronic" "resource" are indexed as with any other= word in the title, so there is a potential for some skewing of search resu= lts. This could also be handled more precisely with some modificaiton to /w= eb/RecordDrivers/IndexRecord.php and /web/RecordDrivers/MarcRecord.php, but= this is more complicated. Hope this helps. Eoghan On 28 November 2010 19:13, Altaf Mahmud > wrote: Hi, I am uploading some electronic journals in marc format to VuFind. One of my= sample data is like this: =3DLDR 00000cas\a2200000\a\4500 =3D001 AAL001 =3D008 101125s9999\\\\xx\r\poo\\\\\000\0\eng\d =3D022 0\$a1745-7270 =3D245 00$h[electronic resource]$aActa Biocimica et Biophysica =3D260 \\$aOxford Journals OUP =3D310 \\$a12 no. a year =3D538 \\$aMode of access: Internet =3D650 \0$aLife sciences =3D856 40$zFulltext available from Oxford University Press :2009-present$= uhttp://abbs.oxfordjournals.org/ After uploading, it shows the format 'Electronic'. But I want to display it= in 'Journal' format with 'Online'. Though my marc data have been prepared = to show that, but doesn't seem to work. Do I need to make any change inside= VuFind? Moreover, in case of any electronic resource, it should be mention= ed just after the title, like [electronic resource]. It's not showing also.= I also looked at ../index_script/format.bsh file which is used to determin= e the format of a record, but couldn't figure out the problem. Any help? -- Altaf Mahmud System Programmer Ayesha Abed Library BRAC University Bangladesh. ---------------------------------------------------------------------------= --- Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Vufind-tech mailing list Vufind-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vufind-tech -- Altaf Mahmud System Programmer Ayesha Abed Library BRAC University Bangladesh. ---------------------------------------------------------------------------= --- Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev_______________________________________= ________ Vufind-tech mailing list Vufind-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vufind-tech -- Altaf Mahmud System Programmer Ayesha Abed Library BRAC University Bangladesh. --Boundary_(ID_lv9+NW6O1ljRVI603vXx1Q) Content-type: text/html; charset=iso-8859-1 Content-transfer-encoding: quoted-printable

Any text that you put in the $u subfield will be treated by VuFind as a link, so I would advise against putting a fake string in there.= =A0 The whole point of an 856 field is to provide a link, so building an 856 field = that only contains a $z note is technically illegal usage, at least according to= the Library of Congress guidelines (see http://www.loc.gov/marc/856g= uide.html).=A0 Shouldn’t both fields include links, one for on-campus access, one fo= r off-campus access?=A0 If not, what would you like VuFind to do when it enco= unters the 856 field without the URL?=A0 You might be able to customize the behavi= or to your liking by modifying the getURLs record driver method and related templates, but it still seems like you’re going to need to find a way= to inject $u values into 856 fields that lack them….

 

Good luck, and let me know if you need further assistance!

 

- Demian

 

From: Altaf Mahmud [mailto:altaf.mahmud@gmail.com]
Sent: Tuesday, November 30, 2010 9:18 AM
To: fapeng@notes.cc.sunysb.edu
Cc: vufind-tech@lists.sourceforge.net; vufind-general@lists.sourceforge.net
Subject: Re: [VuFind-Tech] Format display of electronic journals

 

Library science is a ne= w field for me to explore, my apologies if that sounds novice. Just want to know, c= an I put only a text there instead of a URL link?

On Mon, Nov 29, 2010 at 8:20 PM, <fapeng@notes.cc.sunysb.edu&g= t; wrote:

I thin= k you may need to have $$u in the second 856 to display it.


************
Fang Peng
Library Information System/DoIT
Stony Brook University
************************


3D"InactiveA= ltaf Mahmud ---11/29/2010 04:38:46 AM---Many thanks, Eoghan. What I did, move th= is piece of code at the end of the script, so for 'Electroni

From: Alt= af Mahmud <alta= f.mahmud@gmail.com>
To: Eog= han =D3 Carrag=E1in <eoghan.ocarragain@gmail.com>
Cc: vufind-= tech@lists.sourceforge.net, v= ufind-general@lists.sourceforge.net
Date: 11/= 29/2010 04:38 AM
Subject: Re: [VuFind-Tech] Format display of electronic journals





Many thanks, Eoghan. What I did, move this piece of code at the end of the script, so for 'Electronic' it will be displayed if no other matches. That would fulfill my needs. Now, I want to add another field in '856' in my mar= c record like this:

=3D856  40$zOnline version [2009-present]: Oxford University Press$uht= tp://abbs.oxfordjourn= als.org/
=3D856  40$zOn-campus access

But, the VuFind only picking up the first one, second one is not in display= . I want to include this On-campus/Off-campus access at the main search view. H= ow can I add something in repeating fields?

2010/11/29 Eoghan =D3 Carrag=E1in <eoghan.ocarragain@gmail.com>

Hi,
If you look at /index_script/format.bsh again, notice that one of the first places it looks for format information is 245$h:
    // check if there's an h in the 245
    if (title !=3D null) {
        if (title.getSubfield('h') !=3D null)= {
            if (title.getSubfield('h').getData().toLowerCase().contains("[electronic resource]")) {
                result.add("Electronic");
                return result;
            }
        }
    }

If the script finds "[electronic resource]" there (as in your cas= e), it returns "Electronic" and doesn't look any further. You'll have= to modify the script so that it collects both format values before returning t= he result. By the way, in order to use /index_script/format.bsh you need to uncomment this line in /marc_local.properties, otherwise SolrMarc will igno= re your modificaitons: "#format =3D script(format.bsh), getFormat, format_map.properties". If you want the facet to display as "Online" rather than "Electronic", modify /translation_maps/format_map.properties so that "Electronic" is mapped to "Online".

245$h is not stored in the solr title field by default, so it is not displa= yed as part of the title. One way to display it would be to add $h in marc.properties or marc_local.properties, i.e."title =3D 245abh, first". However, this will mean that "electronic" "resource" are indexed as with any other word in the title, so th= ere is a potential for some skewing of search results. This could also be handl= ed more precisely with some modificaiton to /web/RecordDrivers/IndexRecord.php= and /web/RecordDrivers/MarcRecord.php, but this is more complicated.

Hope this helps.
Eoghan


On 28 November 2010 19:13, Altaf Mahmud <altaf.mahmud@gmail= .com> wrote:

Hi,

I am uploading some electronic journals in marc format to VuFind. One of my sample data is like this:

=3DLDR  00000cas\a2200000\a\4500
=3D001  AAL001
=3D008  101125s9999\\\\xx\r\poo\\\\\000\0\eng\d
=3D022  0\$a1745-7270
=3D245  00$h[electronic resource]$aActa Biocimica et Biophysica
=3D260  \\$aOxford Journals OUP
=3D310  \\$a12 no. a year
=3D538  \\$aMode of access: Internet
=3D650  \0$aLife sciences
=3D856  40$zFulltext  available from Oxford University Press :2009-present$uhttp://abbs.oxfordjournals.org/

After uploading, it shows the format 'Electronic'. But I want to display it= in 'Journal' format with 'Online'. Though my marc data have been prepared to s= how that, but doesn't seem to work. Do I need to make any change inside VuFind? Moreover, in case of any electronic resource, it should be mentioned just a= fter the title, like [electronic resource]. It's not showing also. I also looked= at ../index_script/format.bsh file which is used to determine the format of a record, but couldn't figure out the problem. Any help?



--
Altaf Mahmud
System Programmer
Ayesha Abed Library
BRAC University
Bangladesh.


---------------------------------------------------------------------------= ---
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by<= br> optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.<= u>
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Vufind-tech mailing list
Vufind-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vufind-tech<= /a>




--
Altaf Mahmud
System Programmer
Ayesha Abed Library
BRAC University
Bangladesh.
--------------------------------------= ----------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500= !
Tap into the largest installed PC base & get more eyes on your game= by
optimizing for Intel(R) Graphics Technology. Get started today with the=
Intel(R) Software Partner Program. Five $500 cash prizes are up for gra= bs.
http= ://p.sf.net/sfu/intelisp-dev2dev_______________________________________= ________
Vufind-tech mailing list
= Vufind-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vufind-tech<= /a>




--
Altaf Mahmud
System Programmer
Ayesha Abed Library
BRAC University
Bangladesh.

--Boundary_(ID_lv9+NW6O1ljRVI603vXx1Q)--