Quantcast

(no subject)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

(no subject)

P. S. Mukhopadhyay
I am trying to to fine tune "electric resource" as browsing classifier in the front page of VuFind.

Logic is as follows:

1. enter 245 $h as [electronic resource-en] for English language resources and  enter 245 $h as [electronic resource-bn] for Bengali language resources;

2. Tinkering of format.bsh (at local folder) as:

// check if there's an h in the 245
    if (title != null) {
        if (title.getSubfield('h') != null){
            if (title.getSubfield('h').getData().toLowerCase().contains("[electronic resource-en]")) {
                result.add("Electronic-en");
            if (title.getSubfield('h').getData().toLowerCase().contains("[electronic resource-bn]")) {
                result.add("Electronic-bn");
                return result;
            }
        }
    }

** to store different values for harvested resources.

3. Tuning format_map.properties:

Electronic-en       = Electronic Resources (English)
Electronic-bn       = Electronic Resources (Bengali)

But this approch is not working... What went wrong?


--
-----------------------------------------------------------------------
Dr. Parthasarathi Mukhopadhyay
Associate Professor, Department of Library and Information Science, University of Kalyani,
Kalyani - 741 235 (WB), India
-----------------------------------------------------------------------

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Vufind-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-tech
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: (no subject)

Demian Katz

Did you uncomment the format line in marc_local.properties to use format.bsh instead of the built-in getFormat method? By default, SolrMarc doesn’t use the BeanShell version of the logic – it only does so if you specify in the import rules.

 

If that does not help, or if you need more details, please let me know.

 

- Demian

 

From: P. S. Mukhopadhyay [mailto:[hidden email]]
Sent: Sunday, May 14, 2017 12:20 PM
To: vufind-tech
Subject: [VuFind-Tech] (no subject)

 

I am trying to to fine tune "electric resource" as browsing classifier in the front page of VuFind.

Logic is as follows:

1. enter 245 $h as [electronic resource-en] for English language resources and  enter 245 $h as [electronic resource-bn] for Bengali language resources;

2. Tinkering of format.bsh (at local folder) as:

// check if there's an h in the 245
    if (title != null) {
        if (title.getSubfield('h') != null){
            if (title.getSubfield('h').getData().toLowerCase().contains("[electronic resource-en]")) {
                result.add("Electronic-en");
            if (title.getSubfield('h').getData().toLowerCase().contains("[electronic resource-bn]")) {
                result.add("Electronic-bn");
                return result;
            }
        }
    }

** to store different values for harvested resources.

3. Tuning format_map.properties:

Electronic-en       = Electronic Resources (English)
Electronic-bn       = Electronic Resources (Bengali)

But this approch is not working... What went wrong?

 


--

-----------------------------------------------------------------------
Dr. Parthasarathi Mukhopadhyay
Associate Professor, Department of Library and Information Science, University of Kalyani,
Kalyani - 741 235 (WB), India
-----------------------------------------------------------------------


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Vufind-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-tech
Loading...