blacklight 3.0pre1 → 3.0pre2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitmodules +0 -6
- data/README.rdoc +94 -87
- data/blacklight.gemspec +1 -1
- data/config/routes.rb +1 -1
- data/lib/blacklight.rb +2 -2
- data/lib/blacklight/catalog.rb +10 -12
- data/lib/blacklight/controller.rb +2 -2
- data/lib/blacklight/engine.rb +5 -2
- data/lib/blacklight/solr/document.rb +1 -1
- data/lib/blacklight/solr/document/marc.rb +1 -16
- data/lib/blacklight/solr_helper.rb +43 -14
- data/lib/blacklight/version.rb +1 -1
- data/lib/generators/blacklight/assets_generator.rb +25 -0
- data/lib/generators/blacklight/blacklight_generator.rb +16 -1
- data/lib/generators/blacklight/jetty_generator.rb +101 -0
- data/lib/generators/blacklight/solr_conf_generator.rb +25 -0
- data/lib/generators/blacklight/templates/catalog_controller.rb +0 -1
- data/lib/generators/blacklight/templates/config/solr.yml +14 -2
- data/lib/generators/blacklight/templates/public/images/{blacklight/bg.png → bg.png} +0 -0
- data/lib/generators/blacklight/templates/public/images/{blacklight/border.png → border.png} +0 -0
- data/lib/generators/blacklight/templates/public/images/{blacklight/bul_sq_gry.gif → bul_sq_gry.gif} +0 -0
- data/lib/generators/blacklight/templates/public/images/{blacklight/checkmark.gif → checkmark.gif} +0 -0
- data/lib/generators/blacklight/templates/public/images/{blacklight/logo.png → logo.png} +0 -0
- data/lib/generators/blacklight/templates/public/images/{blacklight/magnifying_glass.gif → magnifying_glass.gif} +0 -0
- data/lib/generators/blacklight/templates/public/images/{blacklight/remove.gif → remove.gif} +0 -0
- data/lib/generators/blacklight/templates/public/images/{blacklight/separator.gif → separator.gif} +0 -0
- data/lib/generators/blacklight/templates/public/images/{blacklight/start_over.gif → start_over.gif} +0 -0
- data/lib/generators/blacklight/templates/public/javascripts/blacklight.js +5 -0
- data/lib/generators/blacklight/templates/public/stylesheets/blacklight.css +9 -3
- data/lib/generators/blacklight/templates/solr_conf/schema.xml +339 -0
- data/lib/generators/blacklight/templates/solr_conf/solrconfig.xml +578 -0
- data/lib/railties/all_tests.rake +11 -0
- data/lib/railties/blacklight.rake +0 -52
- data/lib/railties/blacklight_cucumber.rake +125 -0
- data/lib/railties/blacklight_rspec.rake +128 -0
- data/lib/railties/{test_solr_server.rb → jetty_solr_server.rb} +22 -45
- data/lib/railties/solr_marc.rake +24 -5
- data/test_support/.rspec +1 -0
- data/test_support/data/test_data.utf8.mrc +1 -0
- data/test_support/features/bookmarks.feature +88 -0
- data/test_support/features/did_you_mean.feature +129 -0
- data/test_support/features/folder.feature +67 -0
- data/test_support/features/librarian_view.feature +17 -0
- data/test_support/features/record_view.feature +34 -0
- data/test_support/features/saved_searches.feature +49 -0
- data/test_support/features/search.feature +86 -0
- data/test_support/features/search_filters.feature +121 -0
- data/test_support/features/search_history.feature +95 -0
- data/test_support/features/search_results.feature +61 -0
- data/test_support/features/search_sort.feature +29 -0
- data/test_support/features/step_definitions/bookmarks_steps.rb +5 -0
- data/test_support/features/step_definitions/error_steps.rb +4 -0
- data/test_support/features/step_definitions/folder_steps.rb +26 -0
- data/test_support/features/step_definitions/general_steps.rb +49 -0
- data/test_support/features/step_definitions/record_view_steps.rb +11 -0
- data/test_support/features/step_definitions/saved_searches_steps.rb +21 -0
- data/test_support/features/step_definitions/search_facets_steps.rb +28 -0
- data/test_support/features/step_definitions/search_history_steps.rb +8 -0
- data/test_support/features/step_definitions/search_result_steps.rb +113 -0
- data/test_support/features/step_definitions/search_steps.rb +102 -0
- data/test_support/features/step_definitions/user_steps.rb +4 -0
- data/test_support/features/step_definitions/web_steps.rb +211 -0
- data/test_support/features/support/env.rb +49 -0
- data/test_support/features/support/paths.rb +55 -0
- data/test_support/features/support/selectors.rb +39 -0
- data/test_support/features/unapi.feature +30 -0
- data/test_support/spec/controllers/application_controller_spec.rb +22 -0
- data/test_support/spec/controllers/catalog_controller_spec.rb +480 -0
- data/test_support/spec/controllers/folder_controller_spec.rb +40 -0
- data/test_support/spec/controllers/search_history_controller_spec.rb +45 -0
- data/test_support/spec/data/sample_docs.yml +655 -0
- data/test_support/spec/data/test_data.utf8.mrc +1 -0
- data/test_support/spec/helpers/blacklight_helper_spec.rb +482 -0
- data/test_support/spec/helpers/hash_as_hidden_fields_spec.rb +23 -0
- data/test_support/spec/helpers/render_constraints_helper_spec.rb +64 -0
- data/test_support/spec/helpers/search_history_helper_spec.rb +11 -0
- data/test_support/spec/helpers/solr_helper_spec.rb +873 -0
- data/test_support/spec/lib/blacklight_email_spec.rb +23 -0
- data/test_support/spec/lib/blacklight_sms_spec.rb +23 -0
- data/test_support/spec/lib/blacklight_solr_document_dublin_core_spec.rb +41 -0
- data/test_support/spec/lib/blacklight_solr_document_marc_spec.rb +88 -0
- data/test_support/spec/lib/blacklight_solr_document_spec.rb +173 -0
- data/test_support/spec/lib/blacklight_spec.rb +39 -0
- data/test_support/spec/lib/configurable_spec.rb +97 -0
- data/test_support/spec/lib/facet_paginator_spec.rb +93 -0
- data/test_support/spec/lib/marc_export_spec.rb +444 -0
- data/test_support/spec/lib/search_fields_spec.rb +105 -0
- data/test_support/spec/lib/tasks/blacklight_task_spec.rb +21 -0
- data/test_support/spec/lib/tasks/solr_marc_task_spec.rb +59 -0
- data/test_support/spec/models/bookmark_spec.rb +37 -0
- data/test_support/spec/models/record_mailer_spec.rb +67 -0
- data/test_support/spec/models/search_spec.rb +55 -0
- data/test_support/spec/models/solr_docment_spec.rb +111 -0
- data/test_support/spec/rcov.opts +3 -0
- data/test_support/spec/spec.opts +4 -0
- data/test_support/spec/spec_helper.rb +38 -0
- data/test_support/spec/support/action_controller.rb +42 -0
- data/test_support/spec/support/assert_difference.rb +16 -0
- data/test_support/spec/support/include_text.rb +20 -0
- data/test_support/spec/views/catalog/_constraints_element.html.erb_spec.rb +59 -0
- data/test_support/spec/views/catalog/_document_list.html.erb_spec.rb +8 -0
- data/test_support/spec/views/catalog/_facets.html.erb_spec.rb +182 -0
- data/test_support/spec/views/catalog/_index_partials/_default.erb_spec.rb +70 -0
- data/test_support/spec/views/catalog/_show_partials/_default.html.erb_spec.rb +70 -0
- data/test_support/spec/views/catalog/index.atom.builder_spec.rb +141 -0
- data/test_support/spec/views/catalog/show.html.erb_spec.rb +100 -0
- data/test_support/spec/views/catalog/unapi.xml.builder_spec.rb +45 -0
- metadata +95 -98
- data/lib/blacklight/marc.rb +0 -46
- data/lib/blacklight/marc/citation.rb +0 -251
- data/lib/railties/cucumber.rake +0 -53
- data/lib/railties/rspec.rake +0 -188
- data/spec/helpers/catalog_helper_spec.rb +0 -111
- data/spec/views/catalog/_sms_form.html.erb_spec.rb +0 -19
@@ -0,0 +1 @@
|
|
1
|
+
00799cam a2200241 a 4500001001300000003000400013005001700017008004100034010001700075025002500092040001800117041001300135042001000148050002600158100003000184245009200214260003900306300002100345546001300366520010400379700003700483700003700520 00282214 DLC20090120022042.0000417s1998 pk 000 0 urdo a 00282214 aP-U-00282214; 05; 06 aDLCcDLCdDLC1 aurdhsnd alcode00aPK2788.9.A9bF55 19981 aAyaz, Shaikh,d1923-1997.10aFikr-i Ayāz /cmurattibīn, Āṣif Farruk̲h̲ī, Shāh Muḥammad Pīrzādah. aKarācī :bDāniyāl,c[1998] a375 p. ;c23 cm. aIn Urdu. aSelected poems and articles from the works of renowned Sindhi poet; chiefly translated from Sindhi.1 aFarruk̲h̲ī, Āṣif,d1959-1 aPīrzādah, Shāh Muḥammad.00778cam a22002417a 4500001001300000003000400013005001700017008004100034010001700075025002100092040001800113041001300131042001000144050002500154100003000179245008500209260005000294300002100344546001300365500002800378520008900406504004100495 00282371 DLC20090120021204.0000509s1986 pk 000 0 urdo a 00282371 aP-U-00282371; 08 aDLCcDLCdDLC1 aurdhsnd alcode00aMLCME 2002/02660 (D)1 aAyaz, Shaikh,d1923-1997.10aSāhivāl jail kī ḍāʼirī /cShaik̲h̲ Ayāz; tarjumah, Kiran Singh. aKarācī :bMaktabah-yi Dāniyāl,c1986. a232 p. ;c23 cm. aIn Urdu. aTranslated from Sindhi. aAuthor's memoirs during his imprisonment in Sahiwal District jail during late 1960s. aIncludes bibliographical references.01988cam a2200421 a 4500001001300000003000400013005001700017008004100034010001700075020001500092035002600107040002700133042002100160043001200181050002700193066001100220100004400231245019600275246007800471250002400549260004700573300002100620440003400641504005100675600005700726610006900783600007000852651004100922700002800963880005100991880022301042880003301265880007601298880004601374880005101420880005101471880004401522 00313831 DLC20090121100001.0010611s2000 ir b 001 0dper d a 00313831 a9645625963 a(CStRLIN)DCLN01-B3014 aMHcMHdCStRLINdDLC-R alccopycatalcode aa-ir---00aDS318.84.N87bN87 2000 c(3c(41 6880-01aNūrī, ʻAbd Allāh,d1949-106880-02aNaqdī barā-yi tamām-i fuṣūl :bguft va gū-yi Akbar Ganjī bā ʻAbd Allāh Nūrī : bih payvast-i matn-i istīz̤āḥ-i ʻAbd Allāh Nūrī dar Majlis-i panjum.15aCritique for all seasons :bAkbar Ganji's conversation with Abdullah Nuri 6880-03aChāp-i 1. 6880-04aTihrān :bṬarḥ-i Naw,c2000. a245 p. ;c22 cm. 06880-05aFarhang-i ʻumūmī aIncludes bibliographical references and index.106880-06aNūrī, ʻAbd Allāh,d1949-vInterviews.10aIran.bVizārat-i KishvarxOfficials and employeesvInterviews.106880-07aNūrī, ʻAbd Allāh,d1949-vTrials, litigation, etc. 0aIranxPolitics and governmenty1997-1 6880-08aGanjī, Akbar.1 6100-01/(3/raنورى، عبد الله.106245-02/(3/raنقدى براى تمام فصول :bگفت و گوى اکبر گنجى با عبد الله نورى : به پيوست متن استيضاح عبد الله نورى در مجلس پنجم. 6250-03/(4/raچاپ 1. 6260-04/(3/raتهران :bطرح نو،c2000. 06440-05/(3/raفرهنگ عمومى146600-06/(3/raنورى، عبد الله.146600-07/(3/raنورى، عبد الله.1 6700-08/(3/raگنجى، اكبر.00956dam a22002655a 4500001001300000003000400013005001700017008004100034010001700075035002600092040002200118066000700140100003600147245006700183260006200250300002100312600005100333650003400384650003100418650002900449880003300478880007100511880005500582880005300637 00314247 DLC20090126095911.0000214s1997 ja 000 0 jpn a 00314247 a(CStRLIN)DCLP00-B1931 aDLC-RcDLC-RdDLC c$11 6880-01aYoshida, Hajime,d1934-106880-02aKubo Sakae "Kazanbaichi" o yomu /cYoshida Hajime cho. 6880-03aTōkyō :bHōsei Daigaku Shuppankyoku,c1997. a480 p. ;c19 cm.106880-04aKubo, Sakae,d1901-1958.tKazanbaichi. 0aJapanese dramay20th century. 0aPolitical plays, Japanese. 0aTheaterzJapanxHistory.1 6100-01/$1a吉田一,d1934-106245-02/$1a久保栄 「火山灰地」 を読む /c吉田一著. 6260-03/$1a東京 :b法政大学出版局,c1997.146600-04/$1a久保栄,d1901-1958.t火山灰地.00987cam a22002531 4500001001300000003000400013005001700017008004100034010001700075035002000092040002500112043001200137050001700149100006300166245004100229260004300270300002700313500011300340504010800453505004500561651002500606710004900631710005300680 43037890 DLC20090126171234.0810731m19419999ru b b 000 0 ruso a 43037890 a(OCoLC)28783996 aDLCcICUdOCoLCdDLC ae-ur-kz00aDK861.K3bV51 aVi︠a︡tkin, M. P.q(Mikhail Porfirʹevich),d1895-1967.10aOcherki po istorii Kazakhskoĭ SSR. a[Moskva],bOgiz, Gospolitizdat,c1941- av.bfold. map.c20 cm. aAt head of title: Akademii︠a︡ nauk SSSR. Institut istorii i Kazakhstanskiĭ filial. M. Vi︠a︡tkin. a"Obzor literatury i istochnikov": v. 1, p. 5-[19]. "Bibliograficheskiĭ ukazatelʹ": v. 1, p. 356-364.2 at. 1. S drevneĭshikh vremen po 1870 g. 0aKazakhstanxHistory.2 aInstitut istorii (Akademii︠a︡ nauk SSSR)2 aAkademii︠a︡ nauk Kazakhskoĭ SSR, Alma Ata.00955cam a22002411 4500001001300000003000400013005001700017008004100034010001700075035002000092040002100112042001200133043001200145050001600157110001800173240012800191245021900319260004900538300001900587490005000606700002400656710003300680 53029833 DLC20090126171326.0860911s1952 ru f000 0 rus a 53029833 a(OCoLC)14207259 aDLCcCUdCUdDLC apremarc aa-kn---00aKPC13b19521 aKorea (North)10aLaws, etc. (Konstitut︠s︡ii︠a︡ i osnovnye zakonodatelʹnye akty Koreĭskoĭ Narodno-Demokraticheskoĭ Respubliki)10aKonstitut︠s︡ii︠a︡ i osnovnye zakonodatelʹnye akty Koreĭskoĭ Narodno-Demokraticheskoĭ Respubliki.cPerevod s koreĭskogo I︠U︡.N. Mazura i Khan Dyk Pona. Pod red. i s vstup. statʹeĭ G. Tavrova. aMoskva,bIzd-vo inostrannoĭ lit-ry,c1952. a396 p.c21 cm.0 aZakonodatelʹstvo stran narodnoĭ demokratii1 aMazur, I︠U︡. N.1 aKorea (North)tConstitution.01062cam a2200301 a 4500001001300000003000400013005001700017008004100034010001700075035002700092040005400119043001200173050002500185066000700210130005000217245006600267260004200333300002100375490003500396651005700431651002200488700003100510880004800541880005800589880004300647880003600690880003400726 77826928 DLC20090122103906.0070816s1976 ko 000 0ckor a 77826928 a(CStRLIN)DCLP07-B11425 aDLCc*BZV*dMH-HYdOCoLCdCUdCStRLINdDLC-RdDLC aa-kr---00aDS912.38b.K982 1976 c$10 6880-01aKoryŏsa.pYŏlchŏn.kSelections.106880-02aKoryŏ inmul yŏlchŏn /cYi Min-su pʻyŏnyŏk. 6880-03aSŏul :bSŏmundang,c1976. a255 p. ;c19 cm.0 6880-04aSŏmun munʼgo ;v237 0aKoreaxHistoryyKoryŏ period, 935-1392vBiography. 0aKoreavBiography.1 6880-05aYi, Min-su,d1916-0 6130-01/$1a高麗史.p列傅.kSelections.106245-02/$1a高麗 人物 列傅 /c李 民樹 編譯. 6260-03/$1a서울 :b瑞文堂,c1976.0 6490-04/$1a瑞文 文庫 ;v2371 6700-05/$1a李 民樹,d1916-00813cam a2200217 i 4500001001300000003000400013005001700017008004100034010001700075040001800092050001900110100003600129245006700165260013400232300002800366490004700394500006100441500001200502600002800514600005300542 78908283 DLC20090121104206.0790619s1976 ii 000 0 sano a 78908283 aDLCcDLCdDLC00aPK3799.P29bY32 aParikshit Sharma, Ogeti,d1930-10aYaśodharā-mahākāvyam /cOgeṭi Parīkṣitśarmā. aPuṇyapattanam :bŚāradā-Gaurava-Grantha-Mālā ;aHaidrābāda :bprāptisthalam O. Acyutarāmaśāstrī,c1976. a24, 128, 2 p. ;c22 cm.0 aŚāradā-gaurava-grantha-mālā ; 37 aIn Sanskrit; introductory matter in English or Sanskrit. aA poem.00aGautama BuddhavPoetry.00aYaśodharāc(Wife of Gautama Buddha)vPoetry.00729cam a2200229 i 4500001001300000003000400013005001700017008004100034010001700075020001200092040001800104043001200122050002400134100004800158245008500206260008100291300002400372500001300396500002900409650002100438650004000459 79930185 DLC20090123080110.0791203r19781950pk 000 0 urdo a 79930185 cRs10.00 aDLCcDLCdDLC aa-pk---00aHQ1745.5b.I83 19781 aIṣlāḥī, Amīn Aḥsan,d1904-1997.10aPākistānī ʻaurat dorāhe par /ctālīf Amīn Aḥsan Iṣlāḥī. aLāhaur :bMaktabah-yi Markazī Anjuman-i K̲h̲uddāmulqurʼān,c1978. a8, 174 p. ;c22 cm. aIn Urdu. aFirst published in 1950. 0aWomenzPakistan. 0aWomenzPakistanxSocial conditions.01012cam a22002657a 4500001001300000003000400013005001700017007001400034007001400048008004100062010001700103025001700120040001800137050002800155100004300183245007100226260007600297300002500373500001000398500003700408500009700445504005100542500003500593533011800628 85910001 DLC20090121023106.0heuamb---bacaheubmb---baaa860321r19851946dcu bb s001 0 sano a 85910001 aLC San A 616 aDLCcDLCdDLC00aMicrofiche 90/61328 (P)0 aNārāyaṇapaṇḍita,d17th cent.10aĀśleṣāśataka of Nārāyaṇa Paṇḍitah[microform]. aTrivandrum :bUniversity MSS. Library, University of Travancore,c1946. axii, 24 p. ;c24 cm. aPoem. aIn Sanskrit; introd. in English. a"Reprint from the Journal of the Travancore University Oriental Manuscripts Library, no. 7." aIncludes bibliographical references and index. aMaster microform held by: DLC. aMicrofiche.bWashington, D.C. :cLibrary of Congress Photoduplication Service,d1985.e1 microfiche ; 11 x 15 cm.01258cam a2200301 a 4500001001300000003000400013005001700017008004100034010001700075020001500092035002600107040001700133041001300150050002000163066000700183100003300190240002800223245015400251260004300405300002900448500004100477650003100518650003300549740002000582880005400602880022300656880007700879 86207417 DLC20090123161900.0930810s1984 is a 000 0 heb a 86207417 a9650101373 a(CStRLIN)DCLH93-B1897 aDLC-RcDLC-R1 ahebheng00aG535b.F54 1984 c(21 6880-01aFinkel, Chaim Jacob.10aJewish pirates.lHebrew106880-02aShodede-yam Yehudiyim :bsipurim mafliʼim ha-mevusasim ʻal ʻuvdot hisṭoriyot /cḤayim Yaʻaḳov Finḳel ; me-Anglit, Ofirah Rahaṭ. 6880-03aYerushalayim :bDevir,cc1984. a283 p. :bill. ;c22 cm. aTitle on t.p. verso: Jewish pirates. 0aJewish piratesvAnecdotes. 0aJewish criminalsvAnecdotes.0 aJewish pirates.1 6100-01/(2/raפינקל, חיים יעקב.106245-02/(2/raשודדי־ים יהודיים :bספורים מפליאים המבוססים על עובדות היסטוריות /cחיים יעקב פינקל ; מאנגלית, אופירה רהט. 6260-03/(2/raירושלים :bדביר,cc1984.01657cam a2200337 a 4500001001300000003000400013005001700017008004100034010001700075035002600092040002800118042001400146043002100160050002000181066001100201100004900212245015200261246010000413246005600513260007400569300005100643504003500694650004700729650004300776650003900819880005300858880014800911880010201059880005901161880009901220 87931798 DLC20090121115059.0060428m19869999ir ah b 000 0 per d a 87931798 a(CStRLIN)DCLN06-B3656 aNjPcNjPdUkLSOAdDLC-R alccopycat aa------af------00aBP44b.M88 1986 c(3c(41 6880-01aMuvaḥḥid Abṭaḥī, Ḥujjat.106880-02aĀshnāʼī bā ḥawzahʹhā-yi ʻilmīyah-ʼi Shīʻah dar ṭūl-i tārīkh /cbih qalam-i Ḥujjat Muvaḥḥid Abṭaḥī.3 6880-03aĀshnāyī bā ḥawzahʹhā-yi ʻilmīyah-ʼi Shīʻah dar ṭūl-i tārīkh306880-04aḤawzahʹhā-yi ʻilmīyah-ʼi Shīʻah 6880-05aIṣfahān :bḤawzah-i ʻIlmīyah,c1365- [1986- ] av. <1> :bill. (some col.), facsims. ;c25 cm. aBibliography: v. 1, p.451-455. 0aReligious institutionszIslamic countries. 0aShiitesxEducationzIslamic countries. 0aIslamic universities and colleges.1 6100-01/(3/raموحد ابطحى، خجة.106245-02/(3/raاشنائى با حوزههاى علميۀ شيعه در طول تاريخ /cبقلم حجة موحد ابطحى.3 6246-03/(3/raاشنايى با حوزههاى علميۀ شيعه در طول تاريخ306246-04/(3/raحوزه هاى علميۀ شيعه 6260-05/(3/raاصفهان :bحوزۀ علميه،c1365- [1986- ].00610cam a22001817a 4500001001300000003000400013005001700017008004100034010001700075040001300092050002200105100004100127245010300168246006300271260003800334300002000372653003600392 90142413 DLC20090126150928.0900409s1975 gs 000 0 geo a 90142413 aDLCcDLC00aMLCSN 96/3906 (H)1 aLomtʻatʻiże, Čola,d1879-1915.10aMrecvelobis mušakis cʻxovrebis cesi :btʻeoriul-metʻoduri narkvevi /cČola Lomtʻatʻiże.1 iTitle in colophon:aObraz zhizni rabotnika promyshlennosti aTʻbilisi :bMecʻniereba,c1975. a65 p. ;c22 cm. aIndustrial workers;alife style01106cam a2200325 a 4500001001300000003000400013005001700017008004100034010001700075020001800092035002700110040001700137043001200154050002100166066000700187110001800194240001500212245009600227250002300323260006600346300001900412650002300431700004000454700002900494880009300523880002500616880007000641880003800711880003100749 92117465 DLC20090126171556.0920805s1990 ko l 000 0 kor a 92117465 cW300000 (set) a(CStRLIN)DCLP92-B14190 aDLC-RcDLC-R aa-kn---00aKPC13b.K67 1990 c$11 aKorea (North)10aLaws, etc.106880-01aPukhan pŏmnyŏngjip /cchʻaegim pʻyŏnjip Chŏng Kyŏng-mo, Chʻoe Tal-gon. 6880-02aChaepʻan. 6880-03aSŏul Tʻŭkpyŏlsi :bTaeryuk Yŏnʼguso,c1990. a5 v. ;c27 cm. 0aLawzKorea (North)1 6880-04aChŏng, Kyŏng-mo,d1937-1 6880-05aChʻoe, Tal-gon.106245-01/$1a北韓 法令集 /c責任 編輯 鄭 慶謨, 崔 逹坤. 6250-02/$1a再版. 6260-03/$1a서울 持別市 :b大陸 研究所,c1990.1 6700-04/$1a鄭 慶謨,d1937-1 6700-05/$1a崔 逹坤.03361cam a2200493 a 4500001001300000003000400013005001700017008004100034010001700075035002600092040002900118050002800147066000700175100004800182240002800230245032000258250011500578260014900693300002300842500006800865500013400933500012101067500005601188500014601244600005901390650001601449650003601465700005601501700006701557740002901624740004801653740002801701880006101729880004301790880038601833880012902219880019502348880006602543880004702609880006902656880004402725880006202769880003602831 92828023 DLC20090122150744.0921008m19929999is 000 0 heb a 92828023 a(CStRLIN)DCLH92-B2385 aDLC-RcDLC-RdDLC-RdDLC00aBM520.88.A53bI88 1992b c(20 6880-01aIsrael Meir,cha-Kohen,d1838-1933.106880-02aMishnah berurah106880-03aSefer Mishnah berurah :bṿe-hu perush yafeh u-menupeh ʻal Shulḥan ʻarukh Oraḥ ḥayim asher ḥiber Yosef Ḳaro ... ʻim ḥidushe dinim she-hishmiṭ ha-gaʼon ... ṿe-himtsiʼam ... Mosheh Iserlish /ckol eleh ḥibarti [z.o. asafti ṿe-ʻarakhti] Yiśraʼel Meʼir b.R. Aryeh Zeʼev ha-Kohen. 6880-04aHotsaʼah ḥadashah, menuḳedet u-mefuseḳet uve-fiʻnuaḥ rashe-tevot uve-hagahah meduḳdeḳet. 6880-05a[Jerusalem? :bḥ. mo. l. ],c752-<[768]> [1992-<2007 or 2008>]e(Yerushalayim :fNidpas ʻa. y. Makhon le-hotsaʼat sefarim ʻA. L.B.) av. <1-5> ;c29 cm. aTitle on cover <v. 2-3, 5>: Sefer Mishnah berurah ha-menuḳad. aVol. 4- has ed. statement: Mahadura meyuḥedet ʻim hagahot ṿe-heʻarot "Ish matsliaḥ" la-Sefaradim ṿa-ʻadot ha-Mizraḥ. aVol. 4- published: Bene Beraḳ : "Mekhon ha-Rav Matsliaḥ" she-ʻa. y. Mosdot Yeshivat "Kise Raḥamim" Sefaradit. aIncludes text of Shulḥan ʻarukh, Oraḥ ḥayim. aIncludes Beʼer ha-Golah by Mosheh Ravḳash, Baʼer heṭev by Judah ben Simon Ashkenazi, Shaʻare teshuvah by Ḥayim Mordekhai Margaliyot.10aKaro, Joseph ben Ephraim,d1488-1575.tOraḥ ḥayim. 0aJewish law. 0aJudaismxCustoms and practices.1 6880-06aIsserles, Moses ben Israel,dca. 1525-1572.126880-07aKaro, Joseph ben Ephraim,d1488-1575.tOraḥ ḥayim.026880-08aMishnah berurah.026880-09aSefer Mishnah berurah ha-menuḳad.026880-10aIsh matsliaḥ.0 6100-01/(2/raישראל מאיר,cהכהן.106240-02/(2/raמשנה ברורה106245-03/(2/raספר משנה ברורה :bוהוא פירוש יפה ומנפה על שלחן ערוך ארח חיים אשר חבר יוסף קארו ... עם חידושי דינים שהשמיט הגאון ... והמציאם משה איסרליש /cכל אלה חיברתי [ז״א אספתי וערכתי] ישראל מאיר בר׳ אריה זאב הכהן. 6250-04/(2/raהוצאה חדשה, מנקדת ומפסקת ובפענוח ראשי־תבות ובהגהה מדקדקת. 6260-05/(2/ra[Jerusalem? :bחמו״ל,c752-<[768]> [1992-<2007 or 2008>]e(ירושלים :fנדפס ע״י מכון להוצאת ספרים ע.ל.ב.)046630-00/(2/raשלחן ערוך.pארח חיים.1 6700-06/(2/raאיסרליש, משה.126700-07/(2/raקארו, יוסף.tאורח חיים.026740-08/(2/raמשנה ברורה.026740-09/(2/raספר משנה ברורה המנקד.026740-10/(2/raאיש מצליח.01149cam a2200301 a 4500001001300000003000400013005001700017008004100034010001700075020001000092035002600102040004000128042001400168043001200182050002400194066000700218100003400225245012500259250002400384260007300408300002100481650004500502651003800547880003600585880013500621880002300756880006800779 94120425 DLC20090123075708.0940328s1990 ko 000 0 kor d a 94120425 cW3800 a(CStRLIN)DCLP94-B5791 aCLASIAcCLASIAdDLCdCStRLINdDLC-R alccopycat aa-ko---00aHQ1765.5b.K46 1990 c$11 6880-01aKim, Hong-sin,d1947-106880-02aAjikto kŭrŏk chŏrŏk sasimnikka :bkangnam yŏin kwa sin pʻalbulchʻul : Kim Hong-sin setʻae rŭpʻo. 6880-03aChʻopʻan. 6880-04aSŏul :bYŏwŏn Chʻulpʻanʼguk,c1990g(1992 printing) a289 p. ;c22 cm. 0aWomenzKorea (South)xSocial conditions. 0aSeoul (Korea)xSocial conditions.1 6100-01/$1a김 홍신,d1947-106245-02/$1a아직도 그럭 저럭 사십니까 :b강남 여인 과 신 팔불출 : 金 洪信 세태 르포. 6250-03/$1a초판. 6260-04/$1a서울 :b女苑 出版局,c1990g(1992 printing)01484cam a2200349 a 4500001001300000003000400013005001700017008004100034010001700075035002500092040001700117042001000134043001200144050002200156066001100178100004500189245014500234250002400379260006600403300002100469440004800490504006300538651003500601650002900636650003100665651002400696880004900720880016400769880003300933880009900966880006901065 96933325 DLC20090121112252.0040115s1994 ir b 001 0 per a 96933325 a(CStRLIN)DCLN04-B274 aDLC-RcDLC-R alcode aa-ir---00aDS274b.R327 1994 c(3c(41 6880-01aRajāyī, Farhang,d1952 or 3-106880-02aMaʻrakah-ʼi jahānʹbīnīʹhā :bdar khiradvarzī-i siyāsī va huvīyat-i mā Īrānīyān /cFarhang Rajāʼī. 6880-03aChāp-i 1. 6880-04aTihrān :bIḥyā-yi Kitāb,c1373 [1994 or 1995] a323 p. ;c22 cm. 06880-05aSipihr-i farhang va jāmiʻah ;v1 aIncludes bibliographical references (p.287-320) and index. 0aIranxPolitics and government. 0aPolitical sciencezIran. 0aIraniansxEthnic identity. 0aIranxCivilization.1 6100-01/(4/raرجايى، فرهنگ .106245-02/(3/raمعركۀ جهانبينىها :bدر خردورزى سياسى و هويت ما ايرانيان /cفرهنگ رجائى. 6250-03/(4/raچاپ 1. 6260-04/(3/raتهران :bاحياء كتاب،c1373 [1994 or 1995]. 06440-05/(3/raسپهر فرهنگ و جامعه ؛v101588cam a2200313 a 4500001001300000003000400013005001700017008004100034010001700075025002600092037007000118040001800188041001400206042001000220050002600230100005300256245033300309260007200642300002400714546005800738520015800796500002200954600003300976700008501009700007501094700006101169700002201230700002201252 2001417245DLC20090121030347.0011001m20009999ii 001 0 sano a 2001417245 aI-San-2001-417245; 11 bLibrary of Congress -- New Delhi Overseas OfficecRs200.00 (v. 1) aDLCcDLCdDLC0 asanengkan alcode00aPK3798.N313bS87 20000 aNārāyaṇa Paṇḍitācārya,d13th cent.10aSumadhvavijayaḥ /cNārāyaṇapaṇḍitācāryaviracitaḥ ; Nārāyaṇapaṇḍitācāryaviracitabhāvaprakāśikā, Viśvapatitīrthaviracitapadārthadīpikodbodhikā, Chalārīśeṣācāryaviracitamandopakāriṇī iti vyākhyānatrayasametaḥ ; edited by A.B. Shyamachar and S.R. Pandurangi. aBangalore :bDvaita Vedanta Studies and Research Foundation,c2000- av. <1 > ;c25 cm. aIn Sanskrit; prefatory matter in English and Kannada. aVerse work on Madhva, 13th cent. Vaishnava religious leader and exponent of dualistic philosophy; includes autocommentary and two classical commentaries. aIncludes indexes.00aMadhva,d13th cent.vPoetry.02aNārāyaṇa Paṇḍitācārya,d17th cent.tBhāvaprakāśikā.f2000.02aViśvapatitīrtha,d16th cent.tPadārthadīpikodbodhikā.f2000.02aChalāriśeṣācārya.tMandopakāriṇī.f2000.1 aShyamachar, A. B.1 aPandurangi, S. R.01197cam a22003014a 4500001001300000003000400013005001700017008004100034010001700075035002600092040002200118042001000140050002100150066000700171100006600178245012000244260004600364300002100410650003200431650005300463650002200516650004300538650002700581650002200608880007900630880013500709880005100844 2003546302DLC20090123173626.0030922s2003 mu 000 0 ara a 2003546302 a(CStRLIN)DCLN03-B4961 aDLC-RcDLC-RdDLC alcode00aU21.2b.W85 2003 c(31 6880-01aWuld Mawlāy al-Zayn, Sayyid Muḥammad wuld Sayyid.136880-02aal-Ḥarb fī al-alfīyah al-thālithah /cbi-qalam Sayyid Muḥammad wuld Sayyid wuld Mawlāy al-Zayn. 6880-03aNuwākshūṭ :b[s.n.],c2003. a128 p. ;c20 cm. 0aWarxHistoryy21st century. 0aMilitary art and sciencexHistoryy21st century. 0aWarxForecasting. 0aMilitary art and sciencexForecasting. 0aWarfare, Conventional. 0aMilitary weapons.1 6100-01/(3/raولد مولاي الزين، سيد محمد ولد سيد.126245-02/(3/raالحرب في الألفية الثالثة /cبقلم سيد محمد ولد سيد ولد مولاي الزين. 6260-03/(3/raنواكشوط :b[s.n.]،c2003.00875cam a22002534a 4500001001300000003000400013005001700017008004100034010001700075025002700092037006300119040001800182042001000200043001200210050002800222100003600250245012300286260002800409300002900437546001600466520006600482651003200548651004100580 2004310986DLC20090123105515.0040812s2004 cc a 000 0 tibo a 2004310986 aCh-Tib-2004-310986; 16 bLibrary of Congress -- New Delhi Overseas OfficecRs154.00 aDLCcDLCdDLC alcode aa-cc-ti00aDS797.82.B663bB75 20040 aBstan-ʼdzin-mkhas-grub,d1967-10aBon-brgyaʼi lo rgyus lugs gñis gsal baʼi me loṅ źes bya ba bźugs so /cBstan-ʼdzin-mkhas-grub kyis brtsams. a[Lha-sa :bs.n.,c2004] a149 p. :bill. ;c21 cm. aIn Tibetan. aHistorical account of Bon-brgya in Tibet during 7th-9th cent. 0aBon-brgya (China)xHistory. 0aBon-brgya (China)xKings and rulers.01127nam a2200277 a 4500001001300000003000400013005001700017008004100034010001700075035002600092040002500118042002100143050002300164066000700187100005600194245008800250250002800338260010100366300002000467650002500487650002500512880006500537880010100602880003300703880011300736 2005461726DLC20090126155550.0070712s2006 ua 000 0 ara d a 2005461726 a(CStRLIN)DCLN07-B4171 aEMUcEMUdCUYdDLC-R alccopycatalcode00aBP161.3b.A27 2006 c(31 6880-01aAbū al-Khayr, ʻAlī ʻAbd al-Ḥamīd.106880-02aThuqūb fī ʻaql al-ummah :bmin jald al-dhāt ilá ṣidq al-sharḥ. 6880-03aal-Ṭabʻah 1. 6880-04aal-Maʻādī, al-Qāhirah :bMarkaz Yāfā lil-Dirāsāt wa-al-Abḥāth,c2006. a85 p. ;c24 cm. 0aIslamy20th century. 0aIslamy21st century.1 6100-01/(3/raأبو الخير، علي عبد الحميد.106245-02/(3/raثقوب في عقل الأمة :bمن جلد الذات إلى صدق الشرح. 6250-03/(3/raالطبعة 1. 6260-04/(3/raالمعادي، القاهرة :bمركز يافا للدراسات والأبحاث،c2006.03730cam a22006257a 4500001001300000003000400013005001700017008004100034010001700075035002700092040001700119043001200136050002400148066000700172245004700179260002800226300003800254505107400292650002301366650002901389650003101418650003301449650003201482650003101514651002701545651007901572650005001651740010501701740003301806740003401839740003601873740003101909740003101940740004101971740004202012740004102054740004202095740002902137740006602166740007602232880006102308880010502369880003802474880004202512880004302554880004002597880004002637880004702677880005302724880004702777880005702824880004402881880007902925880010003004 2005553155DLC20090121104139.0051007m19659999is | l 000 0 heb a 2005553155 a(CStRLIN)DCLH05-B11400 aDLC-RcDLC-R aa-is---00aHG8695.2b.B57 1962 c(2006880-01a[Bituaḥ u-viṭaḥon sotsyali]. a[Israel ,c1962-<2001>] aitems 1-<13> of <13> ;c22-25 cm.1 a[1] Megamot be-mesheḳ ha-biṭuaḥ ṿeha-piḳuaḥ ʻal ʻisḳe biṭuaḥ bi-shenat 1965. 1966. 52 leaves ; 25 cm. -- [2] Biṭuaḥ ziḳnah : meʻudkan le-Yuli 2001. 24 p. ; 22 cm. -- [3] Biṭuaḥ sheʼirim : meʻudkan le-Yuli 2001. 2001. 24 p. ; 22 cm. -- [4] Gimlah le-yeled nekheh : meʻudkan le-Yuni 2001. 2001. 16 p. 22 cm. -- [5] Biṭuaḥ imahut : meʻudkan le-Yuli 2002. 24 p. ; 22 cm. -- [6] Biṭuaḥ siʻud : meʻudkan le-Februʼar 2001. 2001. 12 p. ; 22 cm. -- [7] Medaʻ le-ʻoved ʻatsmaʼi : meʻudkan le-Februʼar 2000. 2000. 18 p. ; 22 cm. -- [8] Biṭuaḥ nifgeʻe teʻunot. 1999. 1 folded leaflet ; 22 cm. -- [9] ha-Ḳeren le-nifgeʻe ṭeror -- [10] Teluyim be-nifgeʻe ʻavodah : meʻudkan le-Februʼar 2001. 2001. 24 p. ; 22 cm. -- [11] Sherut miluʼim : meʻudkan le-Yuli 2002. 2002. 16 p. ; 22 cm. -- [12] Ḳitsbah le-sherutim meyuhadim le-nekhim ḳashim : meʻudkan le-Detsember 2002. 2002. 16 p. ; 22 cm. -- [13] Mumḥim benleʼumiyim ʻal medukat ha-biṭaḥon ha-sotsyali / Yitsḥaḳ Ḳanev. 1962. 10 p. ; 24 cm. 0aInsurancezIsrael. 0aSocial securityzIsrael. 0aFamily allowanceszIsrael. 0aMaternity insurancezIsrael. 0aAccident insurancezIsrael. 0aOld agexEconomic aspects. 0aIsraelxSocial policy. 0aIsraelxArmed ForcesxReservesxPay, allowances, etc.xLaw and legislation 0aSocial securityxLaw and legislationzIsrael.026880-02aMegamot be-mesheḳ ha-biṭuaḥ ṿeha-piḳuaḥ ʻal ʻisḳe biṭuaḥ bi-shenat 1965.026880-03aBiṭuaḥ ziḳnah.026880-04aBiṭuaḥ sheʼirim.026880-05aGimlah le-yeled nekheh.026880-06aBiṭuaḥ imahut.026880-07aBiṭuaḥ siʻud.026880-08aMedaʻ le-ʻoved ʻatsmaʼi.026880-09aBiṭuaḥ nifgeʻe teʻunot.026880-10aḲeren le-nifgeʻe ṭeror.026880-11aTeluyim be-nifgeʻe ʻavodah.026880-12aSherut miluʼim.026880-13aḲitsbah le-sherutim meyuḥadim le-nekhim ḳashim.026880-14aMumḥim benleʼumiyim ʻal medukat ha-biṭaḥon ha-sotsyali.006245-01/(2/ra[ביטוח וביטחון סוציאלי].026740-02/(2/raמגמות במשק הביטוח והפיקוח על עסקי ביטוח בשנת 1965.026740-03/(2/raביטוח זקנה.026740-04/(2/raביטוח שאירים.026740-05/(2/raגמלה לילד נכה.026740-06/(2/raביטוח אמהות.026740-07/(2/raביטוח סיעוד.026740-08/(2/raמדע לעובד עצמאי.026740-09/(2/raביטוח נפגעי תעונות.026740-10/(2/raקרן לנפגעי טרור.026740-11/(2/raתלויים בניפגעי תעונה.026740-12/(2/raשירות מילואים.026740-13/(2/raקצבה לשירותים מיוחדים לנכים קשים.026740-14/(2/raמומחים בינלאומיים על מדוכת הביטחון הסוציאלי.01490cam a2200361 a 4500001001300000003000400013005001700017008004100034010001700075020003100092020002800123035002400151035002100175040004400196043001200240050002200252082002500274100002900299245010600328250003400434260003600468300003500504504005400539600002800593650005400621650006000675650005600735650005400791700002800845856008300873856009100956856008101047 2007020969DLC20090126093447.0070522s2008 nyua b 000 0beng a 2007020969 a9780743297790 (alk. paper) a0743297792 (alk. paper) a(OCoLC)ocn137335139 a(OCoLC)137335139 aDLCcDLCdBAKERdBTCTAdYDXCPdC#PdDLC an-us-nj00aE99.D2bH437 200800a974.004/97345aB2221 aHearth, Amy Hill,d1958-10a"Strong Medicine speaks" :ba Native American elder has her say : an oral history /cAmy Hill Hearth. a1st Atria Books hardcover ed. aNew York :bAtria Books,c2008. axvii, 267 p. :bill. ;c23 cm. aIncludes bibliographical references (p. 261-266).00aStrong Medicine,d1922- 0aDelaware womenzNew JerseyzBridgetonvBiography. 0aIndian women shamanszNew JerseyzBridgetonvBiography. 0aDelaware IndianszNew JerseyzBridgetonvBiography. 0aDelaware IndianszNew JerseyzBridgetonxHistory.0 aStrong Medicine,d1922-413Table of contents onlyuhttp://www.loc.gov/catdir/toc/ecip0719/2007020969.html423Publisher descriptionuhttp://www.loc.gov/catdir/enhancements/fy0808/2007020969-d.html413Sample textuhttp://www.loc.gov/catdir/enhancements/fy0808/2007020969-s.html01099cam a22002534a 4500001001300000003000400013005001700017008004100034010001700075025003300092037006300125040001300188042001000201050002500211100004200236245023400278250001800512260009000530300003600620546001600656520008700672650005100759710003500810 2008305903DLC20090122162012.0080602s2008 ii a 000 0 tibo a 2008305903 aI-Tib-2008-305903; 01; 05-01 bLibrary of Congress -- New Delhi Overseas OfficecRs400.00 aDLCcDLC alcode00aBQ7684.4b.D564 20080 aDkon-mchog-rgya-mtsho,cRa-se,d1968-10aDris lan don gcig ma :bdam paʼi chos dgoṅs pa gcig paʼi dri ba legs bśad bsu baʼi pho ñaʼi dris lan Dgoṅs-gcig smra baʼi mdzes rgyan źes bya ba bźugs so /cDwags-po Spyan-sṅa-ba Dkon-mchog-rgya-mtshos brtsams. aPar theṅ 2. a[ʼPhags-yul Dhe-ra-dhun :bSroṅ-btsan dpe mdzod khaṅ nas grems spel byas,c2008] a208 p. :b1 col. ill. ;c24 cm. aIn Tibetan. aOn the Dgoṅs-gcig teaching of Drikung Kagyudpa sect in questions/answers format. 0aʼBri-guṅ-pa (Sect)xDoctrinesvMiscellanea.2 aSroṅ-btsan dpe mdzod khaṅ.01582cam a2200325 a 4500001001300000003000400013005001700017008004100034010001700075020001500092025002700107037006300134040001300197041001800210042001000228043001200238050002600250100006700276240013100343245022900474260006400703300002700767546005000794504005500844600006100899650005300960700002101013700018101034710004101215 2008308175DLC20090123091532.0080718s2002 ii b 000 0 eng a 2008308175 a8186470336 aI-E-2008-308175; 59-13 bLibrary of Congress -- New Delhi Overseas OfficecRs185.00 aDLCcDLC1 aengatibhtib alcode aa-ii---00aBQ5593.P3bN3313 20020 aṄag-dbaṅ-blo-bzaṅ-rgya-mtsho,cDalai Lama V,d1617-1682.10aRje btsun bla ma ma hā gu ru Padma-ʼbyuṅ-gnas la gsol ba ʼdebs pa byin rlabs bdud rtsiʼi char rgyun.lEnglish & Tibetan10aPluvial nectar of blessings :ba supplication to the noble Lama Mahaguru Padmasambhava /cby His Holiness Ngag-dbang-blo-bzang-rgya-mtsho, the fifth Dalai Lama ; translated from the Tibetan with commentary by Dennis Cordell. aDharamsala :bLibrary of Tibetan Works and Archives,c2002. aviii, 101 p. ;c22 cm. aEnglish and Tibetanb(Tibetan also in roman). aIncludes bibliographical references (p. [97]-101).00aPadma Sambhava,dca. 717-ca. 762vPrayers and devotions. 0aPriests, BuddhistzIndiavPrayers and devotions.1 aCordell, Dennis.02aṄag-dbaṅ-blo-bzaṅ-rgya-mtsho,cDalai Lama V,d1617-1682tRje btsun bla ma ma hā gu ru Padma-ʼbyuṅ-gnas la gsol ba ʼdebs pa byin rlabs bdud rtsiʼi char rgyun.f20022 aLibrary of Tibetan Works & Archives.01221cam a22002534a 4500001001300000003000400013005001700017008004100034010001700075025002600092037006300118040001300181042001000194050002200204100005300226245017300279250001900452260012500471300002800596546001600624520023500640650003900875710005300914 2008308201DLC20090122162646.0080721s2008 ii 000 0 tibo a 2008308201 aI-Tib-2008-308201; 27 bLibrary of Congress -- New Delhi Overseas OfficecRs150.00 aDLCcDLC alcode00aBQ4036b.B78 20080 aBstan-ʼdzin-rgya-mtsho,cDalai Lama XIV,d1935-00aBod kyi naṅ chos ṅo sprod sñiṅ bsdus :bgoṅ sa skyabs mgon chen po mchog nas deṅ dus Bod rigs na gźon rnams la naṅ chos ṅo sprod bstsal ba bźugs so. aPar theṅs 2. aDharamsala, H.P. :bSku-bcar Rnam-par-rgyal-ba Phan-bde-legs-bśad-gliṅ Grwa-tshaṅ gi Śes-yon Lhan-tshogs,c2008. a4, iv, 254 p. ;c23 cm. aIn Tibetan. aSeries of lectures delivered by His Holiness the Dali Lama to younger generation of Tibetan studying in different colleges and universities in India and students from schools in Dharamsala on the introduction of Buddhist teaching. 0aBuddhismxEssence, genius, nature.2 aRnam-rgyal Grwa-tshaṅ.bŚes-yon Lhan-tshogs.01111cam a2200289 a 4500001001300000003000400013005001700017008004100034010001700075025002600092037006300118040001300181042001000194043001200204050002200216100003900238245015100277246006100428250001200489260008800501300004200589546001600631520005000647504005400697651004100751710002900792 2008308202DLC20090121092141.0080721s2005 ii b b 000 0 tibo a 2008308202 aI-Tib-2008-308202; 16 bLibrary of Congress -- New Delhi Overseas OfficecRs150.00 aDLCcDLC alcode aa-cc-ti00aDS785b.T475 20050 aThub-bstan-yar-ʼphel,cRnam-grwa.10aBod gaṅs can gyi rgyal rabs mdor bsdus dris lan brgya pa rab gsal śel gyi me loṅ źes bya ba bźugs so /cRnam-grwa Thub-bstan-yar-ʼphel.18aRgyal rabs dris lan brgya pa rab gsal śel gyi me loṅ a1st ed. aDharamsala, H.P. :bSku-bcar Rnam-rgyal Grwa-tshaṅ nas ʼgrems spel źus,c2005. aa-e, iv, ii, 407 p. :bmaps ;c23 cm. aIn Tibetan. aHistory of Tibet in questions/answers format. aIncludes bibliographical references (p. 406-407). 0aTibet (China)xHistoryvMiscellanea.2 aRnam-rgyal Grwa-tshaṅ.01127cam a22002895a 4500001001300000003000400013005001700017008004100034010001700075025002600092037005300118040001300171042001000184043002100194245001500215250001200230260013400242300002600376546001600402500005100418520017200469650003900641650003200680650004900712650002700761710004900788 2008308478DLC20090123131001.0080728s2007 ii 000 0 tibo a 2008308478 aI-Tib-2008-308478; 23 bLibrary of Congress -- New Delhi Overseas Office aDLCcDLC alcode aa-cc-tiaa-ii---00aŚes yon. a1st ed. aDharamsala, Distt. Kangra, H.P. :bSkabs bźi paʼi ʼbriṅ rim dge ʼos slob thon pa thun moṅ gis ʼgrems spel źus,c2007. axii, 419 p. ;c22 cm. aIn Tibetan. aCopyright: College for Higher Tibetan Studies. aContributed articles reflecting new educational policy for development of Tibetan education system in exile Tibetan community and Tibetan language teaching method etc. 0aEducation and statezChinazTibet. 0aTibetansxEducationzIndia. 0aTibetan languagexStudy and teachingzIndia. 0aTeachingxMethodology.2 aSa-rā Bod kyi mtho rim slob gñer khaṅ.01230nam a22003494a 4500001001300000003000400013005001700017008004100034010003100075020001800106020001500124035002300139040003200162042001400194043001200208050002400220066000700244100003600251245006700287250002000354260006200374300002100436600005100457650005700508650005400565650002900619880003300648880006900681880002300750880005500773880005200828 2008543486DLC20090126101044.0081217s1997 ja 000 0 jpn d a 2008543486z 2000314247 a9784588460050 a4588460056 a(OCoLC)ocm40868083 aUIUcUIUdTRCLSdOCLCGdDLC alccopycat aa-ja---00aPL832.U25bZ96 1997 c$11 6880-01aYoshida, Hajime,d1934-106880-02aKubo Sakae 'Kazanbaichi' o yomu /cYoshida Hajime cho. 6880-03aShohan. 6880-04aTōkyō :bHōsei Daigaku Shuppankyoku,c1997. a480 p. ;c19 cm.106880-05aKubo, Sakae,d1901-1958.tKazanbaichi. 0aJapanese dramay20th centuryxHistory and criticism. 0aPolitical plays, JapanesexHistory and criticism. 0aTheaterzJapanxHistory.1 6100-01/$1a吉田一,d1934-106245-02/$1a久保栄「火山灰地」を読む /c吉田一著. 6250-03/$1a初版. 6260-04/$1a東京 :b法政大学出版局,c1997.106600-05/$1a久保栄,d1901-1958.tKazanbaichi.01213nam a22003614a 4500001001300000003000400013005001700017008004100034010001700075020001800092020001500110035002400125040002300149042001400172043001200186050002400198066000700222100002600229245004800255250002100303260008900324300002400413490004100437651002800478651003100506651005000537651005400587880002600641880004500667880002300712880007600735880004000811 2009373513DLC20090121153231.0090114s2008 ch 000 0 chi d a 2009373513 a9789573908678 a9573908670 a(OCoLC)ocn268619391 aHUAcHUAdHKPdDLC alccopycat aa-cc-hk00aHC59.15b.L533 2008 c$11 6880-01aLin, Xingzhi.106880-02aCi an zhou bian /cLin Xingzhi zhu. 6880-03aChu ban. 6880-04aTaibei Xian Banqiao Shi :bYuan jing chu ban shi ye you xian gong si,c2008. a5, 300 p. ;c21 cm.0 6880-05aLin Xingzhi zuo pin ji ;v51 0aEconomic historyy1990- 0aWorld politicsy2005-2015. 0aHong Kong (China)xEconomic conditionsy1997- 0aHong Kong (China)xPolitics and governmenty1997-1 6100-01/$1a林行止.106245-02/$1a次按驟變 /c林行止著. 6250-03/$1a初版. 6260-04/$1a臺北縣板橋市 :b遠景出版事業有限公司,c2008.0 6490-05/$1a林行止作品集 ;v51
|
@@ -0,0 +1,482 @@
|
|
1
|
+
# -*- coding: undecided -*-
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
3
|
+
require 'marc'
|
4
|
+
def exportable_record
|
5
|
+
"<record>
|
6
|
+
<leader>01828cjm a2200409 a 4500</leader>
|
7
|
+
<controlfield tag=\"001\">a4768316</controlfield>
|
8
|
+
<controlfield tag=\"003\">SIRSI</controlfield>
|
9
|
+
<controlfield tag=\"007\">sd fungnnmmned</controlfield>
|
10
|
+
<controlfield tag=\"008\">020117p20011990xxuzz h d</controlfield>
|
11
|
+
|
12
|
+
<datafield tag=\"245\" ind1=\"0\" ind2=\"0\">
|
13
|
+
<subfield code=\"a\">Music for horn</subfield>
|
14
|
+
<subfield code=\"h\">[sound recording] /</subfield>
|
15
|
+
<subfield code=\"c\">Brahms, Beethoven, von Krufft.</subfield>
|
16
|
+
</datafield>
|
17
|
+
|
18
|
+
<datafield tag=\"260\" ind1=\" \" ind2=\" \">
|
19
|
+
<subfield code=\"a\">[United States] :</subfield>
|
20
|
+
<subfield code=\"b\">Harmonia Mundi USA,</subfield>
|
21
|
+
<subfield code=\"c\">p2001.</subfield>
|
22
|
+
</datafield>
|
23
|
+
|
24
|
+
<datafield tag=\"700\" ind1=\"1\" ind2=\" \">
|
25
|
+
<subfield code=\"a\">Greer, Lowell.</subfield>
|
26
|
+
</datafield>
|
27
|
+
|
28
|
+
<datafield tag=\"700\" ind1=\"1\" ind2=\" \">
|
29
|
+
<subfield code=\"a\">Lubin, Steven.</subfield>
|
30
|
+
</datafield>
|
31
|
+
|
32
|
+
<datafield tag=\"700\" ind1=\"1\" ind2=\" \">
|
33
|
+
<subfield code=\"a\">Chase, Stephanie,</subfield>
|
34
|
+
<subfield code=\"d\">1957-</subfield>
|
35
|
+
</datafield>
|
36
|
+
|
37
|
+
<datafield tag=\"700\" ind1=\"1\" ind2=\"2\">
|
38
|
+
<subfield code=\"a\">Brahms, Johannes,</subfield>
|
39
|
+
<subfield code=\"d\">1833-1897.</subfield>
|
40
|
+
<subfield code=\"t\">Trios,</subfield>
|
41
|
+
<subfield code=\"m\">piano, violin, horn,</subfield>
|
42
|
+
<subfield code=\"n\">op. 40,</subfield>
|
43
|
+
<subfield code=\"r\">E? major.</subfield>
|
44
|
+
</datafield>
|
45
|
+
|
46
|
+
<datafield tag=\"700\" ind1=\"1\" ind2=\"2\">
|
47
|
+
<subfield code=\"a\">Beethoven, Ludwig van,</subfield>
|
48
|
+
<subfield code=\"d\">1770-1827.</subfield>
|
49
|
+
<subfield code=\"t\">Sonatas,</subfield>
|
50
|
+
<subfield code=\"m\">horn, piano,</subfield>
|
51
|
+
<subfield code=\"n\">op. 17,</subfield>
|
52
|
+
<subfield code=\"r\">F major.</subfield>
|
53
|
+
</datafield>
|
54
|
+
|
55
|
+
<datafield tag=\"700\" ind1=\"1\" ind2=\"2\">
|
56
|
+
<subfield code=\"a\">Krufft, Nikolaus von,</subfield>
|
57
|
+
<subfield code=\"d\">1779-1818.</subfield>
|
58
|
+
<subfield code=\"t\">Sonata,</subfield>
|
59
|
+
<subfield code=\"m\">horn, piano,</subfield>
|
60
|
+
<subfield code=\"r\">F major.</subfield>
|
61
|
+
</datafield>
|
62
|
+
</record>"
|
63
|
+
end
|
64
|
+
describe BlacklightHelper do
|
65
|
+
include BlacklightHelper
|
66
|
+
|
67
|
+
describe "link_back_to_catalog" do
|
68
|
+
before(:all) do
|
69
|
+
@query_params = {:q => "query", :f => "facets", :per_page => "10", :page => "2"}
|
70
|
+
end
|
71
|
+
it "should build a link tag to catalog using session[:search] for query params" do
|
72
|
+
session[:search] = @query_params
|
73
|
+
tag = link_back_to_catalog
|
74
|
+
tag.should =~ /q=query/
|
75
|
+
tag.should =~ /f=facets/
|
76
|
+
tag.should =~ /per_page=10/
|
77
|
+
tag.should =~ /page=2/
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
describe "link_to_with_data" do
|
82
|
+
it "should generate proper tag for :put and with single :data key and value" do
|
83
|
+
assert_dom_equal(
|
84
|
+
"<a href='http://www.example.com' onclick=\"var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;if(event.metaKey || event.ctrlKey){f.target = '_blank';};var d = document.createElement('input'); d.setAttribute('type', 'hidden'); d.setAttribute('name', 'key'); d.setAttribute('value', 'value'); f.appendChild(d);var m = document.createElement('input'); m.setAttribute('type', 'hidden'); m.setAttribute('name', '_method'); m.setAttribute('value', 'put'); f.appendChild(m);f.submit();return false;\">Foo</a>",
|
85
|
+
link_to_with_data("Foo", "http://www.example.com", :method => :put, :data => {:key => "value"})
|
86
|
+
)
|
87
|
+
end
|
88
|
+
it "should be html_safe" do
|
89
|
+
link_to_with_data("Foo", "http://www.example.com", :method => :put, :data => {:key => "value"}).html_safe?.should == true
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
describe "link_to_query" do
|
94
|
+
it "should build a link tag to catalog using query string (no other params)" do
|
95
|
+
query = "brilliant"
|
96
|
+
self.should_receive(:params).and_return({})
|
97
|
+
tag = link_to_query(query)
|
98
|
+
tag.should =~ /q=#{query}/
|
99
|
+
tag.should =~ />#{query}<\/a>/
|
100
|
+
end
|
101
|
+
it "should build a link tag to catalog using query string and other existing params" do
|
102
|
+
query = "wonderful"
|
103
|
+
self.should_receive(:params).and_return({:qt => "title_search", :per_page => "50"})
|
104
|
+
tag = link_to_query(query)
|
105
|
+
tag.should =~ /qt=title_search/
|
106
|
+
tag.should =~ /per_page=50/
|
107
|
+
end
|
108
|
+
it "should ignore existing :page param" do
|
109
|
+
query = "yes"
|
110
|
+
self.should_receive(:params).and_return({:page => "2", :qt => "author_search"})
|
111
|
+
tag = link_to_query(query)
|
112
|
+
tag.should =~ /qt=author_search/
|
113
|
+
tag.should_not =~ /page/
|
114
|
+
end
|
115
|
+
it "should be html_safe" do
|
116
|
+
query = "brilliant"
|
117
|
+
self.should_receive(:params).and_return({:page => "2", :qt => "author_search"})
|
118
|
+
tag = link_to_query(query)
|
119
|
+
tag.html_safe?.should == true
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
describe "search_as_hidden_fields" do
|
124
|
+
def params
|
125
|
+
{:q => "query", :sort => "sort", :per_page => "20", :search_field => "search_field", :page => 100, :arbitrary_key => "arbitrary_value", :f => {"field" => ["value1", "value2"]}, :controller => "catalog", :action => "index"}
|
126
|
+
end
|
127
|
+
describe "for default arguments" do
|
128
|
+
it "should default to omitting :page" do
|
129
|
+
search_as_hidden_fields.should have_selector("input[type='hidden']", :count =>7)
|
130
|
+
search_as_hidden_fields.should_not have_selector("input[name='page']")
|
131
|
+
end
|
132
|
+
it "should not return action and controller hidden elements" do
|
133
|
+
search_as_hidden_fields.should_not have_selector("input[name='action']")
|
134
|
+
search_as_hidden_fields.should_not have_selector("input[name='controller']")
|
135
|
+
end
|
136
|
+
describe "for omit_keys parameter" do
|
137
|
+
it "should not include those keys" do
|
138
|
+
generated = search_as_hidden_fields(:omit_keys => [:per_page, :sort])
|
139
|
+
|
140
|
+
generated.should_not have_selector("input[name=sort]")
|
141
|
+
generated.should_not have_selector("input[name=per_page]")
|
142
|
+
|
143
|
+
generated.should have_selector("input[name=page]")
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
end
|
149
|
+
|
150
|
+
describe "render_stylesheet_links" do
|
151
|
+
def stylesheet_links
|
152
|
+
[
|
153
|
+
["my_stylesheet", {:plugin => :blacklight}],
|
154
|
+
["other_stylesheet"]
|
155
|
+
]
|
156
|
+
end
|
157
|
+
it "should render stylesheets specified in controller #stylesheet_links" do
|
158
|
+
html = render_stylesheet_includes
|
159
|
+
html.should have_selector("link[href='/stylesheets/my_stylesheet.css'][rel='stylesheet'][type='text/css']")
|
160
|
+
html.should have_selector("link[href='/stylesheets/other_stylesheet.css'][rel='stylesheet'][type='text/css']")
|
161
|
+
html.html_safe?.should == true
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
describe "render_js_includes" do
|
166
|
+
def javascript_includes
|
167
|
+
[
|
168
|
+
["some_js.js", {:plugin => :blacklight}],
|
169
|
+
["other_js"]
|
170
|
+
]
|
171
|
+
end
|
172
|
+
it "should include script tags specified in controller#javascript_includes" do
|
173
|
+
html = render_js_includes
|
174
|
+
html.should have_selector("script[src='/javascripts/some_js.js'][type='text/javascript']")
|
175
|
+
html.should have_selector("script[src='/javascripts/other_js.js'][type='text/javascript']")
|
176
|
+
|
177
|
+
html.html_safe?.should == true
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
describe "render_extra_head_content" do
|
182
|
+
def extra_head_content
|
183
|
+
['<link rel="a">', '<link rel="b">']
|
184
|
+
end
|
185
|
+
|
186
|
+
it "should include content specified in controller#extra_head_content" do
|
187
|
+
html = render_extra_head_content
|
188
|
+
|
189
|
+
html.should have_selector("link[rel=a]")
|
190
|
+
html.should have_selector("link[rel=b]")
|
191
|
+
|
192
|
+
html.html_safe?.should == true
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
describe "render_head_content" do
|
197
|
+
describe "with no methods defined" do
|
198
|
+
it "should return empty string without complaint" do
|
199
|
+
lambda {render_head_content}.should_not raise_error
|
200
|
+
render_head_content.should be_blank
|
201
|
+
render_head_content.html_safe?.should == true
|
202
|
+
end
|
203
|
+
end
|
204
|
+
describe "with methods defined" do
|
205
|
+
def javascript_includes
|
206
|
+
[["my_js"]]
|
207
|
+
end
|
208
|
+
def stylesheet_links
|
209
|
+
[["my_css"]]
|
210
|
+
end
|
211
|
+
def extra_head_content
|
212
|
+
[
|
213
|
+
"<madeup_tag></madeup_tag>",
|
214
|
+
'<link rel="rel" type="type" href="href">'
|
215
|
+
]
|
216
|
+
end
|
217
|
+
before(:each) do
|
218
|
+
@output = render_head_content
|
219
|
+
end
|
220
|
+
it "should include extra_head_content" do
|
221
|
+
@output.should have_selector("madeup_tag")
|
222
|
+
@output.should have_selector("link[rel=rel][type=type][href=href]")
|
223
|
+
end
|
224
|
+
it "should include render_javascript_includes" do
|
225
|
+
@output.index( render_js_includes ).should_not be_nil
|
226
|
+
end
|
227
|
+
it "should include render_stylesheet_links" do
|
228
|
+
@output.index( render_stylesheet_includes ).should_not be_nil
|
229
|
+
end
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
describe "render body class" do
|
234
|
+
it "should include a serialization of the current controller name" do
|
235
|
+
@controller = mock("controller")
|
236
|
+
@controller.should_receive(:controller_name).any_number_of_times.and_return("123456")
|
237
|
+
@controller.should_receive(:action_name).any_number_of_times.and_return("abcdef")
|
238
|
+
|
239
|
+
render_body_class.split(' ').should include('blacklight-123456')
|
240
|
+
end
|
241
|
+
|
242
|
+
it "should include a serialization of the current action name" do
|
243
|
+
@controller = mock("controller")
|
244
|
+
@controller.should_receive(:controller_name).any_number_of_times.and_return("123456")
|
245
|
+
@controller.should_receive(:action_name).any_number_of_times.and_return("abcdef")
|
246
|
+
|
247
|
+
render_body_class.split(' ').should include('blacklight-123456-abcdef')
|
248
|
+
end
|
249
|
+
end
|
250
|
+
|
251
|
+
describe "document_heading" do
|
252
|
+
it "should consist of the show heading field when available" do
|
253
|
+
@document = SolrDocument.new(Blacklight.config[:show][:heading] => "A Fake Document")
|
254
|
+
|
255
|
+
document_heading.should == "A Fake Document"
|
256
|
+
end
|
257
|
+
|
258
|
+
it "should fallback on the document id if no title is available" do
|
259
|
+
@document = SolrDocument.new(:id => '123456')
|
260
|
+
document_heading.should == '123456'
|
261
|
+
end
|
262
|
+
end
|
263
|
+
|
264
|
+
describe "render_document_heading" do
|
265
|
+
it "should consist of #document_heading wrapped in a <h1>" do
|
266
|
+
@document = SolrDocument.new(Blacklight.config[:show][:heading] => "A Fake Document")
|
267
|
+
|
268
|
+
render_document_heading.should have_selector("h1", :content => document_heading, :count => 1)
|
269
|
+
render_document_heading.html_safe?.should == true
|
270
|
+
end
|
271
|
+
end
|
272
|
+
|
273
|
+
describe "document_partial_name" do
|
274
|
+
it "should handle normal formats correctly" do
|
275
|
+
document_partial_name({"format" => "myformat"}).should == "myformat"
|
276
|
+
end
|
277
|
+
it "should handle spaces correctly" do
|
278
|
+
document_partial_name({"format" => "my format"}).should == "my_format"
|
279
|
+
end
|
280
|
+
it "should handle capitalization correctly" do
|
281
|
+
document_partial_name({"format" => "MyFormat"}).should == "myformat"
|
282
|
+
end
|
283
|
+
it "should handle puncuation correctly" do
|
284
|
+
document_partial_name({"format" => "My.Format"}).should == "my_format"
|
285
|
+
end
|
286
|
+
it "should handle multi-valued fields correctly" do
|
287
|
+
document_partial_name({"format" => ["My Format", "My OtherFormat"]}).should == "my_format_my_otherformat"
|
288
|
+
end
|
289
|
+
it "should remove - characters because they will throw errors" do
|
290
|
+
document_partial_name({"format" => "My-Format"}).should == "my_format"
|
291
|
+
document_partial_name({"format" => ["My-Format",["My Other-Format"]]}).should == "my_format_my_other_format"
|
292
|
+
end
|
293
|
+
end
|
294
|
+
|
295
|
+
describe "link_to_document" do
|
296
|
+
it "should consist of the document title wrapped in a <a>" do
|
297
|
+
data = {'id'=>'123456','title_display'=>['654321'] }
|
298
|
+
@document = SolrDocument.new(data)
|
299
|
+
link_to_document(@document, { :label => :title_display }).should have_selector("a", :content => '654321', :count => 1)
|
300
|
+
end
|
301
|
+
it "should accept and return a string label" do
|
302
|
+
data = {'id'=>'123456','title_display'=>['654321'] }
|
303
|
+
@document = SolrDocument.new(data)
|
304
|
+
link_to_document(@document, { :label => "title_display" }).should have_selector("a", :content => 'title_display', :count => 1)
|
305
|
+
end
|
306
|
+
it "should properly javascript escape the label value" do
|
307
|
+
data = {'id'=>'123456','title_display'=>['654321'] }
|
308
|
+
@document = SolrDocument.new(data)
|
309
|
+
link = link_to_document(@document, { :label => "Apple's Oranges" })
|
310
|
+
link.should match(/'Apple\\'s Oranges'/)
|
311
|
+
link.should_not match(/'Apple's Oranges'/)
|
312
|
+
end
|
313
|
+
it "should accept and return a Proc" do
|
314
|
+
data = {'id'=>'123456','title_display'=>['654321'] }
|
315
|
+
@document = SolrDocument.new(data)
|
316
|
+
link_to_document(@document, { :label => Proc.new { |doc, opts| doc.get(:id) + ": " + doc.get(:title_display) } }).should have_selector("a", :content => '123456: 654321', :count => 1)
|
317
|
+
end
|
318
|
+
it "should return id when label is missing" do
|
319
|
+
data = {'id'=>'123456'}
|
320
|
+
@document = SolrDocument.new(data)
|
321
|
+
link_to_document(@document, { :label => :title_display }).should have_selector("a", :content => '123456', :count => 1)
|
322
|
+
end
|
323
|
+
|
324
|
+
it "should be html safe" do
|
325
|
+
data = {'id'=>'123456'}
|
326
|
+
@document = SolrDocument.new(data)
|
327
|
+
link_to_document(@document, { :label => :title_display }).html_safe?.should == true
|
328
|
+
end
|
329
|
+
end
|
330
|
+
|
331
|
+
describe "add_facet_params" do
|
332
|
+
before do
|
333
|
+
@params_no_existing_facet = {:q => "query", :search_field => "search_field", :per_page => "50"}
|
334
|
+
@params_existing_facets = {:q => "query", :search_field => "search_field", :per_page => "50", :f => {"facet_field_1" => ["value1"], "facet_field_2" => ["value2", "value2a"]}}
|
335
|
+
end
|
336
|
+
|
337
|
+
it "should add facet value for no pre-existing facets" do
|
338
|
+
helper.stub!(:params).and_return(@params_no_existing_facet)
|
339
|
+
|
340
|
+
result_params = helper.add_facet_params("facet_field", "facet_value")
|
341
|
+
result_params[:f].should be_a_kind_of(Hash)
|
342
|
+
result_params[:f]["facet_field"].should be_a_kind_of(Array)
|
343
|
+
result_params[:f]["facet_field"].should == ["facet_value"]
|
344
|
+
end
|
345
|
+
|
346
|
+
it "should add a facet param to existing facet constraints" do
|
347
|
+
helper.stub!(:params).and_return(@params_existing_facets)
|
348
|
+
|
349
|
+
result_params = helper.add_facet_params("facet_field_2", "new_facet_value")
|
350
|
+
|
351
|
+
result_params[:f].should be_a_kind_of(Hash)
|
352
|
+
|
353
|
+
@params_existing_facets[:f].each_pair do |facet_field, value_list|
|
354
|
+
result_params[:f][facet_field].should be_a_kind_of(Array)
|
355
|
+
|
356
|
+
if facet_field == 'facet_field_2'
|
357
|
+
result_params[:f][facet_field].should == (@params_existing_facets[:f][facet_field] | ["new_facet_value"])
|
358
|
+
else
|
359
|
+
result_params[:f][facet_field].should == @params_existing_facets[:f][facet_field]
|
360
|
+
end
|
361
|
+
end
|
362
|
+
end
|
363
|
+
it "should leave non-facet params alone" do
|
364
|
+
[@params_existing_facets, @params_no_existing_facet].each do |params|
|
365
|
+
helper.stub!(:params).and_return(params)
|
366
|
+
|
367
|
+
result_params = helper.add_facet_params("facet_field_2", "new_facet_value")
|
368
|
+
|
369
|
+
params.each_pair do |key, value|
|
370
|
+
next if key == :f
|
371
|
+
result_params[key].should == params[key]
|
372
|
+
end
|
373
|
+
end
|
374
|
+
end
|
375
|
+
end
|
376
|
+
|
377
|
+
describe "add_facet_params_and_redirect" do
|
378
|
+
before do
|
379
|
+
catalog_facet_params = {:q => "query",
|
380
|
+
:search_field => "search_field",
|
381
|
+
:per_page => "50",
|
382
|
+
:page => "5",
|
383
|
+
:f => {"facet_field_1" => ["value1"], "facet_field_2" => ["value2", "value2a"]},
|
384
|
+
Blacklight::Solr::FacetPaginator.request_keys[:offset] => "100",
|
385
|
+
Blacklight::Solr::FacetPaginator.request_keys[:sort] => "index",
|
386
|
+
:id => 'facet_field_name'
|
387
|
+
}
|
388
|
+
helper.stub!(:params).and_return(catalog_facet_params)
|
389
|
+
end
|
390
|
+
it "should redirect to 'index' action" do
|
391
|
+
params = helper.add_facet_params_and_redirect("facet_field_2", "facet_value")
|
392
|
+
|
393
|
+
params[:action].should == "index"
|
394
|
+
end
|
395
|
+
it "should not include request parameters used by the facet paginator" do
|
396
|
+
params = helper.add_facet_params_and_redirect("facet_field_2", "facet_value")
|
397
|
+
|
398
|
+
bad_keys = Blacklight::Solr::FacetPaginator.request_keys.values + [:id]
|
399
|
+
bad_keys.each do |paginator_key|
|
400
|
+
params.keys.should_not include(paginator_key)
|
401
|
+
end
|
402
|
+
end
|
403
|
+
it 'should remove :page request key' do
|
404
|
+
params = helper.add_facet_params_and_redirect("facet_field_2", "facet_value")
|
405
|
+
|
406
|
+
params.keys.should_not include(:page)
|
407
|
+
end
|
408
|
+
it "should otherwise do the same thing as add_facet_params" do
|
409
|
+
added_facet_params = helper.add_facet_params("facet_field_2", "facet_value")
|
410
|
+
added_facet_params_from_facet_action = helper.add_facet_params_and_redirect("facet_field_2", "facet_value")
|
411
|
+
|
412
|
+
added_facet_params_from_facet_action.each_pair do |key, value|
|
413
|
+
next if key == :action
|
414
|
+
value.should == added_facet_params[key]
|
415
|
+
end
|
416
|
+
end
|
417
|
+
|
418
|
+
|
419
|
+
end
|
420
|
+
|
421
|
+
describe "render_link_rel_alternates" do
|
422
|
+
class MockDocumentAppHlper
|
423
|
+
include Blacklight::Solr::Document
|
424
|
+
end
|
425
|
+
module MockExtension
|
426
|
+
def self.extended(document)
|
427
|
+
document.will_export_as(:weird, "application/weird")
|
428
|
+
document.will_export_as(:weirder, "application/weirder")
|
429
|
+
document.will_export_as(:weird_dup, "application/weird")
|
430
|
+
end
|
431
|
+
def export_as_weird ; "weird" ; end
|
432
|
+
def export_as_weirder ; "weirder" ; end
|
433
|
+
def export_as_weird_dup ; "weird_dup" ; end
|
434
|
+
end
|
435
|
+
MockDocumentAppHlper.use_extension(MockExtension)
|
436
|
+
before(:each) do
|
437
|
+
@doc_id = "MOCK_ID1"
|
438
|
+
@document = MockDocumentAppHlper.new(:id => @doc_id)
|
439
|
+
render_params = {:controller => "controller", :action => "action"}
|
440
|
+
helper.stub!(:params).and_return(render_params)
|
441
|
+
end
|
442
|
+
it "generates <link rel=alternate> tags" do
|
443
|
+
|
444
|
+
response = render_link_rel_alternates(@document)
|
445
|
+
|
446
|
+
@document.export_formats.each_pair do |format, spec|
|
447
|
+
response.should have_selector("link[href$='.#{ format }']") do |matches|
|
448
|
+
matches.length.should == 1
|
449
|
+
tag = matches[0]
|
450
|
+
tag.attributes["rel"].value.should == "alternate"
|
451
|
+
tag.attributes["title"].value.should == format.to_s
|
452
|
+
tag.attributes["href"].value.should === catalog_url(@doc_id, format)
|
453
|
+
end
|
454
|
+
end
|
455
|
+
end
|
456
|
+
it "respects :unique=>true" do
|
457
|
+
response = render_link_rel_alternates(@document, :unique => true)
|
458
|
+
response.should have_selector("link[type='application/weird']", :count => 1)
|
459
|
+
end
|
460
|
+
it "excludes formats from :exclude" do
|
461
|
+
response = render_link_rel_alternates(@document, :exclude => [:weird_dup])
|
462
|
+
|
463
|
+
response.should_not have_selector("link[href$='.weird_dup']")
|
464
|
+
end
|
465
|
+
|
466
|
+
it "should be html safe" do
|
467
|
+
response = render_link_rel_alternates(@document)
|
468
|
+
response.html_safe?.should == true
|
469
|
+
end
|
470
|
+
|
471
|
+
end
|
472
|
+
|
473
|
+
describe "convenience methods" do
|
474
|
+
it "should handle the case where we don't have a spellmax set in the config" do
|
475
|
+
spell_check_max.should == 5
|
476
|
+
sm = Blacklight.config[:spell_max]
|
477
|
+
Blacklight.config[:spell_max] = nil
|
478
|
+
spell_check_max.should == 0
|
479
|
+
Blacklight.config[:spell_max] = sm
|
480
|
+
end
|
481
|
+
end
|
482
|
+
end
|