=====* UniMarc [0.0156] 버전 업데이트 내용 *=====

** ERP 작업 전면 중단 (마크우선) **

1. DVD/CD/LP
ㄴ> CD/LP 작업 완료.
ㄴ> DVD 교보쪽 작업 완료.
ㄴ> DVD 알라딘 작업 진행중.

2. 복본조사
ㄴ> 전라북도 교육청 추가.
This commit is contained in:
SeungHo Yang
2022-08-24 14:59:24 +09:00
parent 9cfbc44e0a
commit 93f92e3bff
14 changed files with 147 additions and 10 deletions

Binary file not shown.

View File

@@ -55,19 +55,18 @@ namespace UniMarc.마크
if (isKyoBo)
{
if (KyoBo_trDVD_flCD())
{
result = MakeMarcKyoBo_DVD(KyoboInfor_DVD());
}
else
{
result = MakeMarcKyoBo_Music(KyoBoInfor_Music(), KyoBoGetTrack_Music());
}
}
else
{
// title, artist, comp, price, PubYear
string[] Data = AladinInfor_Music();
result = MakeMarcAladin_Music(Data);
if (Aladin_trDVD_flCD())
AladinInfor_DVD();
else
result = MakeMarcAladin_Music(AladinInfor_Music());
}
cp.richTextBox1.Text = result;
}
@@ -368,7 +367,7 @@ namespace UniMarc.마크
string Marc = "020\t \t▼a" + Data[3] + ":▼c\\" + Data[4] + "▲\n";
Marc += KyoBoMake049(, );
Marc += "056\t \t▼a▼25▲\n";
Marc += "100\t1 \t▼a" + Data[1] + "▲\n";
Marc += "100\t1 \t▼a" + Data[1] + "▲\n"; // 도치 필요
Marc += "245\t10\t▼a" + title + "▼h[비디오 녹화자료]/▼d" + Data[1] + "▲\n";
Marc += "260\t \t▼a서울:▼b" + Data[2] + " [제작],▼c" + Data[5] + "▲\n";
Marc += String.Format("300\t \t▼aDVD {0}매({1})▼b유성, 천연색▼c12cm▲\n", , );
@@ -395,7 +394,7 @@ namespace UniMarc.마크
{
if (Value == "")
continue;
Marc += "700\t1 \t▼a" + Value.Trim() + "▲\n";
Marc += "700\t1 \t▼a" + Value.Trim() + "▲\n"; // 도치 필요
}
Marc += "950\t0 \t▼b\\" + Data[4] + "▲\n";
@@ -478,6 +477,20 @@ namespace UniMarc.마크
#region Aladin
bool Aladin_trDVD_flCD()
{
bool result = false;
foreach (HtmlElement ul in webBrowser1.Document.GetElementsByTagName("ul"))
{
if (ul.Id != null && ul.Id.IndexOf("ulCategory") > -1)
if (ul.InnerText.IndexOf("DVD") > -1)
result = true;
}
return result;
}
#region Music
string[] AladinInfor_Music()
{
string title = "";
@@ -602,8 +615,72 @@ namespace UniMarc.마크
#region DVD
#endregion
void AladinInfor_DVD()
{
// 작품명, 제작사
string title = "";
string comp = "";
foreach (HtmlElement a in webBrowser1.Document.GetElementsByTagName("a"))
{
if (a.GetAttribute("className").IndexOf("Ere_bo_title") > -1)
title = a.InnerText;
if (a.GetAttribute("href").IndexOf("Publisher") > -1)
comp = a.InnerText;
}
// 감독명
// 출연진
// 제작사
// 제작년도
// 작품원제
string tmp = "";
foreach (HtmlElement li in webBrowser1.Document.GetElementsByTagName("li"))
{
if (li.GetAttribute("className").IndexOf("Ere_sub2_title") > -1)
{
tmp = li.InnerText.Replace(comp, "");
}
}
int start = 0, end = tmp.IndexOf("(감독)");
string Artist = Substring_Sub(tmp, start, end);
start = end + "(감독)".Length + 1;
end = tmp.IndexOf("(출연)") - start;
string Actor = Substring_Sub(tmp, start, end);
start = tmp.IndexOf(comp) + comp.Length;
end = 4;
string Years = Substring_Sub(tmp, start, end);
start = tmp.IndexOf("원제 : ") + "원제 : ".Length;
end = tmp.Length - start;
string oriTitle = Substring_Sub(tmp, start, end);
MessageBox.Show(string.Format("title\n{0}\nArtist\n{1}\nActor\n{2}\ncomp\n{3}\nYears\n{4}\noriTitle\n{5}",
title, Artist, Actor, comp, Years, oriTitle));
// DVD 갯수
// 정가
}
string Substring_Sub(string Value, int start, int end)
{
if (start < 0 || end < 1)
return "";
return Value.Substring(start, end);
}
/*
주세페 토르나토레 (감독),살바토레 카치오,필립 느와레,마르코 레오나르디 (출연)그린나래미디어2015-01-20원제 : Cinema Paradiso, 1988 (Blu-ray/Nuovo Director's Cut)
*/
string MakeMarcAladin_DVD()
{
return "";
}
#endregion
#endregion
#endregion
private void Btn_Close_Click(object sender, EventArgs e)

View File

@@ -301,6 +301,12 @@ namespace WindowsFormsApp1.Mac
(text);
}
// 전북교육청 소재 도서관
else if (URL.IndexOf("lib.jbe.go.kr") > -1)
{
BookCount = (text);
}
int tmp = RowCount - 1;
if (tmp < 0) tmp = 0;
@@ -974,6 +980,60 @@ namespace WindowsFormsApp1.Mac
#endregion
#region
bool isJBEClick = false;
string (string text)
{
foreach (HtmlElement input in webBrowser1.Document.GetElementsByTagName("input"))
{
if (input.Id != null && input.Id == "search_text")
{
input.SetAttribute("value", text);
break;
}
}
if (!isJBEClick)
{
foreach (HtmlElement input in webBrowser1.Document.GetElementsByTagName("input"))
{
if (input.GetAttribute("value").IndexOf("ALL") > -1)
{
input.InvokeMember("click");
isJBEClick = true;
}
if (input.GetAttribute("value").IndexOf(Code) > -1)
{
input.InvokeMember("click");
isJBEClick = true;
}
}
}
foreach (HtmlElement Btn in webBrowser1.Document.GetElementsByTagName("button"))
{
if (Btn.Id != null && Btn.Id == "do-search")
Btn.InvokeMember("click");
}
Delay(10000);
string result = "";
foreach (HtmlElement div in webBrowser1.Document.GetElementsByTagName("div"))
{
if (div.GetAttribute("className").IndexOf("search-info") > -1)
{
result = Regex.Replace(div.InnerText, @"\D", "");
break;
}
}
return result;
}
#endregion
#endregion
public string CopyCount(string Text)